Question
Flash loader demo
Posted on September 01, 2015 at 21:21
Hi,
I'm trying to use the Flash Loader demo Tool to down load my hex file. I need to bypass the hard wiring of the boot pins to 0 and 1 and just jump to where the boot loader reset handler resides. I searched the forum and I found the following piece of code which is executed right off the reset. You can say it is my reset handler . Reset_Handler PROC EXPORT Reset_Handler [WEAK]LDR R0, =0x40023844 ; RCC_APB2ENR
LDR R1, =0x00004000 ; ENABLE SYSCFG CLOCK STR R1, [R0, #0] LDR R0, =0x40013800 ; SYSCFG_MEMRMP LDR R1, =0x00000001 ; MAP ROM AT ZERO STR R1, [R0, #0] LDR R0, =0x1FFF0000 ; ROM BASE LDR SP,[R0, #0] ; SP @ +0 LDR R0,[R0, #4] ; PC @ +4 BX R0ENDP
I can see that it is jumping to the system memory region both by single stepping and letting it run however when firing the demo Tool ,I keep getting error messages and no response, don't know if anyone has the same issue or know the solutions. any help is much appreciated. Koorosh