2018-03-22 04:11 PM
Hi,
I had a problem (now solved) of hard fault on STM32F303K8 MCU using TrueSTUIDIO V 9.0.0.
The cause was the wrong linker file.
In the file generated by TrueSTUDIO for STM32F303K8, the stack was allocated to addres 0x20004000.
This memory location is in a reserved area. At the first access to the stack after reset, a hard fault was generated.The data sheet of the STM32F303K8 indicates that ram ends at 0x20003000.With the stack correctly located at this value everything works correctly.Attached the right and the wrong files.Giampaolo
#atollic-truestudio #linker-file #stm32f303 #hard-fault2018-03-23 01:30 AM
So when you say, 'Bug
s
on files
provided by Atollic TrueSTUDIO' - it's really just 1 bug in 1 file?It would be more helpful if you changed the title to something specific; eg, 'Stack length wrong in Atollic linker file'
2018-03-23 02:25 AM
Hi,
I completely agree with you, but I don't know how to change the title.
Giampaolo
2018-03-23 04:07 AM
There is a gear wheel icon at the top of the thread marked 'Actions' - it's in there: