STM32F103 HD - Initial Stack Pointer is Wrong
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-07 9:55 AM
Posted on July 07, 2013 at 18:55
I'm trying to set up a project (Eclipse, gcc, OpenOCD) for a hand made prototype board using an STM32F103RC chip (48K RAM). It works, sort of. My linker script specifies the initial stack pointer as
_estack = 0x2000C000; And that shows up in the .hex file. But when the debugger starts up, SP contains 20005000. Any ideas why that would happen? -Bill
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-07 2:13 PM
Posted on July 07, 2013 at 23:13
I had a hardware mistake.
I forgot to put on the jumper for BOOT0, so it was pulled high. BOOT1 was floating.