Skip to main content
Associate III
February 14, 2024
Solved

STM32CubeIDE generated xxx_FLASH.ld file does not include ALIGN(4) in some FLASH sections

  • February 14, 2024
  • 3 replies
  • 5049 views

Hi @Khouloud ZEMMELI 

I generated C code and other files after opening .IOC file in STM32CubeIDE (not STM32CubeMX).

I observe many FLASH sections in the STM32H753BITX_FLASH.ld file do not call ALIGN(4).

The left side file is the one that got generated after generating code, where is the right side file is the one that I have received from my colleague.

RajeevAroraCrcEvans_0-1707892750372.png

I hereby request that STM32CubeMX be updated to include the ALIGN(4) wherever necessary.

Regards,

Rajeev

 

This topic has been closed for replies.
Best answer by Imen.D

Hello @RajeevAroraCrcEvans ,

Thank you for rising this up.

I escalated this issue internally to fix these linkers via Internal ticket number: 173671.

(PS: internal ticket number 173671 is not accessible or usable by customers).

3 replies

Khouloud ZEMMELI
ST Employee
February 14, 2024

Hello @RajeevAroraCrcEvans ,

 

I let my colleague @Imen.D  check the issue with you :)

Have a nice day,

 

Khouloud

Imen.DBest answer
Technical Moderator
February 14, 2024

Hello @RajeevAroraCrcEvans ,

Thank you for rising this up.

I escalated this issue internally to fix these linkers via Internal ticket number: 173671.

(PS: internal ticket number 173671 is not accessible or usable by customers).

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Tesla DeLorean
Guru
February 14, 2024

It probably should align things, as the ARM ABI has expectations, and it is more efficient. CM0(+) prone to Hard Fault on misalignment, and a lot of the STM32 have 32, 64, 128-bit FLASH lines

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..