On Mon, Feb 6, 2012 at 5:26 PM, Spencer Oliver <[email protected]> wrote:
> On 5 February 2012 14:38, Flemming Frandsen <[email protected]> wrote:
> Are you using SRST to reset the target?

Sorry, I have no clue, this is my configuration file:
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


> The cortex-m3 supports SRST (hardware) reset and two types of software
> reset - either SYSRESETREQ or VECTRESET.
> OpenOCD defaults to VECTRESET for cores that do not support
> SYSRESETREQ - according to the docs the LPC1768 is one of them.

This sounds promising, I'll look into it, thank you.

Right, I've looked at the documentation and when I get back to my
board, I'll try adding this to my config:
adapter_nsrst_assert_width 10
adapter_nsrst_delay 2
reset_config trst_and_srst

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

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
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-d2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to