2025-12-18 4:58 AM
I'm using STM32CubeIDE 2.0 and CubeMX 6.16.1. When I create a project in CubeMX, it doesn't create the STM32WBA55CGUX_FLASH.ld file. It creates the makefile when I select it in the Toolchain/IDE section, but then gives an error.
2025-12-19 2:04 AM - edited 2025-12-19 2:29 AM
@YBAYR.1 wrote:what I don't understand is why it gave an error the first time I compiled it, and then suddenly gave zero errors
It's actually just a warning - presumably, you have warnings escalated to errors?
Taking out all the excess path verbiage:
arm-none-eabi/bin/ld.exe: warning:
thumb/v8-m.main+fp/hard/crtn.o: missing .note.GNU-stack section implies executable stack
arm-none-eabi/bin/ld.exe: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
Once it's given you that warning, it doesn't bother to give it again.
PS:
Note again the instructions for posting formatted text which is not source code.
PPS:
Another example where linker warnings are given only once: