Re: [Openocd-development] patching load_image command

2010-04-15 Thread Øyvind Harboe
Nit: there is a syntax error in your patch. But I see now that the documentation is wrong. It is not an "address" but an "offset" that is passed into load_image. A bin file is defined to start at address 0, so offset and address are identical. But for an elf file, the image will already have an

Re: [Openocd-development] patching load_image command

2010-04-15 Thread michal smulski
Here is the patch for openocd.texi for load_image as requested. Michal On Wed, 2010-04-14 at 07:40 +0200, Øyvind Harboe wrote: > > Perhaps adding this to openocd docs will help others. > > I would think that adding a command > > 'load_image_bin filename address length file_offset' would be helpful

Re: [Openocd-development] openocd crash when sending command over tcl_port

2010-04-15 Thread Øyvind Harboe
Good work. Please walk around the code in tcl_server.c:134 and see if you can figure out what's wrong -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.

Re: [Openocd-development] openocd crash when sending command over tcl_port

2010-04-15 Thread M B
Hello again, I now tried latest version from git ( git version b886049c74de147b1ce6f7f0173ecd71323c5c64 ). I compiled it under linux with following commands: export CFLAGS="-O0 -g" ./configure --enable-ft2232_libftdi --enable-gw16012 --enable-presto_libftdi --enable-amtjtagaccel --enable-arm-jta

Re: [Openocd-development] NOR/CFI [patch/rfc] parse arguments

2010-04-15 Thread Øyvind Harboe
Merged. Thanks! -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [PATCH] xscale: fix analyze_trace for trace data collected in wrap mode

2010-04-15 Thread Øyvind Harboe
Merged. Thanks! Merging this will give it better chance of wider testing. I'm not able to test it myself. -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zyli

Re: [Openocd-development] [patch/rfc] TCL SCRIPTS: fix command name

2010-04-15 Thread Øyvind Harboe
Merged. Thanks! -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _

Re: [Openocd-development] Olimex-arm-usb-tiny-h under linux problem

2010-04-15 Thread Laurent Gauch
OK it is the solution for you -> customizing target.cfg regarding the capability of the JTAG Dongle ! BUT it is not a generic solution . The target.cfg should not be in relation ship with a dedicated interface.cfg ;-( THE solution is to add new argument on the jtag newtap. Regards, Laurent htt

Re: [Openocd-development] Olimex-arm-usb-tiny-h under linux problem

2010-04-15 Thread iñigo arrazola
Thanks. We tried to add it but it wasn't recognized as a command. Taking a look at the link you provided in your first response, we figured out how to limit the frequency to 15000 kHz (the maximum it can run at) using the command "jtag_khz 15000" in the target.cfg, before executing the jtag newtap.

Re: [Openocd-development] Olimex-arm-usb-tiny-h under linux problem

2010-04-15 Thread Laurent Gauch
sorry, "adapter_khz" instead "adapter_speed" ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] PXA270: can read/write the core registers, but can't read memory and registers of the devices on chip

2010-04-15 Thread Kaius Häggblom
The attached trace was produced by starting program: ./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg -d 3 -l openocd.lo ... and issuing following commands through telnet client: > reg > reset halt > reg cpsr 0xd3 > reset halt Exactly as in original post with this is

Re: [Openocd-development] openocd crash when sending command over tcl_port

2010-04-15 Thread Kaius Häggblom
Øyvind Harboe wrote: Try generating a stack trace: The attached trace was produced by starting program: ./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg -d 3 -l openocd.log ... and issuing following commands through telnet client: > reg > reset halt > reg cpsr 0xd3

[Openocd-development] [patch/rfc] TCL SCRIPTS: fix command name

2010-04-15 Thread Antonio Borneo
Hi, in 3 tcl scripts the command "flash bank" has an underline character between the 2 words. tcl/board/at91rm9200-dk.cfg tcl/board/imx27ads.cfg tcl/board/logicpd_imx27.cfg I cannot fully verify, since I do not have any of the target boards involved, but this should generate an error m