[Openocd-development] [PATCH 3/4] cfg: update scripts to use new stm32 driver names

2011-07-28 Thread Spencer Oliver
From: Spencer Oliver ntfr...@users.sourceforge.net Signed-off-by: Spencer Oliver ntfr...@users.sourceforge.net --- tcl/board/hitex_stm32-performancestick.cfg |2 +- tcl/board/olimex_stm32_h103.cfg|2 +- tcl/board/olimex_stm32_h107.cfg|2 +-

[Openocd-development] [PATCH 4/4] flash: add support for deprecated stm32 flash cmds

2011-07-28 Thread Spencer Oliver
From: Spencer Oliver ntfr...@users.sourceforge.net Issue warning when the old cmd is used and redirect to new supported one. These deprecated cmds will be removed at some point. Signed-off-by: Spencer Oliver ntfr...@users.sourceforge.net --- src/flash/startup.tcl | 11 +++ 1 files

[Openocd-development] [PATCH 2/4] docs: update to use new stm32 driver names

2011-07-28 Thread Spencer Oliver
From: Spencer Oliver ntfr...@users.sourceforge.net Signed-off-by: Spencer Oliver ntfr...@users.sourceforge.net --- doc/openocd.texi | 29 ++--- 1 files changed, 18 insertions(+), 11 deletions(-) diff --git a/doc/openocd.texi b/doc/openocd.texi index dfb8e30..069367d

Re: [Openocd-development] rename st32 flash drivers

2011-07-28 Thread Laurent Charpentier
Hi Spencer, Idea is to bring the stm32 flash drivers inline with their actual names, eg. stm32x to stm32f1x stm32f2xxx to stm32f2x This is a good idea to clean that up. I think you can go one step further by dropping the 'x' (which has no meaning) in order to rename: - stm32x to stm32f1 -

Re: [Openocd-development] rename st32 flash drivers

2011-07-28 Thread Spencer Oliver
On 28 July 2011 13:41, Laurent Charpentier laurent_p...@yahoo.com wrote: Hi Spencer, Idea is to bring the stm32 flash drivers inline with their actual names, eg. stm32x to stm32f1x stm32f2xxx to stm32f2x This is a good idea to clean that up. I think you can go one step further by dropping

Re: [Openocd-development] rename st32 flash drivers

2011-07-28 Thread Tomek CEDRO
On Thu, Jul 28, 2011 at 12:55 PM, Spencer Oliver s...@spen-soft.co.uk wrote: I sort of like the x - but the majority rules. Any more votes? I also like the xxx :-P :-) :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development

Re: [Openocd-development] rename st32 flash drivers

2011-07-28 Thread Xiaofan Chen
On Thu, Jul 28, 2011 at 8:55 PM, Spencer Oliver s...@spen-soft.co.uk wrote: I sort of like the x - but the majority rules. Any more votes? I like the x as well. -- Xiaofan ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] General SWD Support in OpenOCD

2011-07-28 Thread Tomek CEDRO
Good news - libswd-openocd driver bridge is now ready and functional [1] it reads out the IDCODE. I have already pushed the patches to the repository [2]. Right now have to multitask to another task but at weekend I will try to make arm_adi_v5 work with my swd target using crafted drivers and swd

Re: [Openocd-development] General SWD Support in OpenOCD

2011-07-28 Thread Tomek CEDRO
Everything went to master of the repository - I have cleaned it up so i should be now easy to rebase with openocd/master when necessary. Thank you for all hints on using git this is very nice tool and I seem to get familiar with it already :-) Best regards! :-) Tomek -- CeDeROM, SQ7MHZ,

Re: [Openocd-development] rename st32 flash drivers

2011-07-28 Thread Tomek CEDRO
On Thu, Jul 28, 2011 at 12:55 PM, Spencer Oliver s...@spen-soft.co.uk wrote: This is a good idea to clean that up. I think you can go one step further by dropping the 'x' (which has no meaning) in order to rename:  - stm32x to stm32f1  - stm32f2xxx to stm32f2 Seriously speaking - no offense

[Openocd-development] GDB always executes code on the first declared target in a multi-target configuration

2011-07-28 Thread Drasko DRASKOVIC
Hi all, I have a multicore SoC, and I use target create command to create several targets, one for each CPU. Main CPU is mentioned first. When I want to load and execute Linux kernel on secondary CPU, I use mon targets second to switch to the second target from within GDB, and then I do load to

Re: [Openocd-development] [PATCH 1/4] flash: update stm32 driver names

2011-07-28 Thread Antonio Borneo
Hi Spencer, please use the flags -C -M with git format-patch. These flags detect the file rename, making the patch short and easy to review. You can use these flags every time, even when no file rename is involved. Best Regards, Antonio Borneo On Thu, Jul 28, 2011 at 7:52 PM, Spencer Oliver

Re: [Openocd-development] GDB always executes code on the first declared target in a multi-target configuration

2011-07-28 Thread Drasko DRASKOVIC
On Thu, Jul 28, 2011 at 5:16 PM, Spencer Oliver s...@spen-soft.co.uk wrote: It has been a while since i tested openocd with multiple targets - over a year at a guess. Hard to give an answer, but if i get a chance i will run some test tomorrow. Hi Spen, thanks. I looked quickly at

Re: [Openocd-development] GDB always executes code on the first declared target in a multi-target configuration

2011-07-28 Thread Tomek CEDRO
Hello Drasko! :-) It would be perfect to modularize code and join all modules together in one openocd thread.. I have tried that but its too much work, first need to finish swd framework. However hving modular design, maybe even object-based, would improve readability and extend new

[Openocd-development] TCL interface to OpenOCD

2011-07-28 Thread Rodrigo Rosa
Hi, What are the expected answers from the TCL port ()? My tests tell me that you get: - EOC if command syntax was correct - 1EOC if command syntax was incorrect - more stuff if you supply the capture argument. is there any way to tell if a command (with correct syntax) returned an

Re: [Openocd-development] [PATCH 4/4] flash: add support for deprecated stm32 flash cmds

2011-07-28 Thread Steve Bennett
On 28/07/2011, at 9:52 PM, Spencer Oliver wrote: From: Spencer Oliver ntfr...@users.sourceforge.net Issue warning when the old cmd is used and redirect to new supported one. These deprecated cmds will be removed at some point. Signed-off-by: Spencer Oliver ntfr...@users.sourceforge.net

Re: [Openocd-development] TCL interface to OpenOCD

2011-07-28 Thread Rodrigo Rosa
so something like: if {[catch {set doubled [expr $value * 2]} errmsg]} { puts 0 - $errmsg } else { puts 1 $doubled } would do the trick? i'd send all that to OpenOCD? i now nothing about TCL, just started reading about it thanks! On Thu, Jul 28, 2011 at 12:46 PM, Øyvind Harboe

[Openocd-development] svf crashing on windows

2011-07-28 Thread Rodrigo Rosa
Hi, I've been trying to use openocd to program an fpga, a lattice xp2 openocd crashes sometimes. i've attached an example svf, which worked a couple times, then crashed. i was using a cross compiled version of openocd (from HEAD, or very near to it) with mingw32 and ./configure

[Openocd-development] script command

2011-07-28 Thread Jie Zhang
Hi, Where is the script command defined? I greped in jimtcl and openocd source code, but could not find it. Thank you! Jie ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] script command

2011-07-28 Thread Steve Bennett
On 29/07/2011, at 1:40 PM, Jie Zhang wrote: Hi, Where is the script command defined? I greped in jimtcl and openocd source code, but could not find it. Thank you! Jie src/helper/startup.tcl line 57 ___ Openocd-development mailing list

Re: [Openocd-development] script command

2011-07-28 Thread Steve Bennett
On 29/07/2011, at 2:06 PM, Steve Bennett wrote: On 29/07/2011, at 1:40 PM, Jie Zhang wrote: Hi, Where is the script command defined? I greped in jimtcl and openocd source code, but could not find it. Thank you! Jie src/helper/startup.tcl line 57 And here's a trick for you. If you