Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Michael Schwingen
Gary Carlson wrote: 1) One of the features that the software currently allows is configuration setting inheritance from board to target to CPU. While I generally am a big advocate of extensibility in most software projects, I have been very leery of doing this for hardware-specific

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Øyvind Harboe
2)  One possible process improvement that I believe makes sense is to start enforcing a rule that authors of new configuration files must include a minimal comment header at the top of the file that specifies the exact hardware/debugger combination used.  The SAM-ICE (J-link) debugger I am

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Magnus Lundin
3) One feature that I think may make sense to add at some point in the future to the main software is support for label/value associations that allow hexadecimal register values to be associated with more legible and understandable names. Looking at mww 0x3ec2 0x2 in a configuration

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Gary Carlson
I can now see that I left off a critical detail! :) Yes, you most certainly can use a TCL set command to accomplish this. The only issue is you have to spend an inordinate amount of time entering the values by hand. That in itself is another source for errors -- especially on processors with

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Gary Carlson
On 9/1/09 12:04 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: 2)  One possible process improvement that I believe makes sense is to start enforcing a rule that authors of new configuration files must include a minimal comment header at the top of the file that specifies the exact

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Øyvind Harboe
Crazy idea: - write a small C app for the target that goes along with board config file - this .elf file is loaded by OpenOCD - use built-in ARM simulator to execute fn's in that .elf file ? -- Øyvind Harboe Embedded software and hardware consulting services http://www.zylin.com

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Michael Schwingen
Øyvind Harboe wrote: Crazy idea: - write a small C app for the target that goes along with board config file - this .elf file is loaded by OpenOCD - use built-in ARM simulator to execute fn's in that .elf file What advantage does that provide? You need a disassembler to view the effective

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Øyvind Harboe
On Tue, Sep 1, 2009 at 10:24 AM, Michael Schwingenrincew...@discworld.dascon.de wrote: Øyvind Harboe wrote: Crazy idea: - write a small C app for the target that goes along with board config file - this .elf file is loaded by OpenOCD - use built-in ARM simulator to execute fn's in that .elf

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Michael Schwingen
Øyvind Harboe wrote: What advantage does that provide? You need a disassembler to view the effective board-init sequence, you need a cross-toolchain to modify the code, in comparison to just changing a script file. You can use the header files for the target file without having to

Re: [Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-09-01 Thread Øyvind Harboe
Hm - yes, that might be useful. I have used objdump to extract the initialization tables from my board-init code to create BDI2000/OpenOCD init scripts. Now, if we could do that in some *nice* way it would be quite a powerful method. Most every PCB out there has some working sample code

[Openocd-development] FW: AT91SAM9G20-EK.cfg

2009-08-31 Thread Gary Carlson
Hi Øyvind, Yes, you are absolutely correct that configuration files are a lot of work to put together. And I might add critical too! :) One of the things I wanted to do is throw out some ideas for everyone to think about as possible improvements to this configuration file development process.