cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32L476] CubeMX generated project ends up in inf loop.

ChrisH
Associate III
Posted on February 20, 2016 at 01:33

There is bug in linker script file generated by CubeMX for AC6 IDE. MCU ends up in infinite loop, I believe it has to do with incorrect SRAM memory areas as there are two banks on L4 of 96K and 32K, there are also other issues which i didn't track so far as I swapped linker file to the default one generated by Eclipse ARM Project without digging much into this issue.

Edit: Problem is in stack origin and SRAM mapping. Stack issue can be easily fixed with:

__stack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
_estack = __stack;

Rest is to fix memory mapping of SRAM2 and change length of SRAM1 from 128K to 96K
1 REPLY 1
Amel NASRI
ST Employee
Posted on February 23, 2016 at 16:27

Hi hockuba.krzyszto.002,

This bug is confirmed by STM32Cube-T in[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32CubeMX%20V4.13.0%20problems&FolderCTID&currentviews=326] this discussion and it will be fixed in CubeMX 4.14 as said there.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.