Re: [Openocd-development] xsvf patches

2009-01-21 Thread SimonQian
In this patch, parameter to jtag_add_reset is error. Shouldn't it be: case XTRST_ON: jtag_add_reset(1, 0); break; case XTRST_OFF: jtag_add_reset(0, 0); break; 2009-01-22 Best Regards, Simon Qian SimonQian(simonq...@simonqian.com) www.SimonQian.com 发件人: Dick Hollenbeck 发送时间: 2009-0

[Openocd-development] OpenOCD Fedora 10 RPM Build

2009-01-21 Thread Dean Glazeski
I've created a spec file that can be used to build Fedora 10, or possibly other OS's, binary and source RPMs. I've attached the spec file. I also wanted to see if somebody was already responsible for this particular package. I can build it and send it to Rick Altherr if no one is currently h

Re: [Openocd-development] udev rules for openocd

2009-01-21 Thread John McCarthy
Hmm, guess I should have read the whole thread before I posted. ;-) I see the openocd.udev patch is worrying about permissions for the USB devices. For my FT2232 based OpenOCD USB device the tty devices are also important. This becomes a real headache when you have multiple ttyUSB devices (OpenOC

Re: [Openocd-development] udev rules for openocd

2009-01-21 Thread John McCarthy
how about this one for the OpenOCD USB from Embedded-Projects.net: SUBSYSTEMS=="usb", ATTRS{product}=="Dual RS232", ATTRS{idProduct}=="6010", ATTRS{idVendor}=="0403", KERNEL=="ttyUSB*", SYMLINK+="openocd$attr{bInterfaceNumber}" creates /dev/openocd00 and /dev/openocd01 for the two serial i

Re: [Openocd-development] Minor fix for script directory searching under MinGW

2009-01-21 Thread Rick Altherr
On Jan 21, 2009, at 2:27 PM, Dimitar Dimitrov wrote: Hi, I built openocd-0.1 straight out of SVN branch openocd-0.1. I used cygwin to compile a mingw executable and issued "make install" to create the openocd install tree. Openocd.exe however was not able to find its script library direc

[Openocd-development] Minor fix for script directory searching under MinGW

2009-01-21 Thread Dimitar Dimitrov
Hi, I built openocd-0.1 straight out of SVN branch openocd-0.1. I used cygwin to compile a mingw executable and issued "make install" to create the openocd install tree. Openocd.exe however was not able to find its script library directories when run from the windows (NOT cygwin) CMD prompt. I'

Re: [Openocd-development] xsvf patches

2009-01-21 Thread Dick Hollenbeck
Sorry, this one is better. Index: src/jtag/bitbang.c === --- src/jtag/bitbang.c (revision 1355) +++ src/jtag/bitbang.c (working copy) @@ -38,6 +38,14 @@ #include +/** + * Function bitbang_stableclocks + * issues a number of clo

[Openocd-development] xsvf patches

2009-01-21 Thread Dick Hollenbeck
Please look over this patch and commit if acceptable. It moves the test for a stable state into the jtag_add_clocks() call and out of each driver , introducing ERROR_JTAG_NOT_STABLE_STATE to report this problem. It recognizes that a TMS=1 is required for staying in the stable state TAP_RES

Re: [Openocd-development] support for freescale mc13224

2009-01-21 Thread Sergey Lapin
On Wed, Jan 21, 2009 at 8:56 PM, Sergey Lapin wrote: > On Wed, Jan 21, 2009 at 8:26 PM, Alan Carvalho de Assis > wrote: >> Hi Sergey, >> >> On Wed, Jan 21, 2009 at 4:30 PM, Sergey Lapin wrote: >>> Hi, all! >>> >>> I write support for mc13224 - arm7tdmi-based ieee8021.15.4 -compliant >>> communic

Re: [Openocd-development] svf support

2009-01-21 Thread SimonQian
> We can add a "quiet" argument to the command for you. I personally do > not want to have to turn on debug logging to get the output that is > currently in there, because then the logging format changes and it is > intermingled with other output. I personally do not mind that it scrolls > off the

Re: [Openocd-development] support for freescale mc13224

2009-01-21 Thread Sergey Lapin
On Wed, Jan 21, 2009 at 8:26 PM, Alan Carvalho de Assis wrote: > Hi Sergey, > > On Wed, Jan 21, 2009 at 4:30 PM, Sergey Lapin wrote: >> Hi, all! >> >> I write support for mc13224 - arm7tdmi-based ieee8021.15.4 -compliant >> communication chip. Chip is quite new, documentation is in weird state >>

Re: [Openocd-development] support for freescale mc13224

2009-01-21 Thread Alan Carvalho de Assis
Hi Sergey, On Wed, Jan 21, 2009 at 4:30 PM, Sergey Lapin wrote: > Hi, all! > > I write support for mc13224 - arm7tdmi-based ieee8021.15.4 -compliant > communication chip. Chip is quite new, documentation is in weird state > and is not full, but core and basic peripherals like SPI are > documented

Re: [Openocd-development] svf support

2009-01-21 Thread Dick Hollenbeck
SimonQian wrote: > In OpenoCD, we can handle TRST ON/OFF/ABSENT. But we can not > handle TRST Z, not all the jtag tool can support this. So should it be > interpreted as TRST OFF? > My SVF code doesn't handle TRST Z, I'll provide a patch for TRST > command and using jtag_add_clocks. > According to

[Openocd-development] support for freescale mc13224

2009-01-21 Thread Sergey Lapin
Hi, all! I write support for mc13224 - arm7tdmi-based ieee8021.15.4 -compliant communication chip. Chip is quite new, documentation is in weird state and is not full, but core and basic peripherals like SPI are documented normally. I already managed to make core work, but I can't manage it to rese

Re: [Openocd-development] svf support

2009-01-21 Thread SimonQian
In OpenoCD, we can handle TRST ON/OFF/ABSENT. But we can not handle TRST Z, not all the jtag tool can support this. So should it be interpreted as TRST OFF? My SVF code doesn't handle TRST Z, I'll provide a patch for TRST command and using jtag_add_clocks. According to the SVF specification, TR

[Openocd-development] xsvf tools fix for missing TRST in XSVF format

2009-01-21 Thread Dick Hollenbeck
This patch adds xsvf_tools support for parsing the SVF TRST command. The corresponding patch to xsvf.c is still needed, pending agreement on direction.In its simplest form, the xsvf.c change could merely skip the new XSVF opcode. But if the cable API supports it, we can do better. The v

Re: [Openocd-development] svf support

2009-01-21 Thread Dick Hollenbeck
SimonQian wrote: > Hi, > When try to convert svf file to xsvf, i got this: > -- > H:\MyProject\Versaloon\test>python --version > Python 3.0 > H:\MyProject\Versaloon\test>python svf2xsvf.py temp.svf temp.xsvf > Error in file 'temp.svf' at line 29 near

[Openocd-development] vsllink update -- adding support to JTAG_STABLECLOCKS

2009-01-21 Thread SimonQian
Thanks to Dick, I tried the xsvf player, and succeeded in adding support to JTAG_STABLECLOCKS. It works on my EPM240T100 demo board. Attachment is the patch for the JTAG_STABLECLOCKS support for vsllink. Suggestion to xsvf player. No need to print message if not in debug mode. My xsvf file contai

Re: [Openocd-development] svf support

2009-01-21 Thread SimonQian
Hi, When try to convert svf file to xsvf, i got this: -- H:\MyProject\Versaloon\test>python --version Python 3.0 H:\MyProject\Versaloon\test>python svf2xsvf.py temp.svf temp.xsvf Error in file 'temp.svf' at line 29 near token 'TRST' Unknown token '