2016-02-19 04:33 PM
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
2016-02-23 07:27 AM
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¤tviews=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.