usedbytes/rp2040-serial-bootloader

FLASH overflow ld error

Closed this issue · 2 comments

Hi, I'm gettingthe following error when trying to compile the bootloader:

samsmith94@DESKTOP-CB1NOEN:~/pico/rp2040-serial-bootloader/build$ make bootloader -j8
[ 4%] Performing build step for 'ELF2UF2Build'
[ 4%] Built target bs2_default
[ 8%] Built target bs2_default_padded_checksummed_asm
[100%] Built target elf2uf2
[ 9%] No install step for 'ELF2UF2Build'
[ 11%] Completed 'ELF2UF2Build'
[ 19%] Built target ELF2UF2Build
[ 20%] Linking CXX executable bootloader.elf
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: bootloader.elf section .text' will not fit in region FLASH'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 5816 bytes
collect2: error: ld returned 1 exit status
CMakeFiles/bootloader.dir/build.make:855: recipe for target 'bootloader.elf' failed
make[3]: *** [bootloader.elf] Error 1
CMakeFiles/Makefile2:1492: recipe for target 'CMakeFiles/bootloader.dir/all' failed
make[2]: *** [CMakeFiles/bootloader.dir/all] Error 2
CMakeFiles/Makefile2:1499: recipe for target 'CMakeFiles/bootloader.dir/rule' failed
make[1]: *** [CMakeFiles/bootloader.dir/rule] Error 2
Makefile:124: recipe for target 'bootloader' failed
make: *** [bootloader] Error 2

Do you happen to know the reason why this might be?

Sorry, I realized, that there is a same issue, which is closed and solved.

Closed