>> Can you try to boil down these discussions to the essential and relevant
>> bits for OpenOCD & post it here?
>
> I thought my previous post did exactly that.

I guess there is no royal road to solving this problem... There is a lot
of necessary complexity to the situation that just need to be grokked.

> Here is some BASIC-inspired
> pseudocode that may alternately explain the situation:
>
> 1 call power_on
> 2 call sys_reset

what is sys_reset?

> 3 if flash_contents <> valid_executable_code then exception_asserted=-1

how would one check that flash does not contain valid executable code?

> 4 if exception_asserted=0 then if halt_requested then goto 8
> 5 if exception_asserted=0 then goto 3
> 6 if you_feel=like_trying_again then goto 2
> 7 print "I give up!":end
> 8 call write_to_the_flash
>
> Do you see the problem?

No. I guess I would be loathe to try to figure this out without access
to hardware and time to read up on the documentation and a scope
even perhaps.

-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to