Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread SimonQian
It maybe will raise other problems. Leave this probem as it is, or future improvement will solve it. And it will not affact AVR programming support. 2009-04-27 Best Regards, Simon Qian SimonQian(simonq...@simonqian.com) www.SimonQian.com 发件人: �yvind_Harboe 发送时间: 2009-04-27 13:44:53

Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64

2009-04-27 Thread Albert Cahalan
On Mon, Apr 27, 2009 at 1:41 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: What's wrong with this code? long long then=timeval_ms(); while ((timeval_ms()-then)duration) This appears many places in the code. comparision will work unless the difference is

Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64

2009-04-27 Thread Nico Coesel
-Oorspronkelijk bericht- Van: openocd-development-boun...@lists.berlios.de [mailto:openocd-development-boun...@lists.berlios.de] Namens Albert Cahalan Verzonden: maandag 27 april 2009 8:49 Aan: Øyvind Harboe CC: openocd-development@lists.berlios.de Onderwerp: Re:

Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64

2009-04-27 Thread Øyvind Harboe
If the 'long long' is changed into 'unsigned long long', the code will always work even in wrap-around situations. Perhaps it is a better idea to specify (typedef) a timer type as unsigned long long for this purpose. I don't understand. Subtraction is identical for signed and unsigned in two's

Re: [Openocd-development] AVR support -- success to chip_erase andprogram_flash

2009-04-27 Thread Øyvind Harboe
2009/4/27 SimonQian simonq...@simonqian.com: I'll try to implement a more generic code. Attachment is the current ugly simple code. ARM11 started out that way and it is getting better. If you could post a patch against SVN HEAD, then your AVR code will not disturb any of the stable targets.

[Openocd-development] ARM11 status

2009-04-27 Thread Øyvind Harboe
Is anyone using ARM11 out there? I've got an i.mx31 ARM11 target in my office, but I've tested it much as I could not get single stepping to work. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___

Re: [Openocd-development] Some notes about JTAG and TAP

2009-04-27 Thread Dick Hollenbeck
Zach Welch wrote: On Fri, 2009-04-24 at 18:39 +0200, Magnus Lundin wrote: [snip] static tap_state_t exception_path[] = { TAP_DREXIT2, TAP_DRSHIFT, TAP_DREXIT1,

Re: [Openocd-development] jtag_add_pathmove

2009-04-27 Thread Laurent Gauch
Martin Panter wrote: On 24/04/2009, Laurent Gauch laurent.ga...@amontec.com wrote: Michael's comment is valid. But it would be a surprise to me that our cable API would allow cable hardware to issue clock cycles without being specifically requested to do so by the API. That in itself

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread SimonQian
This patch removes the error, code below this patch outputs warnings instead: Warn : 173 344 jtag.c:1553 jtag_examine_chain(): Unexpected idcode after end of chain! 64 0x Warn : 174 344 jtag.c:1553 jtag_examine_chain(): Unexpected idcode after end of chain! 96 0x Warn : 175 344

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Øyvind Harboe
Better? -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ### Eclipse Workspace Patch 1.0 #P openocd Index: src/jtag/jtag.c === --- src/jtag/jtag.c (revision 1534) +++

[Openocd-development] Cleanup of ARMv7 and Cortex code

2009-04-27 Thread Magnus Lundin
Rev 1535 Added arm_adi_v5.c/h to repository, they will replace cortex_swjdp.c/h. Better conformance to ARM Debug Interface rev 5 documentation and remoevd code specific to the Cortex-M3 targets. Regards, Magnus ___ Openocd-development mailing

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread SimonQian
It's clean now: 4500 kHz Info : Versaloon(0x03)by Simon(compiled on Apr 25 2009) Info : buffer size for USB is 12288 bytes Info : VSLLink_20080905 by Simon(compiled on Apr 25 2009) Info : vsllink run in NORMAL mode Info : VSLLink JTAG Interface ready Info : JTAG tap: avr.cpu tap/device found:

Re: [Openocd-development] Cleanup of ARMv7 and Cortex code [2]

2009-04-27 Thread Magnus Lundin
Rev 1536 Changed armv7m and cortexm3 to use nev arm_adi_v5 instead of cortex_swjdp. Added support for accessport ROM table identification, dap command. Magnus Lundin wrote: Rev 1535 Added arm_adi_v5.c/h to repository, they will replace cortex_swjdp.c/h. Better conformance to ARM Debug

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Øyvind Harboe
Committed. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Øyvind Harboe
Committed. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] Openocd-development Digest, Vol 31, Issue 112

2009-04-27 Thread SimonQian
Does the IRPAUSE DRPAUSE required or not ? Why did you not support passing to IRPAUSE DRPAUSE ? I mean Versaloon will not pass IRPAUSE and DRPAUSE when move from IDLE to IRSHIFT or DRSHIFT. And I'm not sure whether it is OK if these statemove pass PAUSE state. 2009-04-27 Best Regards,

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread SimonQian
If this patch can be committed, I think I should also provide the config file for mega128. And final code of AVR support maybe totally different. 2009-04-27 Best Regards, Simon Qian SimonQian(simonq...@simonqian.com) www.SimonQian.com 发件人: �yvind_Harboe 发送时间: 2009-04-27 17:28:30

Re: [Openocd-development] AVR patch

2009-04-27 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] ARM11 status

2009-04-27 Thread Alan Carvalho de Assis
Hi Øyvind, Last time I tested it (few weeks ago) single stepping was working fine. I tested using the Ledtest example. Best Regards Alan On 4/27/09, Øyvind Harboe oyvind.har...@zylin.com wrote: Is anyone using ARM11 out there? I've got an i.mx31 ARM11 target in my office, but I've tested it

[Openocd-development] Delete cortext_swjdp.*

2009-04-27 Thread Øyvind Harboe
Shouldn't these files be deleted from the repository now? -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] Delete cortext_swjdp.*

2009-04-27 Thread Magnus Lundin
Commited Øyvind Harboe wrote: Shouldn't these files be deleted from the repository now? ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64

2009-04-27 Thread Nico Coesel
-Oorspronkelijk bericht- Van: Philippe Vachon [mailto:phili...@cowpig.ca] Verzonden: maandag 27 april 2009 13:10 Aan: Øyvind Harboe CC: Nico Coesel; openocd-development@lists.berlios.de Onderwerp: Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64 Hi, On Mon,

Re: [Openocd-development] [PATCH] Fix build errors in SVN on x86_64

2009-04-27 Thread Øyvind Harboe
Timeval returns the current time which consists of the UTC time and a microseconds counter. So you will need to have more than 32 bits for a comparison. That's not actually the complete story. :-) Counters such as these are *carefully* crafted so they can do a 32 bit subtraction comparison

[Openocd-development] ARM11 more error handling

2009-04-27 Thread Øyvind Harboe
Committed. ### Eclipse Workspace Patch 1.0 #P openocd Index: src/target/arm11.h === --- src/target/arm11.h (revision 1542) +++ src/target/arm11.h (working copy) @@ -240,18 +240,18 @@ void arm11_add_debug_SCAN_N

[Openocd-development] ARM11 debug/info output cleanup

2009-04-27 Thread Øyvind Harboe
Committed. Cleaned up debug/info output to be in line with other targets. ### Eclipse Workspace Patch 1.0 #P openocd Index: src/target/arm11.c === --- src/target/arm11.c (revision 1543) +++ src/target/arm11.c (working copy) @@

Re: [Openocd-development] Introduction

2009-04-27 Thread Øyvind Harboe
Welcome! I am considering developing an add on for the beagle board so it can be used as a high speed, intelligent and cheap OCD Tool.  (Basically put some isolation on the expansion header and bit bash it from the OMAP processor.) That would be a great bootstrap project for OMAP support :-)

Re: [Openocd-development] Introduction

2009-04-27 Thread Nico Coesel
-Oorspronkelijk bericht- Van: openocd-development-boun...@lists.berlios.de [mailto:openocd-development-boun...@lists.berlios.de] Namens Strontium Verzonden: maandag 27 april 2009 14:07 Aan: openocd-development@lists.berlios.de Onderwerp: [Openocd-development] Introduction Hello,

Re: [Openocd-development] ARM11 status

2009-04-27 Thread Alan Carvalho de Assis
Hi Øyvind, On 4/27/09, Øyvind Harboe oyvind.har...@zylin.com wrote: Could you contribute the ledtest example to the OpenOCD testing suite? Ledtest for imx31pdk is already on OpenOCD svn. Source and binaries + instructions on how to run this smoketest. It is too easy: ./openocd -f

Re: [Openocd-development] ARM11 status

2009-04-27 Thread Øyvind Harboe
On Mon, Apr 27, 2009 at 2:51 PM, Alan Carvalho de Assis acas...@gmail.com wrote: Hi Øyvind, On 4/27/09, Øyvind Harboe oyvind.har...@zylin.com wrote: Could you contribute the ledtest example to the OpenOCD testing suite? Ledtest for imx31pdk is already on OpenOCD svn. ah. Right. Source

[Openocd-development] patch for error compiling vsllink if --enable-verbose-jtag-io is set

2009-04-27 Thread SimonQian
Attachment is the patch. I notice that _DEBUG_USB_COMMS_ is added in the previous patch. But vsllink_debug_buffer will be also called if _DEBUG_JTAG_IO is defined. So I changed #ifdef _DEBUG_USB_COMMS_ to #if defined _DEBUG_USB_COMMS_ || defined _DEBUG_JTAG_IO_ to avoid error. Please commit

[Openocd-development] bug in svf.c

2009-04-27 Thread R.Doss
I would use to program openocd for Spartan 3AN. I have a crash. I can locate with gdb the error. 955 i += svf_para.hdr_para.len; (gdb) 956 buf_set_buf(svf_para.sdr_para.mask, 0, svf_mask_buffer[svf_buffer_index], i,

[Openocd-development] bug in svf.c

2009-04-27 Thread Laurent Gauch
I would use to program openocd for Spartan 3AN. I have a crash. I can locate with gdb the error. 955 i += svf_para.hdr_para.len; (gdb) 956 buf_set_buf(svf_para.sdr_para.mask, 0, svf_mask_buffer[svf_buffer_index],

Re: [Openocd-development] bug in svf.c

2009-04-27 Thread SimonQian
Can you provide the -d3 log file? Try using an simple svf file which will cause the error. 2009-04-27 Best Regards, Simon Qian SimonQian(simonq...@simonqian.com) www.SimonQian.com 发件人: R.Doss 发送时间: 2009-04-27 21:15:00 收件人: OpenOCD Development 抄送: 主题: [Openocd-development] bug in

[Openocd-development] cortex_swjdp.c

2009-04-27 Thread Dick Hollenbeck
This was removed from the repo. Why? The project will not build. Dick ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] cortex_swjdp.c

2009-04-27 Thread Magnus Lundin
cortex_swjdp has ben retired and replaced by arm_adi_v5. Do automake followed by make. Changing Makefile.am should triger a automake, Regards Magnus Dick Hollenbeck wrote: This was removed from the repo. Why? The project will not build. Dick

Re: [Openocd-development] AVR patch

2009-04-27 Thread Michael Bruck
The compile fails here with cc1: warnings being treated as errors avrf.c: In function 'avrf_info': avrf.c:433: error: 'avr_info' may be used uninitialized in this function Also the svn:eol-style is not set. Michael On Mon, Apr 27, 2009 at 12:32 PM, Øyvind Harboe oyvind.har...@zylin.com

[Openocd-development] [PATCH] jtag.h macros

2009-04-27 Thread Dick Hollenbeck
Collect some macros, add DIM() Collection can be moved but at least they are starting to be gathered up. Dick Index: src/jtag/jtag.h === --- src/jtag/jtag.h (revision 1545) +++ src/jtag/jtag.h (working copy) @@ -40,7 +40,18 @@

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-27 Thread Dick Hollenbeck
Duane Ellis wrote: Dick Hollenbeck wrote: Duane, This is the 3rd time now I am mentioning my need to get after the ft2232.c driver code, starting Monday. I am happy to start from your starting point or from HEAD, but once I start, I won't be changing the road traveled. Dick, please

Re: [Openocd-development] [PATCH] jtag.h macros

2009-04-27 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de

[Openocd-development] dap command for OMAP and tcl scripting

2009-04-27 Thread Magnus Lundin
Hi Rev 1547, Added two commands that just returns values in hex, good for scripting. dap baseaddr dap apid Next I started playing with Tcl scripts that scans the ROM table and installed components. This is my first shot at JimTcl in OpenOCD but it works quite ok. dapinfo.tcl

Re: [Openocd-development] Keil AGDI interface to openOCD?

2009-04-27 Thread Dario Vecchio
It seems they have just released a new version: http://www.keil.com/appnotes/docs/apnt_145.asp my project is built around the old version Dario - Original Message - From: SimonQian To: Dario Vecchio ; Pedro Martos ; openocd-development@lists.berlios.de Sent: Monday, April

Re: [Openocd-development] bug in svf.c

2009-04-27 Thread Øyvind Harboe
Could you provide a GDB backtrace? See: http://svn.berlios.de/wsvn/openocd/trunk/BUGS?sc=1 -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list

Re: [Openocd-development] How to go on with Cortex-A8 support - [PATCH]

2009-04-27 Thread Dirk Behme
Magnus Lundin wrote: Hi There are some problems with dap info, but it seems the results are useful anyway. Her comes my interpretation: dap info 0 ap debugbase 0x ap identification register 0x14770001 No ROM table present This is a MEM-AP port AHB bus with no ROM

Re: [Openocd-development] Keil AGDI interface to openOCD?

2009-04-27 Thread Dario Vecchio
See also: http://www.keil.com/appnotes/docs/apnt_173.asp Dario - Original Message - From: Dario Vecchio To: SimonQian ; Pedro Martos ; openocd-development@lists.berlios.de Sent: Monday, April 27, 2009 6:12 PM Subject: Re: [Openocd-development] Keil AGDI interface to

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Gene Smith
Øyvind Harboe wrote: Committed. -r1547 snapshot build fails like this: cc1: warnings being treated as errors avrf.c: In function 'avrf_info' avrf.c:433: warning: 'avr_info' is used uninitialized in this function I will init pointer avrf_info to zero and move on since I am not using avr now.

Re: [Openocd-development] AVR support -- new tap problem

2009-04-27 Thread Øyvind Harboe
Are you sure the patch is correct? I've tinkered with your changes and created a patch. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com Index: C:/workspace/openocd/src/flash/avrf.c

[Openocd-development] J-Link interface status

2009-04-27 Thread Alan Carvalho de Assis
Hi all, I am sending this email just to give a feedback about jlink interface status. I noticed that using J-Link yellow version 6.0 OpenOCD can detects my ARM9 i.MX27 processor with no problem. But using J-Link yellow version 5.4 nothing works: # openocd -f interface/jlink.cfg -f

Re: [Openocd-development] J-Link interface status

2009-04-27 Thread Michael Fischer
Hello Alan, I noticed that using J-Link yellow version 6.0 OpenOCD can detects my ARM9 i.MX27 processor with no problem. Can you change some memory values too? Try to use mww to write some values and mdw to read it back. Best regards, Michael ___

Re: [Openocd-development] J-Link interface status

2009-04-27 Thread Alan Carvalho de Assis
Hi Michael, On 4/27/09, Michael Fischer fische...@t-online.de wrote: Hello Alan, I noticed that using J-Link yellow version 6.0 OpenOCD can detects my ARM9 i.MX27 processor with no problem. Can you change some memory values too? I can't because I don't have one J-Link version 6.0 any more

[Openocd-development] J-Link, different FW-Version, different behaviour

2009-04-27 Thread Michael Fischer
Hello List, I found out that I have a V6.0 which is working with the STR710 and one version not. The version which is NOT working is: J-Link ARM V6 compiled Apr 1 2008 11:56:10 The version which is working had the following version: J-Link ARM V6 compiled Jul 22 2008 11:42:42 Here the RAM

Re: [Openocd-development] J-Link, different FW-Version, different behaviour

2009-04-27 Thread Alan Carvalho de Assis
On 4/27/09, Michael Fischer fische...@t-online.de wrote: Hello List, I found out that I have a V6.0 which is working with the STR710 and one version not. The version which is NOT working is: J-Link ARM V6 compiled Apr 1 2008 11:56:10 The version which is working had the following

Re: [Openocd-development] J-Link, different FW-Version, different behaviour

2009-04-27 Thread Michael Fischer
Upps, there was a typo. The new version which is not working is: J-Link ARM V6 compiled Apr 1 2009 11:56:10 2009 and not 2008. Regards, Michael ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] jtag_add_pathmove

2009-04-27 Thread Martin Panter
(Dammit, resending to the list again) I've heard that Texas instruments' SN74ACT8990 test bus controller has a free running TCK (though I'm not familiar with how it works). When I was explaining how the FT2232 jtag commands work to someone who had worked with the 8990, he was shocked that

[Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-27 Thread Dick Hollenbeck
This puts the bit count into the tms_seq table and adds the function: int tap_get_tms_path_len( tap_state_t from, tap_state_t to ) It may break the ft2232 driver, but I have a fix coming for that in about 6 hours. I have it written but have to run out for awhile to hit some tennis

[Openocd-development] List of files that don't have svn:eol-style set

2009-04-27 Thread Michael Bruck
The following files don't have an svn:eol-style set and should IMO be set to native: PATCHES src/jtag/dummy.c src/target/target/mega128.cfg src/target/target/at91sam9260_ext_RAM_ext_flash.cfg src/target/arm_adi_v5.c src/target/arm_adi_v5.h In addition there are these files that have no

[Openocd-development] How do I read, modify, write registers?

2009-04-27 Thread Brian Hutchinson
I know I'm going to probably regret asking this as it has got to be easy and I feel dumb for asking but how can I do a read, modify, write cycle to setup CPU registers? Tcl is probably the answer but 1) I don't know it and 2)I've been searching the archives, reading the OpenOCD documentation and

[Openocd-development] [PATCH] ARM11 error handling cleanup

2009-04-27 Thread Michael Bruck
- use macro for standard error handling arm11-vs-1548-improve-readability Description: Binary data ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development