2012-10-16 01:23 AM
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. thanks2012-10-16 04:08 AM
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.2012-10-16 04:28 AM
Can you explain more clearly Clive1 ?
I couldn't understand what i will do .2012-10-16 06:44 AM
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.