Re: [Openocd-development] read/modify/write registers from TCL

2009-05-09 Thread David Brownell
On Saturday 09 May 2009, Magnus Lundin wrote: > The other to trick is to prefix openocd commands with ocd_  to tell the > tcl interpretr to grab openocd output as tcl input. > >  > set v "[ocd_mdw 0]" > 0x: e59ff04c > 0x: e59ff04c > >  > puts "$v"         > 0x: e59ff04c

Re: [Openocd-development] read/modify/write registers from TCL

2009-05-09 Thread Magnus Lundin
David Brownell wrote: > So there I am, trying to do basic PLL init code using TCL. > > All I have to do is read a register, modify the result, and > write it back ... write a register ... read a register and > do something based on a bitfield ... etc. Not what I'd call > pretty TCL code (is there

[Openocd-development] read/modify/write registers from TCL

2009-05-09 Thread David Brownell
So there I am, trying to do basic PLL init code using TCL. All I have to do is read a register, modify the result, and write it back ... write a register ... read a register and do something based on a bitfield ... etc. Not what I'd call pretty TCL code (is there such a thing?), but workable. Ex

Re: [Openocd-development] Flyswatter Serial Port

2009-05-09 Thread Strontium
This is on Linux, Over recent days I have become suspicious of the Flyswatter hardware itself. It is like my flyswatter is underpowered, as the FT2232 on port B keeps disconnecting and re-connecting to the PC, I tried connecting it through a powered hub and it makes no difference. Also, if I j

Re: [Openocd-development] Flyswatter Serial Port

2009-05-09 Thread Magnus Lundin
Win, Linux or Mac ?? I have now for a few days tested this with a flyswatter+beagleboard under Fedora 10. The serial connection stays active when I start and also when I quit openocd. Best regards, Magnus Strontium wrote: > Hi, > > I've been playing with the Flyswatter, OpenOCD and my Beagl

Re: [Openocd-development] SAM7S256 problems (bus error and flash driver not found) (part 2)

2009-05-09 Thread Magnus Lundin
Zach Welch wrote: > On Sat, 2009-05-09 at 14:16 +0200, Michael Fischer wrote: > >> Hello, >> >> it looks that r1461 is working but r1462 not anymore, >> in case of the bus error. Who has commited the r1462? >> Upps, I had commited the changes from Zach here. >> >> @Zach >> please can you take a

Re: [Openocd-development] SAM7S256 problems (bus error and flash driver not found) (part 2)

2009-05-09 Thread Zach Welch
On Sat, 2009-05-09 at 14:16 +0200, Michael Fischer wrote: > Hello, > > it looks that r1461 is working but r1462 not anymore, > in case of the bus error. Who has commited the r1462? > Upps, I had commited the changes from Zach here. > > @Zach > please can you take a look at your patches again? >

[Openocd-development] [PATCH] add 'const' qualifier to fileio interfaces

2009-05-09 Thread Michael Bruck
- add 'const' qualifier to fileio interfaces - make internal fileio libc wrappers 'static inline' Michael openocd-const-for-fileio-6bedc2b Description: Binary data ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists

[Openocd-development] SAM7S256 problems (bus error and flash driver not found) (part 2)

2009-05-09 Thread Michael Fischer
Hello, it looks that r1461 is working but r1462 not anymore, in case of the bus error. Who has commited the r1462? Upps, I had commited the changes from Zach here. @Zach please can you take a look at your patches again? - openocd-flash-static-keyword-v3.patch - openocd-lpc2000-fix-erase-obo.pat

[Openocd-development] SAM7S256 problems (bus error and flash driver not found) (part 2)

2009-05-09 Thread Michael Fischer
Hello list, >With r1606 I got a bus error in case of using the following >commands under GDB: > >target remote localhost: Some more information about the bus error. I found a working solution which is the r1461. This was the version I use for the Mac install. I got a fresh version from the SVN

[Openocd-development] SAM7S256 problems (bus error and flash driver not found)

2009-05-09 Thread Michael Fischer
Hello list, here I am using a jtagkey and a SAM7S256 eval board under Mac OS X. With r1606 I got a bus error in case of using the following commands under GDB: target remote localhost: But it was working with LPC2148 and STR/10 target. Now I try to use the 1678, but here I got the error th

Re: [Openocd-development] adding a "fast on/off" proc

2009-05-09 Thread Dominic
On Saturday 09 May 2009 12:36:56 Øyvind Harboe wrote: > > Will this increase the number of help mails or decrease them ? > > > > It is not a bad idea, but may I suggest that the speed command also > > prints the > > name and value of all config settings used, or do we use speed info for > > that ?

Re: [Openocd-development] Command to disable jtag_check_value_mask()

2009-05-09 Thread Dominic
On Saturday 09 May 2009 12:19:24 Magnus Lundin wrote: > Øyvind Harboe wrote: > > On Sat, May 9, 2009 at 11:45 AM, Magnus Lundin wrote: > >> Řyvind Harboe wrote: > >>> Does anyone have any objections to adding a command > >>> to disable jtag_check_value_mask()? > >>> > >>> This is along the lines o

Re: [Openocd-development] adding a "fast on/off" proc

2009-05-09 Thread Øyvind Harboe
> Will this increase the number of help mails or decrease them ? > > It is not a bad idea, but may I suggest that the speed  command also prints > the > name and value of all config settings used, or do we use speed info for that > ? The idea about this tcl proc is that the target script can conta

Re: [Openocd-development] adding a "fast on/off" proc

2009-05-09 Thread Magnus Lundin
Øyvind Harboe wrote: > I've been thinking about how to make OpenOCD faster. > > One challenge is that there are things that can be done > that will make OpenOCD run faster that are target > specific. > > It can take quite a bit of effort from the user to read up > on all the weird and wonderful obs

Re: [Openocd-development] Command to disable jtag_check_value_mask()

2009-05-09 Thread Magnus Lundin
Øyvind Harboe wrote: > On Sat, May 9, 2009 at 11:45 AM, Magnus Lundin wrote: > >> Řyvind Harboe wrote: >> >>> Does anyone have any objections to adding a command >>> to disable jtag_check_value_mask()? >>> >>> This is along the lines of the existing verify_ircapture and >>> could speed thi

[Openocd-development] adding a "fast on/off" proc

2009-05-09 Thread Øyvind Harboe
I've been thinking about how to make OpenOCD faster. One challenge is that there are things that can be done that will make OpenOCD run faster that are target specific. It can take quite a bit of effort from the user to read up on all the weird and wonderful obscure options & tinker with them to

Re: [Openocd-development] Command to disable jtag_check_value_mask()

2009-05-09 Thread Øyvind Harboe
On Sat, May 9, 2009 at 11:45 AM, Magnus Lundin wrote: > Řyvind Harboe wrote: >> >> Does anyone have any objections to adding a command >> to disable jtag_check_value_mask()? >> >> This is along the lines of the existing verify_ircapture and >> could speed things up. >> >> Checking would be on by d

Re: [Openocd-development] Command to disable jtag_check_value_mask()

2009-05-09 Thread Magnus Lundin
Øyvind Harboe wrote: > Does anyone have any objections to adding a command > to disable jtag_check_value_mask()? > > This is along the lines of the existing verify_ircapture and > could speed things up. > > Checking would be on by default just like verify_ircapture. > > Such a command would serve t

Re: [Openocd-development] [PATCH] add 'const' qualifier to binarybuffer interfaces

2009-05-09 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] dap command for OMAP and tcl scripting

2009-05-09 Thread Magnus Lundin
Dirk Behme wrote: > Magnus Lundin wrote: >> Hi >> Rev 1547, Added two commands that just returns values in hex, good for >> scripting. >> >> >dap baseaddr >> >dap apid >> >> Next I started playing with Tcl scripts that scans the ROM table and >> installed components. This is my first shot at J

[Openocd-development] [PATCH] add 'const' qualifier to binarybuffer interfaces

2009-05-09 Thread Michael Bruck
- add 'const' qualifier to binarybuffer interfaces - use official C99 'inline' qualifier Michael openocd-const-for-binarybuffer-6c85e09 Description: Binary data ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.be

[Openocd-development] svn head should now be OK again

2009-05-09 Thread Øyvind Harboe
Please report any problems you are experiencing with svn head. Except for the performance regressions, which will be addressed next week, there are no reported problems at this point w.r.t. the JTAG API changes. -- Øyvind Harboe Embedded software and hardware consulting services http://consultin

[Openocd-development] Command to disable jtag_check_value_mask()

2009-05-09 Thread Øyvind Harboe
Does anyone have any objections to adding a command to disable jtag_check_value_mask()? This is along the lines of the existing verify_ircapture and could speed things up. Checking would be on by default just like verify_ircapture. Such a command would serve two purposes(just like verify_ircaptu

Re: [Openocd-development] [PATCH] ARM11 C99 updates

2009-05-09 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

[Openocd-development] [PATCH] ARM11 C99 updates

2009-05-09 Thread Michael Bruck
openocd-arm11-indentation-a07a76e - indentation fix openocd-arm11-for-scoping-c593642 - change 'for' local variable declarations to C99 syntax Michael openocd-arm11-indentation-a07a76e Description: Binary data openocd-arm11-for-scoping-c593642 Description: Binary data __