Skip to main content
leventeyigel52
Associate III
October 16, 2012
Question

Program is starting from 0x00000000 , I can't debug another program / project

  • October 16, 2012
  • 3 replies
  • 812 views
Posted on October 16, 2012 at 10:23

Hello,

I tried to make software booting on my STM32 C-EVAL board , (STM32F107VCT6)

And then , program is starting from 0x00000000 adress , default value  must be 0x08000000.

How can i change program counter adress. 

thanks
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    October 16, 2012
    Posted on October 16, 2012 at 13:08

    The STM32 shadows the boot memory to zero based on the state of BOOTx pins.

    You need to compile/link your code so it resides at 0x08000000, this is generally achieved via the IDE, or via linker scripts or scatter files.

    The Cortex-M3 pulls the Stack Pointer from the first vector (+0), and the Program Counter from the second vector (+4), you may modify that to determine where the processor executes the first instruction.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    leventeyigel52
    Associate III
    October 16, 2012
    Posted on October 16, 2012 at 13:28

    Can you explain more clearly Clive1 ? 

    I couldn't understand what i will do .

    Tesla DeLorean
    Guru
    October 16, 2012
    Posted on October 16, 2012 at 15:44

    Can you explain more clearly Clive1? I couldn't understand what i will do.

    I guess I could, but it would be easier if you digested the documentation for your unspecified tool-chain, the Cortex-M3, and the STM32 with a little more rigor.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..