Re: [Openocd-development] Provisional eCos RTOS support

2011-05-25 Thread Spencer Oliver
On 25/05/2011 04:22, Øyvind Harboe wrote: Any objections to merging? It's a big step in the right direction and hopefully this will encourage more people to pitch in. Not tested - no objections from me. Cheers Spen ___ Openocd-development mailing

[Openocd-development] Untested or slightly tested code

2011-05-25 Thread j. m. norris
Would it make sense for those individuals who are submitting code that is untested or slightly tested to include a short write-up on their setup? This write-up would allow those with a little free time on their hands or for someone who wants to learn about the development involved with OpenOCD

Re: [Openocd-development] Untested or slightly tested code

2011-05-25 Thread Øyvind Harboe
On Wed, May 25, 2011 at 1:33 PM, j. m. norris jmnor...@ieee.org wrote: Would it make sense for those individuals who are submitting code that is untested or slightly tested to include a short write-up on their setup? This write-up would allow those with a little free time on their hands or

[Openocd-development] [PATCH] support for non cfi spansion flash

2011-05-25 Thread Mahr, Stefan
Hi, attached patch adds support for Spansion AM29LV040B that I found on an Mindspeed evalboard. BR, Stefan 0001-add-support-for-spansion-flash-on-mindspeed-c300-eva.patch Description: 0001-add-support-for-spansion-flash-on-mindspeed-c300-eva.patch

[Openocd-development] [PATCH] mips target

2011-05-25 Thread Mahr, Stefan
Hi, attached patch fixes the endianess so mips/ejtag can be used on a big endian host. Btw.: There is still an endianness issue with mips target. Drasko adds endianness swapping (that I removed two years ago) to mips_m4k.c (commit b1256894598296b54a1827e7ac797ad1c60a0b18). But some swapping

Re: [Openocd-development] Untested or slightly tested code

2011-05-25 Thread Rodrigo Rosa
should the short write-up go in the email with the corresponding patch? On Wed, May 25, 2011 at 4:40 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: On Wed, May 25, 2011 at 1:33 PM, j. m. norris jmnor...@ieee.org wrote: Would it make sense for those individuals who are submitting code

Re: [Openocd-development] Untested or slightly tested code

2011-05-25 Thread Øyvind Harboe
On Wed, May 25, 2011 at 7:43 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: should the short write-up go in the email with the corresponding patch? I think splitting out the docs in a separate patch is just fine. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free

[Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Rodrigo Rosa
Hi, When using channel A of the ftdi 2232H as JTAG there are spare pins available as GPIO. I want to be able to read/write to these pins. I've managed to this by modifying ft2232.c (i'm not planning to change the driver, just wanted to verify it was possible). I would like to have a command i can

Re: [Openocd-development] [PATCH] support for non cfi spansion flash

2011-05-25 Thread Øyvind Harboe
Merged. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

Re: [Openocd-development] Provisional eCos RTOS support

2011-05-25 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Alain Mouette
Why don't you use the other serial interface? I wired it as debug port, you could use it as general IO... Alain Em 25-05-2011 16:56, Rodrigo Rosa escreveu: Hi, When using channel A of the ftdi 2232H as JTAG there are spare pins available as GPIO. I want to be able to read/write to these

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Rodrigo Rosa
On Wed, May 25, 2011 at 2:13 PM, Alain Mouette ala...@pobox.com wrote: Why don't you use the other serial interface? I wired it as debug port, you could use it as general IO... I want to use the other interface as a UART for something else, and the extra pins on the B side are not available as

[Openocd-development] Verify checksum command patch and FT2232 channels patch

2011-05-25 Thread Evan Hunter
Hi all, Attached is a patch to add a new command 'verify_image_checksum' which does the same thing as 'verify_image' except that it doesn't find and print the differences. I've found this quite useful to run before downloading an image to check if the download is needed - if the jtag is

[Openocd-development] bugfix for adapter_khz_to_speed

2011-05-25 Thread Kevin Kiningham
adapter_khz_to_speed wasn't changing the speed variable passed to it if the jtag interface wasn't set up. Otherwise, if adapter_khz was called before openocd was done initializing, openocd would report a speed different than it was actually outputting. Tested on SAM3s_ek board with an

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Tomek CEDRO
On Wed, May 25, 2011 at 7:56 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: (..) What I need is similar to getting a command to manually blink the leds on a given layout (execute layout-blink @ ft2232.c). The difference would be that i want to send/receive parameters. Use the MPSSE and

Re: [Openocd-development] Provisional eCos RTOS support

2011-05-25 Thread Evan Hunter
Hi Alan, I might be able to help: Could you provide a list of what order you give GDB/OpenOCD commands and which GDB-Remote commands/responses you see? If you haven't already, I suggest putting packet prints into gdb_put_packet() and gdb_input_inner(). Attached is a trace from my system

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Rodrigo Rosa
On Wed, May 25, 2011 at 3:59 PM, Tomek CEDRO tomek.ce...@gmail.com wrote: On Wed, May 25, 2011 at 7:56 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: Use the MPSSE and ft2232_write() (I think there was something like write_bytes_{high,low} that wrapped this MPSSE call into something more

Re: [Openocd-development] bugfix for adapter_khz_to_speed

2011-05-25 Thread Jie Zhang
On Wed, May 25, 2011 at 6:32 PM, Kevin Kiningham kevi...@umich.edu wrote: adapter_khz_to_speed wasn't changing the speed variable passed to it if the jtag interface wasn't set up. Otherwise, if adapter_khz was called before openocd was done initializing, openocd would report a speed different

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Laurent Gauch
Hi Rodrigo, There are nothing really difficult here ! If you get a look at the jtagkey init , you may see how to drive the SRST and TRST as gpio. Do the same for a read ;-) ! The SRST and TRST are controlled from an higher level than the low jtag driver layer :-) Best regards, Laurent