cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ingo Wolf
Associate II
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

1 REPLY 1
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
Up vote any posts that you find helpful, it shows what's working..