cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 HD - Initial Stack Pointer is Wrong

Bill Lewis
Associate III
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
1 REPLY 1
Bill Lewis
Associate III
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.