Hi, I have a problem with my olimex-arm-usb-tiny-h adapter, for some
reason I can't program the flash except the first time I try after
plugging in the adapter, the second and subsequent times I try data
will come back from flash as all 1's.

I suspect the adapter is being left in some weird state that's only
cleared by power-cycling it.

This is my configuration:

jtag_khz 1

# This is the JTAG connector I use
source [find interface/olimex-arm-usb-tiny-h.cfg]

# This is close enough to the board I use
source [find target/lpc1768.cfg]

adapter_khz 500

init
sleep 200
soft_reset_halt
wait_halt
mww 0x400FC040 0x01
sleep 200

flash write_image erase main.bin
verify_image main.bin
reset run

I've described the problem in more detail here:
http://forum.sparkfun.com/viewtopic.php?f=18&t=31376&p=139271


Is there a way to ensure that the adapter has been reset properly?

-- 
Flemming Frandsen - YAPH - http://osaa.dk - http://dren.dk/

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to