Skip to main content
MMedv
Associate II
October 19, 2021
Question

Linker directive different when generating Makefile build

  • October 19, 2021
  • 0 replies
  • 678 views

Hi - I'm working on some projects with STM32CubeIDE (1.6.1) and CubeMX (). What I've noticed is that if I generate a CubeMX project targeting a Makefile build the linker directive that is generated has some non-trivial differences with the .ld generated for a STM32CubeIDE project.

Even in the header, you can see from the comment:

** Author		: Auto-generated by System Workbench for STM32

that the tool is generating an outdated ld. If you diff the two files, you'll see how _estack is defined is different, there are many missing ALIGN(4); calls, RamFunc is missing, etc.

I think this is just an oversight, and should be corrected in the next build of CubeMX/CubeIDE.

This topic has been closed for replies.