Skip to main content
Bill Lewis
Associate III
July 7, 2013
Question

STM32F103 HD - Initial Stack Pointer is Wrong

  • July 7, 2013
  • 1 reply
  • 1309 views
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 topic has been closed for replies.

    1 reply

    Bill Lewis
    Associate III
    July 7, 2013
    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.