|
From: Freddie C. <fre...@op...> - 2012-10-10 10:59:14
|
W dniu 2012-10-10 12:35, Sietse Achterop pisze: > To make it see my home grown board I had to add 2 extra commands, e.g. as follows: > > openocd -f interface/olimex-arm-usb-ocd-h.cfg target/lpc1768.cfg -c 'adapter_khz 10; jtag newtap auto0 tap -expected-id 0x4ba00477 -irlen 4' IMHO you don't need to set "jtag newtap..." here, but you'r better add something like "reset_config trst_and_srst" (it both are present in your board and adapter). For me that works always (; openocd -f interface/... -f target/... -c "reset_config trst_and_srst; adapter_khz 250;" > But commands as: > reset init > or > mdw 0 10 > > do not seem to exist. I guess you wanted to add them to the -c "..." above - these are "runtime" commands, as opposed to "config/init" commands. To use "runtime" commands you need to issue "init" command before them, or you can use them via telnet, GDB or whatever without this requirement, as OpenOCD does "init" automatically when it finishes with all options from the command line. For example this will work: openocd ... -c "reset_config trst_and_srst; adapter_khz 250; init; reset init;" This will not work: openocd ... -c "reset_config trst_and_srst; adapter_khz 250; reset init;" This will work too: openocd ... -c "reset_config trst_and_srst; adapter_khz 250;" telnet localhost 4444 [issue "reset init" via telnet] 4\/3!! |