Re: [Openocd-development] [PATCH] transport selection fix

2011-06-18 Thread Tomek CEDRO
On Thu, Jun 16, 2011 at 9:42 PM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: a ? : b is equivalent to a ? a : b, unless evaluating a has side-effects or if a is volatile, since it's only evaluated once in the former case and twice in the latter. Nice to know, thanks! Is that true

Re: [Openocd-development] RFC Release Cycle

2011-06-18 Thread Tomek CEDRO
On Fri, Jun 17, 2011 at 7:57 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: I am struggling a bit following the above, but I think we agree: - development goes on in master like it always has done - you create a fork at the openocd mirror and create a release branch there. You pick whatever

Re: [Openocd-development] segfault in ftdi_write_data / libusb

2011-06-18 Thread Tomek CEDRO
On Thu, Jun 16, 2011 at 7:56 PM, Hans Petter Selasky hsela...@c2i.net wrote: I was not able to reproduce the segfault. This happens only with this particular source code, it is a result of (non-finished) patching from my fork, that is working fine. Non-hinished patching means that there are some

Re: [Openocd-development] Kinetis KwikStik (Cortex-m4)

2011-06-18 Thread j. m. norris
Can anyone help me to get the KwikStik running? Is it right that I need my own config files? Regards, K. Dohmann I've attached two of the configuration files for the KwikStik. Be advised that this is still work-in-progress and the writing of the on-chip flash does not work. I'm in the

[Openocd-development] Cortex M3: Patch for automatic handling of interrupt mask during stepping

2011-06-18 Thread Peter Horn
Dear all I'm submitting a change to the Cortex-M3 target which improves behavior of single stepping with interrupts. Here's the description of the patch, hope you like it: This patch extends the cortex_m3 maskisr command by a new option 'auto'. The 'auto' option handles interrupts during

Re: [Openocd-development] Cortex M3: Patch for automatic handling of interrupt mask during stepping

2011-06-18 Thread Andreas Fritiofson
Great, but does it really work? There has been discussions about this on this list in the past. I think the conclusion was that there's no way to robustly know GDB's intentions based on the remote commands. When you do a source-level step in GDB, it may send a step command to OpenOCD. Then we can

Re: [Openocd-development] Kinetis KwikStik (Cortex-m4)

2011-06-18 Thread Marcelo Politzer
I've only confirmed the progress j. m. norris showed to me, i've been able to put the board in debug mode with the provided file. 2011/6/18 j. m. norris jmnor...@ieee.org: Can anyone help me to get the KwikStik running? Is it right that I need my own config files? Regards, K. Dohmann

Re: [Openocd-development] Cortex M3: Patch for automatic handling of interrupt mask during stepping

2011-06-18 Thread Andreas Fritiofson
Resending, Cc to the list got lost somewhere... On Sat, Jun 18, 2011 at 8:27 PM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: On Sat, Jun 18, 2011 at 6:38 PM, Peter Horn peter.h...@bluewin.ch wrote: Hi Andreas Am 18.06.2011 17:32, schrieb Andreas Fritiofson: Great, but does

Re: [Openocd-development] Cortex M3: Patch for automatic handling of interrupt mask during stepping

2011-06-18 Thread Peter Horn
Dear Andreas Am 18.06.2011 20:29, schrieb Andreas Fritiofson: I guess there's no way around requiring setting a breakpoint at the current pc to force any pending isr to run? That's the only way I've found. On the other hand, GDB also sets a breakpoint when using the 'continue' target command

Re: [Openocd-development] segfault in ftdi_write_data / libusb

2011-06-18 Thread Tomek CEDRO
On Sat, Jun 18, 2011 at 12:32 PM, Tomek CEDRO tomek.ce...@gmail.com wrote: (..) but it looks interesting to break libusb this way... Short update on this - libusb (1.0.8-1) and libftdi (0.19-1) on linux (arch 2.6.39) does not have this ussue.. ddaamn ;-P source [find interface/kt-link.cfg]

Re: [Openocd-development] Kinetis KwikStik (Cortex-m4)

2011-06-18 Thread Kay Dohmann
This definitely helps. Thanks alot! Turned out now that my last error came from breaking my hardware. But your config with new hardware works for me. :-D On 06/18/2011 03:21 PM, j. m. norris wrote: Can anyone help me to get the KwikStik running? Is it right that I need my own config files?