Flash program problem, help?
The flash programmer is OK, and I can also write the first few
instructions into the device. But just after that, it stopped
working. I have tried many times, however, the results were the same.
The following were the several lines in HEX form that could be
written into the flash:
And the corresponding instrutions are:
_start: ldr pc, ResetAddr
ldr pc, UndefinedAddr
ldr pc, SoftwareAddr
ldr pc, PrefetchAddr
ldr pc, DataAbortAddr
ldr pc, [pc, #-0xff0]
ldr pc, FastAddr
ResetAddr: .word ResetInit
UndefinedAddr: .word Undefined
SoftwareAddr: .word SWI_Handler
PrefetchAddr: .word PrefetchAbort
DataAbortAddr: .word DataAbort
Non_Used: .word 0
InterruptAddr: .word 0
FastAddr: .word FIQ_Handler
/* Initialize the stacks for each mode */
mov r0, lr
/* build the SVC stack */
msr cpsr_c, #0xd3
ldr sp, =_svc_stack /*_svc_stack is defined in link
24 instuctions in total; It's at the last one that the programmer
What's the problem? Hopefully someone could help me?
Thanks in advance!