Re: [Openocd-development] Fix: Correctly exit function: ft2232_init when an error occurred

2011-04-26 Thread Sébastien Farquet
Hello Drasko, The end goal it's to have a safe state of the used JTAG adapter at the end of the executable file. With this patch => Fix: Correctly exit function: ft2232_init when an error occurred I wish correct the status at the end of ft2232_init function when an error occured. At this mom

Re: [Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-26 Thread Øyvind Harboe
The problem is that the ft2232_init() fn will invoke jtag_xxx() fn's. However, until ft2232_init() returns, the interface is not set up and that part of the API is not "open for business", causing strange effects. ft2232_init() sets up a "default speed". We have been talking about making JTAG spe

[Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-26 Thread Luca Ellero
I've noticed strange behaviour in initialization with TI OMAP4430 and Freescale iMX53 using Amontec JTAGKEY. Even typing keys on OpenOCD shell was very very slow. I didn't investigate too much the causes. Anyway this patch fix it. Signed-off-by: Luca Ellero --- src/jtag/core.c |2 +- 1 files

Re: [Openocd-development] Flyswatter and openocd 3c6af51: panda board and terminal freeze

2011-04-26 Thread Paolo Pisati
On 04/26/2011 12:17 PM, Paolo Pisati wrote: > Any idea? > bad wiring on my side: Open On-Chip Debugger 0.5.0-dev-00858-g3c6af51 (2011-04-26-12:13) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html Info : only one transport option; autoselect '

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
On Tue, Apr 26, 2011 at 3:19 PM, Xiaofan Chen wrote: > On Tue, Apr 26, 2011 at 9:05 PM, Øyvind Harboe > wrote: >>> Like this one? >>> http://www.segger.com/cms/jlink-flash-breakpoints.html >> >> Yep. :-) >> >> They say performance isn't a problem. >> >> Anyone want to put together a patch? > > S

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Xiaofan Chen
On Tue, Apr 26, 2011 at 9:05 PM, Øyvind Harboe wrote: >> Like this one? >> http://www.segger.com/cms/jlink-flash-breakpoints.html > > Yep. :-) > > They say performance isn't a problem. > > Anyone want to put together a patch? Some say it is patented but I do not know what is really patented. http

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
> Like this one? > http://www.segger.com/cms/jlink-flash-breakpoints.html Yep. :-) They say performance isn't a problem. Anyone want to put together a patch? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Xiaofan Chen
On Tue, Apr 26, 2011 at 4:20 PM, Øyvind Harboe wrote: > Here is an idea for a new feature: sw breakpoints in flash. > > The way this feature would work would be to detect if > a breakpoint is in the flash region. If it is, a hw breakpoint > would be used until the hw breakpoints run out. > > At th

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
> Right. However, I do think these are the only way to go if you want SW > breakpoints in flash, so having support for flash patch units would be quite > handy. > Otherwise, HW breakpoints are the only alternative that really works. Are these flash patching units part of vendor IP or is it somethi

Re: [Openocd-development] sw breakpoints in flash

2011-04-26 Thread Michael Schwingen
On 04/26/2011 10:20 AM, Øyvind Harboe wrote: Here is an idea for a new feature: sw breakpoints in flash. The way this feature would work would be to detect if a breakpoint is in the flash region. If it is, a hw breakpoint would be used until the hw breakpoints run out. At that point the flash s

[Openocd-development] Flyswatter and openocd 3c6af51: panda board and terminal freeze

2011-04-26 Thread Paolo Pisati
[flag@newluxor openocd]$ dpkg -l | grep ftd ii libftdi-dev 0.18-1Development files for libftdi ii libftdi1 0.18-1Library to control and program the FTDI USB

Re: [Openocd-development] STM32F215RG tested OK, but 0x1FFFF7E0 is not for flash_sram size now

2011-04-26 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 ___ Openocd-dev

Re: [Openocd-development] [PATCH] buspirate: fix building on some OSes

2011-04-26 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 ___ Openocd-de

[Openocd-development] sw breakpoints in flash

2011-04-26 Thread Øyvind Harboe
Here is an idea for a new feature: sw breakpoints in flash. The way this feature would work would be to detect if a breakpoint is in the flash region. If it is, a hw breakpoint would be used until the hw breakpoints run out. At that point the flash sector would be rewritten with the sw breakpoint