Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error with PICO_DEFAULT_BINARY_TYPE=no_flash #2279

Open
retsifp opened this issue Feb 16, 2025 · 0 comments
Open

Compiler error with PICO_DEFAULT_BINARY_TYPE=no_flash #2279

retsifp opened this issue Feb 16, 2025 · 0 comments
Assignees
Milestone

Comments

@retsifp
Copy link

retsifp commented Feb 16, 2025

Hi,
maybe I'm wrong, but I understood from chapter 6.4. Binary Type configuration in the documentation, putting set(PICO_DEFAULT_BINARY_TYPE no_flash) in my CMakeLists.txt would result in a binary that runs from flash.

But at least for me it results in a compiler error:

/home/thomas/.pico-sdk/toolchain/13_3_Rel1/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld: CMakeFiles/hello_serial.dir/home/thomas/.pico-sdk/sdk/2.1.0/src/rp2_common/pico_standard_binary_info/standard_binary_info.c.o:(.rodata.__bi_26+0x8): undefined reference to `__flash_binary_end'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

But: set(PICO_NO_FLASH 1) works, so no big problem. :)

I'm using the VSCode extension on a Fedora 41 Linux.

BR Thomas.

@kilograham kilograham added this to the 2.1.2 milestone Feb 17, 2025
@kilograham kilograham self-assigned this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants