Skip to main content
Ingo Wolf
Associate
December 6, 2017
Question

STM32F0 don't understand reset / bootup / AC6 ST-LINK

  • December 6, 2017
  • 1 reply
  • 642 views
Posted on December 06, 2017 at 16:07

I have follow sequence in my linker script:

.test :

{

. = ALIGN(4);

LONG ( _estack ) ;

LONG ( Reset_Handler + 1 );

. = ALIGN(4);

} >FLASH (=0x8000000 )

Reset_Handler: /* 0x8001xxx */

ldr r0, =_estack /* Breakpoint */

mov sp, r0  /* set stack pointer */

I don't come to that breakpoint instead some debugger errors with 0xffffffff

Is the reset described somewhere? Isn't a resetvector and stackpointer enough

to jump to 

Reset_Handler are other vectors checked on reset?

Also my eclipse ac6 st-link debugger seems to have some problems with 

multiple flash sections, while all compiling is fine I get error messages

can't write to flash address 0x8000000 I don't get with one flash section only

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    December 6, 2017
    Posted on December 06, 2017 at 16:34

    The ARM Technical Reference Manuals (TRM) for the core?

    Review what you're actually writing to memory.

    Make sure BOOT0 is pulled low.

    Are you sure ResetHandler isn't already ODD?

    If you load an EVEN address is will immediately Hard Fault, so have a vector for that if you want to catch it.

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