cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create the STM32WBA55CGUX_FLASH.ld file?

YBAYR.1
Associate III

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.

YBAYR1_0-1766062724359.png

 

10 REPLIES 10

@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:

https://community.st.com/t5/stm32cubeide-mcus/what-causes-these-libc-nano-a-errors/m-p/786189/highlight/true#M35200

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.