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

2011-05-26 Thread Tomek CEDRO
On Thu, May 26, 2011 at 2:00 AM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: what I would like to implement is a user command to run from the telnet interface to read and write to the io pins available on the ftdi chip while set to jtag mode. Ah, I forgot to mention the most important - to be

Re: [Openocd-development] bugfix for adapter_khz_to_speed

2011-05-26 Thread Tomek CEDRO
I think this bug (or similar) was removed very recently (less than month), surely in cable_init(), maybe some other place? Please take a look at changelog - I had the similar issue with FT2232H but its now fixed with change in adapter_init() -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: [Openocd-development] [PATCH] mips target

2011-05-26 Thread Drasko DRASKOVIC
On Wed, May 25, 2011 at 4:28 PM, Mahr, Stefan stefan.m...@sphairon.com wrote: 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)

Re: [Openocd-development] [PATCH] mips target

2011-05-26 Thread Øyvind Harboe
Looking at this patch, it's clearly wrong to cast a pointer to a host 32 bit integer to a pointer to a sequence of bytes to shift out. I don't know about the rest of the issues offhand, but I see Drask was going to have a look at it. -- Øyvind Harboe Can Zylin Consulting help on your

Re: [Openocd-development] [PATCH] mips target

2011-05-26 Thread Mahr, Stefan
Btw.: There is still an endianness issue with mips target. Drasko adds endianness swapping (that I removed two years ago) Why did you remove it ? I removed swapping in mips_m4k, because for commands like mdw the swapping was already done in target.c. If a target was selected as big endian,

Re: [Openocd-development] OpenOCD for STM32F2xx microcontroller

2011-05-26 Thread Fleurette , Bruno
Hi Sylvain, I have exactly the same eval board and also the same OpenOCD issue when trying to write the binary on the STM32F2 flash: device id = 0x20006411 Cannot identify target as a STM32 family. Did you succeed in updating OpenOCD sources? BR, Bruno

Re: [Openocd-development] OpenOCD for STM32F2xx microcontroller

2011-05-26 Thread Øyvind Harboe
There is more than one stm32 flash driver, use the other one -- Ø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] OpenOCD for STM32F2xx microcontroller

2011-05-26 Thread Fleurette , Bruno
Øyvind Harboe oyvind.harboe@... writes: There is more than one stm32 flash driver, use the other one Sorry but I only know stm32x... could you pls give a name to the other one? ___ Openocd-development mailing list

Re: [Openocd-development] OpenOCD for STM32F2xx microcontroller

2011-05-26 Thread Øyvind Harboe
Sorry but I only know stm32x... could you pls give a name to the other one? cd src find . | grep stm32 -- Ø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

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

2011-05-26 Thread Rodrigo Rosa
Ah, I forgot to mention the most important - to be able to realize transport I have extended struct jtag_interface with transfer_bits and signal_operate methods that transfer bitstream out/in of the char array and can switch/read specified signal (exactly what you need). queue_execute was not

[Openocd-development] Compilation errors

2011-05-26 Thread Freddie Chopin
Hi! I'm trying to compile new OpenOCD source (from git) in my crosscompilation setup but I see these errors: /../../src/rtos/'`rtos.c libtool: compile: i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../src/rtos -I../.. -I../../../src -I../../src

Re: [Openocd-development] stm32f2xxx flash support

2011-05-26 Thread Orbital_sFear
simon qian simonqian.openocd@... writes: It's fast for 27kBytes/s for flash + erase. STM32F200 has 16M internal RC, so the JTAG can run at 2.5M. As I test for STM32F100, flash programming is usually at 13KBytes/s under OpenOCD. ST website is not available in China, I don't know the

Re: [Openocd-development] stm32f2xxx flash support

2011-05-26 Thread Orbital_sFear
The driver works great. Here is my experience with it. I went to openocd, Downloaded the get repo, built. The first time I flashed code, everything Worked great. The second time, I ran into issues. When I was trying to flash, I got the follow: Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW

[Openocd-development] Error: .. adapter speed not selected

2011-05-26 Thread Paul Claessen
In April (2011) I built openocd version 0.5.0-dev-00858 and used it successfully with an Olimex OpenOCD JTAG Tiny. I recently built version 0.5.0-dev-00882 and I now get the following error: Error: An adapter speed is not selected in the init script. Insert a call to adapter_khz or jtag_rclk to

Re: [Openocd-development] Error: .. adapter speed not selected

2011-05-26 Thread Michael Schwingen
Am 05/26/2011 09:12 PM, schrieb Paul Claessen: In April (2011) I built openocd version 0.5.0-dev-00858 and used it successfully with an Olimex OpenOCD JTAG Tiny. I recently built version 0.5.0-dev-00882 and I now get the following error: Error: An adapter speed is not selected in the init

Re: [Openocd-development] Error: .. adapter speed not selected

2011-05-26 Thread Paul Claessen
From: Michael Schwingen Sent: Thursday, May 26, 2011 3:26 PM To: Paul Claessen Cc: openocd-development@lists.berlios.de Subject: Re: [Openocd-development] Error: .. adapter speed not selected Am 05/26/2011 09:12 PM, schrieb Paul Claessen: In April (2011) I built openocd version

Re: [Openocd-development] Provisional eCos RTOS support

2011-05-26 Thread Alan Bowman
Evan Could you provide a list of what order you give GDB/OpenOCD commands and which GDB-Remote commands/responses you see? I have attached two files. gdb_trace.txt shows two runs through the same sequence of events: - attach to the remote target - reset the target - set breakpoint - run to

Re: [Openocd-development] Error: .. adapter speed not selected

2011-05-26 Thread Michael Schwingen
Am 05/26/2011 10:47 PM, schrieb Paul Claessen: Thanks for your much appreciated quick response. I'm using my own .cfg for file an Olimex Tiny. I simply added the suggested 'adapter_khz' (with value 1000, although I'm not sure what a reasonable value would be; I guess that depends on the