Closed DrFrankReade closed 3 years ago
Not really a bootloader-problem. The generic-pa1-button-pa8-platform.ini-excerpt may also be helpful. Take a look there: https://github.com/platformio/platform-ststm32/issues.
Same problem here (I mentioned over in issue #109). Trying to build any bootloader target fails with the same linker errors. Are you saying it's a platformIO issue? I didn't see it over in the platform-ststm32 issues list. Is there a workaround? Also, does the "0800200B" below suggest the bootloader has gone over 8KB? Isn't that bad? What is "LMA" ?
Linking .pio\build\generic-pa1-button-pa8\firmware.elf
c:/users/andy/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none eabi/bin/ld.exe: .pio\build\generic-pa1-button-pa8\firmware.elf
section `._usrstack' will not fit in region `RAM'
c:/users/andy/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: section .init LMA [08001910,08001913] overlaps
section .data LMA [08001910,0800200b]
c:/users/andy/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 1097 bytes
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\generic-pa1-button-pa8\firmware.elf] Error 1
This bootloader build from bare metal gcc
If you want to build using third party tools like Platformuino, you would need to modify the code yourself so that it built under that environment
Errors at compile time on every possible env.
Probably very simple fix, I'm just a simpleton and it's beyond me. See the compile logs below.
Thank you!