On Mar 10, 2009, at 4:20 AM, Petri Pirttinen wrote:
Greetings, This is my first post to the list so please bear with me as I couldn't find the guidelines of the list.I have so far used very old version of OOCD and now wanting to upgrade.I compiled the tagged 0.1.0 code in cygwin and have also tried to run the win32 binary of it. However it it seems that I'm unable to execute several commands, e.g. target_script or flash probe etc. My tools of trade are Olimex JTAG's and NXP lpc23xx micros. I made myown interface, target etc files for OpenOCD as suggested by the currentdocumentation. To put things short, this is about what I have made so far (comments etc removed): <script> telnet_port 4444 tcl_port 6666 gdb_port 3333 gdb_memory_map enable gdb_flash_program enable interface ft2232 ft2232_device_desc "Olimex OpenOCD JTAG TINY A" ft2232_layout olimex-jtag jtag_khz 600 jtag_nsrst_delay 200 jtag_ntrst_delay 200 reset_config trst_and_srst srst_pulls_trst jtag newtap $_CHIPNAME $_CHIPTYPE -irlen 4 -ircapture 0x1 -irmask 0xF -expected-id $_CPUTAPID target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4 $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0 target_script 0 reset programming.script flash bank lpc2000 0x0 0x7E000 0 0 0 lpc2000_v2 14765 CALC_CHECKSUM init reset shutdown </script> Unfortunately OOCD mocks me about 'invalid command name"target_script_0"'. I just don't understand why, the same problem occurswith e.g. 'flash probe' etc.I'm probably missing something there but can't figure out what it is. IfI leave out the target_script 0 and shutdown, I can connect the OOCDwith GDB and start debugging without any problem at all (though for now,only a tiny project tested so far). Unfortunately it seems that there are very little examples around for the new version(s) of OOCD, even in SVN... With best regards, Petri _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
target_script was removed in favor of using events. There is an appendix in the manual that explains how to convert to the new syntax.
-- Rick Altherr kc8...@kc8apf.net"He said he hadn't had a byte in three days. I had a short, so I split it with him."
-- Unsigned
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development