Stack length wrong in Atollic linker file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-22 4: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-fault- Labels:
-
STM32F3 Series
-
TrueSTUDIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-23 1: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'
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-23 2:25 AM
Hi,
I completely agree with you, but I don't know how to change the title.
Giampaolo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-23 4:07 AM
There is a gear wheel icon at the top of the thread marked 'Actions' - it's in there:
A complex system designed from scratch never works and cannot be patched up to make it work.
