Re: [Openocd-development] Getting rid of default jtag clock rate

2010-12-06 Thread Øyvind Harboe
could be 1MHz, autodetect or whatever, but all configuration scripts are required to make decision. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG

Re: [Openocd-development] Getting rid of default jtag clock rate

2010-12-06 Thread Øyvind Harboe
I don't subscribe to the idea that there is a safe, correct and robust default setting for JTAG clock, better to make the user get a good error message that points him in the right direction. 1MHz will fail on plenty of cards (with RC oscilators typically). -- Øyvind Harboe Can

Re: [Openocd-development] Getting rid of default jtag clock rate

2010-12-06 Thread Øyvind Harboe
A starting patch, propagate error for getting speed. In the future it will fail when no jtag speed has been set before someone queries the speed. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com

Re: [Openocd-development] Getting rid of default jtag clock rate

2010-12-05 Thread Øyvind Harboe
More generally, if there is something that user must specify that he hasn't and the script is working by chance, then it would be great if we could robustly detect this situation and require the user to specify that option. -- Øyvind Harboe Can Zylin Consulting help on your project? US

Re: [Openocd-development] Getting rid of default jtag clock rate

2010-12-05 Thread Øyvind Harboe
On Sun, Dec 5, 2010 at 5:43 PM, David Brownell wrote: > > > --- On Sun, 12/5/10, Øyvind Harboe wrote: > >> Does anyone have any objections to >> getting rid of the >> concept of a default JTAG clock rate? > > NO.  But let's see a proposed patch ...

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-05 Thread Øyvind Harboe
Try with the currently committed stuff: openocd -c "set CCLK 12345; source [find target/lpc2478.cfg]" -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale C

[Openocd-development] Getting rid of default jtag clock rate

2010-12-05 Thread Øyvind Harboe
in my book that counts as not using the default clock rate. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash progr

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-05 Thread Øyvind Harboe
much appreciate the effort that you put into answering all the questions that came up to this patch. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9

[Openocd-development] SVF chain handling patch

2010-12-05 Thread Øyvind Harboe
try: git add . git commit --author="Andrew Leech " => type commit comment git format-patch HEAD^ -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JT

Re: [Openocd-development] (patch) New board config for Embedded Artists LPC2478-32

2010-12-04 Thread Øyvind Harboe
On Sat, Dec 4, 2010 at 9:52 AM, Freddie Chopin wrote: > On 2010-12-04 09:40, Øyvind Harboe wrote: >> >> Merged. >> >> Thanks! > > You know that this does not work the intended way >without the "new" version of lpc2478.cfg file? Ah, right. It doesn

Re: [Openocd-development] [PATCH] SVF Chain Handling (was: lpc3131 and Actel FPGA chain programming)

2010-12-04 Thread Øyvind Harboe
How's this one coming? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash progr

Re: [Openocd-development] [PATCH] xscale: trace buffer remains enabled until explicitly disabled

2010-12-04 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) Fix sector layout for 512-KiB LPC2300/2400 parts

2010-12-04 Thread Øyvind Harboe
merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) Hitex LPC2929 board script fix

2010-12-04 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) New board config for Embedded Artists LPC2478-32

2010-12-04 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) Change target script for LPC2478

2010-12-03 Thread Øyvind Harboe
Looks good to me. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) Hitex LPC2929 board script fix

2010-12-03 Thread Øyvind Harboe
Will merge. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] (patch) New board config for Embedded Artists LPC2478-32

2010-12-03 Thread Øyvind Harboe
Any objections to merging? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] (patch) Fix sector layout for 512-KiB LPC2300/2400 parts

2010-12-03 Thread Øyvind Harboe
You're the expert. I'll merge after cooloff. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash

Re: [Openocd-development] faster way to do dcc?

2010-12-02 Thread Øyvind Harboe
When I tried it, it was OK. I didn't use a dongle though, but the ZY1000 obviously. The ZY1000 is more like the Abatron in that it actually runs OpenOCD onboard and thus benefits from very low latency. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980

Re: [Openocd-development] Help with Bad value captured during DR or IR scan:

2010-12-02 Thread Øyvind Harboe
Try reducing the jtag_khz, you may be on the edge of what works. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [PATCH] xscale: trace buffer remains enabled until explicitly disabled

2010-12-02 Thread Øyvind Harboe
You're the expert. If I don't hear anything, I'll merge it after a cooloff on the list -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JT

Re: [Openocd-development] [PATCH 2/2] rename some target scripts to be consistent with the rest

2010-12-02 Thread Øyvind Harboe
y I want source control to be treated as a hard problem, both by tools and engineers I work with. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy

Re: [Openocd-development] [PATCH 2/2] rename some target scripts to be consistent with the rest

2010-12-02 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] Programming external flash with OpenOCD fails

2010-12-02 Thread Øyvind Harboe
On Thu, Dec 2, 2010 at 6:21 PM, Starkeeper wrote: > How can I test if the working area is correct? > The memorymap of my controller tells me that at address 0x4000 is a > 64KB RAM. mww + mdw? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866

Re: [Openocd-development] Remote 'g' packet reply is too long

2010-12-02 Thread Øyvind Harboe
Search for "set architecture". I'm working on a project where I'm getting too many registers from the GDB server compared to what I need, and then I set the architecture before I try target remote: set architecture powerpc:common target remote -- Øyvind Harboe

Re: [Openocd-development] [PATCH 2/2] rename some target scripts to be consistent with the rest

2010-12-01 Thread Øyvind Harboe
Any objections to this patch? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [PATCH 1/2] add "cortex_m3 reset_config ..." to stm32.cfg

2010-12-01 Thread Øyvind Harboe
Any objections to this one? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] Lost patches

2010-12-01 Thread Øyvind Harboe
On Wed, Dec 1, 2010 at 11:00 PM, Freddie Chopin wrote: > On 2010-12-01 22:41, Øyvind Harboe wrote: >> >> On Wed, Dec 1, 2010 at 10:25 PM, Freddie Chopin >>  wrote: >>> >>> On 2010-11-30 08:20, Øyvind Harboe wrote: >>>> >>>> Are the

Re: [Openocd-development] Lost patches

2010-12-01 Thread Øyvind Harboe
On Wed, Dec 1, 2010 at 10:25 PM, Freddie Chopin wrote: > On 2010-11-30 08:20, Øyvind Harboe wrote: >> >> Are there any patches out there that should have been >> applied but haven't? > > Are you planning a release? I'm hopeful that we can get the swd stuff fr

Re: [Openocd-development] iMX51 workaround

2010-12-01 Thread Øyvind Harboe
On Wed, Dec 1, 2010 at 6:04 PM, Peter Stuge wrote: > Øyvind Harboe wrote: >> If iMX51 is broken and the current CortexA8 workaround code for it >> breaks other CPUs, then I think that the automatic workaround code >> for iMX51 has to be either fixed or removed. > > Do y

Re: [Openocd-development] git submodule failure behind HTTP-only proxy

2010-12-01 Thread Øyvind Harboe
.cz/r/git2cl.git This is not a workaround, it's a solution! :-) The only question is whether we should commit the change. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html

Re: [Openocd-development] Programming external flash with OpenOCD fails

2010-12-01 Thread Øyvind Harboe
he load command notice that >the target address is in Flash and start the flash programming? That's right. "load" will look at the configuration and if the memory range is flash, then the flash is erased and programmed. -- Øyvind Harboe Can Zylin Consulting help on yo

Re: [Openocd-development] LPC2919 segmentation fault

2010-11-30 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] Programming external flash with OpenOCD fails

2010-11-30 Thread Øyvind Harboe
Normally you should be able to connect and flash by: target remote localhost: monitor reset init load stepi -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale

Re: [Openocd-development] Aborted; stm32 with too high clock

2010-11-30 Thread Øyvind Harboe
Can you try with a 32 bit OpenOCD executable? On Wed, Dec 1, 2010 at 8:35 AM, Domen Puncer wrote: > On Tue, Nov 30, 2010 at 16:09, Øyvind Harboe wrote: >> Could you try to reproduce this with the dummy driver? >> >> configure --enable-dummy ... >> >> openocd

Re: [Openocd-development] [PATCH] TARGET: Add "phys" flag to dump_image command

2010-11-30 Thread Øyvind Harboe
a generic mmu enable/disable (+ report status) command. Perhaps looking at virt2phys command and implementation would be a good start? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 A

Re: [Openocd-development] Programming external flash with OpenOCD fails

2010-11-30 Thread Øyvind Harboe
Did you try "reset init" and then flash programming? Perhaps there is some memory parameters that have to be set up. You did not provide a complete configuration file... -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 5

Re: [Openocd-development] Programming external flash with OpenOCD fails

2010-11-30 Thread Øyvind Harboe
Could you provide a log? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] lm3s - clearing lockup after double fault

2010-11-30 Thread Øyvind Harboe
Try reducing the clock speed to something ridiculously low. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] Aborted; stm32 with too high clock

2010-11-30 Thread Øyvind Harboe
Could you try to reproduce this with the dummy driver? configure --enable-dummy ... openocd -c "interface dummy" -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7

Re: [Openocd-development] STM32 reset halt segfault on Mac OS X

2010-11-30 Thread Øyvind Harboe
32 vs. 64 bit problem? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

[Openocd-development] Lost patches

2010-11-29 Thread Øyvind Harboe
Are there any patches out there that should have been applied but haven't? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash progr

[Openocd-development] iMX51 workaround

2010-11-29 Thread Øyvind Harboe
If iMX51 is broken and the current CortexA8 workaround code for it breaks other CPUs, then I think that the automatic workaround code for iMX51 has to be either fixed or removed. Thoughts? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International

Re: [Openocd-development] Automatic detection of debugbase for cortex A8

2010-11-29 Thread Øyvind Harboe
   } > > Is there another way that these problematic CPUs can be identified? Anyone? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG deb

Re: [Openocd-development] [PULL-REQUEST] Floss-JTAG and Lisa/L updates and fixes

2010-11-29 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

[Openocd-development] Release maintainer

2010-11-29 Thread Øyvind Harboe
Is there anyone on the list with experience as a release engineer for an open source project that would like to have a stab at releasing OpenOCD 0.5? We need some extra hands... -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63

Re: [Openocd-development] STM32 reset halt segfault on Mac OS X

2010-11-29 Thread Øyvind Harboe
working > for me. Good catch! Unfortunately that's a pretty big commit. The next thing I could suggest in terms of bisection would be to create a working branch and split that commit as many times as possible and do a bisect on that branch... -- Øyvind Harboe Can Zylin Consulting

Re: [Openocd-development] [PATCH] SVF Chain Handling (was: lpc3131 and Actel FPGA chain programming)

2010-11-29 Thread Øyvind Harboe
Note that I'm just a humble maintainer here. I'm not able to follow this part of the OpenOCD conversation and you guys are the experts. Let me know when you all agree that the patches are ready to be merged. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll

Re: [Openocd-development] [PATCH] TARGET: Add "phys" flag to dump_image command

2010-11-29 Thread Øyvind Harboe
On Mon, Nov 29, 2010 at 11:12 PM, Timo Juhani Lindfors wrote: > Øyvind Harboe writes: >> This patch introduces a serious and sweeping regression that >> a compiler warning caught: > > Indeed. Thanks for catching this and sorry for forgetting the return. > >> Ho

Re: [Openocd-development] [PULL-REQUEST] Floss-JTAG and Lisa/L updates and fixes

2010-11-29 Thread Øyvind Harboe
Does anyone have any objections to committing this? Are you the expert on this interface? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and

Re: [Openocd-development] [PULL-REQUEST] Floss-JTAG and Lisa/L updates and fixes

2010-11-29 Thread Øyvind Harboe
Hi, could you post the patches. Thanks! Easier to review and the way things are normally done here on the list. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale

Re: [Openocd-development] [PATCH] TARGET: Add "phys" flag to dump_image command

2010-11-29 Thread Øyvind Harboe
patch? (Otherwise the patch seems fine to me) -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] LPC2919 segmentation fault

2010-11-29 Thread Øyvind Harboe
Hi Rolf, you're the expert here. Let me know when you think the change is ready to go in. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG deb

Re: [Openocd-development] STM32 reset halt segfault on Mac OS X

2010-11-28 Thread Øyvind Harboe
This is a backtrace without line numbers. Could you try to produce a backtrace with linenumbers? Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG

Re: [Openocd-development] LPC2919 segmentation fault

2010-11-26 Thread Øyvind Harboe
2010/11/26 MIroslav Dušek : > Hi , > Thank you for help. > I am sorry, but what is openocd master branch? 0.4 is quite old. Your problem may have been long fixed. clone the openocd git repository, check out the master branch build OpenOCD. -- Øyvind Harboe Can Zylin Consulting hel

[Openocd-development] segfault idea

2010-11-26 Thread Øyvind Harboe
How about adding a handler(to Windows and Linux) that prints out instructions on how to track down and report a segfault? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11

Re: [Openocd-development] LPC2919 segmentation fault

2010-11-25 Thread Øyvind Harboe
Try the openocd master branch. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [patch]cfi_query_string(): Could not probe bank: no QRY

2010-11-24 Thread Øyvind Harboe
Does this code do this unconditionally for all flash types or only the flash types that require it? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG

Re: [Openocd-development] jimtcl repo problem

2010-11-24 Thread Øyvind Harboe
e add a mirror, or kill > it. Right now, it's not possible to bootstrap openocd. > > 2). Can someone email me a tarball of the jimtcl repo? Or preferably > point me at a git mirror? Be patient. repo.or.cz is used by thousands of people, so it will probably be up again before lon

Re: [Openocd-development] [patch] SMI for STR750, rename as stmsmi

2010-11-22 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-22 Thread Øyvind Harboe
breakpoints is a key feature of OpenOCD whereas the "bp" from the telnet is more peripheral so we want to make sure that we don't break gdb breakpoints here. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 h

Re: [Openocd-development] [PATCH] Documentation: fix typo

2010-11-22 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

[Openocd-development] [PATCH] flash: iterating over an address range now handles multiple banks

2010-11-22 Thread Øyvind Harboe
e.g. flash erase_address now works across an address range that spans multiple flash chips. Signed-off-by: Øyvind Harboe --- src/flash/nor/core.c | 39 ++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/src/flash/nor/core.c b/src/flash/nor

[Openocd-development] [PATCH] fastload: fix error handling upon running out of memory

2010-11-22 Thread Øyvind Harboe
Signed-off-by: Øyvind Harboe --- src/target/target.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/target/target.c b/src/target/target.c index a282aab..93efa76 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -4964,9 +4964,10

Re: [Openocd-development] [patch] SMI for STR750, rename as stmsmi

2010-11-21 Thread Øyvind Harboe
You're the expert here. Unless I hear protests from others I intend to commit this after a cool-off period. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale C

Re: [Openocd-development] with_telnet_interface, _soft_bp_effects_one_time

2010-11-21 Thread Øyvind Harboe
           } Before we make further changes, we'll have to find out where it broke and how to fix it properly. The problem with the change above is that I worry that it will break GDB breakpoints. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-34

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-21 Thread Øyvind Harboe
Good work! Which commit was is that actually broke this? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
the binary search? Read "git bisect" documentation for tips. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
Can you try a "git bisect" ? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash

Re: [Openocd-development] with_telnet_interface, _soft_bp_effects_one_time

2010-11-18 Thread Øyvind Harboe
ot openocd   replace the actual instruction at the breakpoint ?). Yes. The way software breakpoints are implemented in CPUs is that the instruction at the breakpoint address is modified to a software breakpoint instruction. That's why software breakpoints in flash is pretty much impractical.

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
On Thu, Nov 18, 2010 at 11:18 AM, 韦东山 wrote: > Øyvind_Harboe, gdb is ok. I want to use telnet interface. The telnet bp commands is a less trodden path I suppose. Did you read up on the source code? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-18 Thread Øyvind Harboe
On Thu, Nov 18, 2010 at 11:05 AM, 韦东山 wrote: > I have try the latest master branch, the problem is the same. Did you try from gdb? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.h

Re: [Openocd-development] with telnet interface, soft bp effects one time

2010-11-17 Thread Øyvind Harboe
Please try with the latest master branch. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [patch] cleanup NOR include files

2010-11-17 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-16 Thread Øyvind Harboe
Merged. Thanks! (Please post followup patches in new thread) -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-16 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

Re: [Openocd-development] [PATCH] Build inline jimtcl

2010-11-16 Thread Øyvind Harboe
+ there is the disable internal jim option if the user wants to use something else. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and f

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-16 Thread Øyvind Harboe
> Are you aware of any target, other than SPEAr, that provides memory > mapping feature of SPI flash? I quickly searched, but failed. Wow :-) The only case I know of is the ZPU which has a memory mapped serial flash, but that's another story not relevant here. -- Øyvind Harboe

Re: [Openocd-development] [PATCH] SVF Chain Handling (was: lpc3131 and Actel FPGA chain programming)

2010-11-16 Thread Øyvind Harboe
svf/xsvf has been a somewhat peripheral feature of OpenOCD and I couldn't possibly comment on whether this patch should be applied or not. Do you feel it's ready to be applied if there are no protests? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-86

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-16 Thread Øyvind Harboe
Merged. It would be nice with some followup patches: - some comments on how this code can/should be refactored rather than copy pasted as new devices are added - a patch to get rid of the non-sensical .h files in drivers/nor/*.h and just put the private data into the .c file. -- Øyvind

Re: [Openocd-development] Config file format/line endings

2010-11-15 Thread Øyvind Harboe
A large startup.tcl is generated by the makefiles from many smaller startup.tcl scripts around the source tree. This startup.tcl is then converted to .c and linked into openocd. Why? Because it was felt that it was an important feature to be able to launch openocd without a dependency on the file

Re: [Openocd-development] [PATCH] flash: fix bug with multiple back-to-back flash chips

2010-11-15 Thread Øyvind Harboe
On Mon, Nov 15, 2010 at 4:35 PM, Peter Stuge wrote: > Øyvind Harboe wrote: >> Note that if an image is too big(even if you have multiple >> back to back chips), you'll now get an error message that >> no flash chip is found: >> >> LOG_ERROR("No flash

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-15 Thread Øyvind Harboe
On Mon, Nov 15, 2010 at 4:07 PM, Peter Stuge wrote: > Øyvind Harboe wrote: >> > there are parts of the patch which should be separated out, >> > because they are not really specific to spearsmi. > .. >> > Refactor now, or then? > .. >> I haven't se

[Openocd-development] [PATCH] flash: fix bug with multiple back-to-back flash chips

2010-11-15 Thread Øyvind Harboe
flash programming via flash write_image or gdb load would produce a bogus error message that the flash chip was to small. The solution is to limit the current flash programming run to the current chip. Signed-off-by: Øyvind Harboe --- src/flash/nor/core.c | 10 +++--- 1 files changed, 7

Re: [Openocd-development] [PATCH] flash: fix bug with multiple back-to-back flash chips

2010-11-15 Thread Øyvind Harboe
Note that if an image is too big(even if you have multiple back to back chips), you'll now get an error message that no flash chip is found: LOG_ERROR("No flash at address 0x%08" PRIx32 "\n", addr); -- Øyvind Harboe Can Zylin Consulting help on your project? US

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-15 Thread Øyvind Harboe
On Sat, Nov 13, 2010 at 1:09 PM, Peter Stuge wrote: > Øyvind Harboe wrote: >> So basically if OpenOCD had some generic support for >> interfacing to SPI chips via the target CPU over JTAG, >> then you could build on that for your flash driver? >> >> That seems

Re: [Openocd-development] Retire httpd

2010-11-15 Thread Øyvind Harboe
On Sat, Nov 13, 2010 at 10:17 AM, Øyvind Harboe wrote: > Going twice... Merged. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and fl

Re: [Openocd-development] [PATCH] Add comments and tiny improvements to STM32 flash loader algorithm

2010-11-15 Thread Øyvind Harboe
> > _______ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development > > -- Øyvind Harboe Can Zylin Consulting

Re: [Openocd-development] segfault when gdb connects, but target is not connected

2010-11-15 Thread Øyvind Harboe
On Mon, Nov 15, 2010 at 8:37 AM, Domen Puncer wrote: > On Sat, Nov 13, 2010 at 13:08, Øyvind Harboe wrote: >> Does the attached patch fix the problem? > > Jup, did the trick. Merged. Thanks for testing & excellent reporting! -- Øyvind Harboe Can Zylin Consulting help o

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Øyvind Harboe
On Sun, Nov 14, 2010 at 10:58 PM, Freddie Chopin wrote: > On 2010-11-14 18:49, Øyvind Harboe wrote: >> >> The problem is that the target is crashing while executing the programming >> algorithm, so it never completes. > > You mean crashing like having Hard Fault excep

Re: [Openocd-development] Disable stm32x block write by default?

2010-11-14 Thread Øyvind Harboe
> As I cannot reproduce, if this one is repeating at your side, maybe try > injecting some messages around there to see whether that's the exact point > of problems? The problem is that the target is crashing while executing the programming algorithm, so it never completes. --

Re: [Openocd-development] [PATCH] Add comments and tiny improvements to STM32 flash loader algorithm

2010-11-14 Thread Øyvind Harboe
>> Perhaps sharper error messages? > > It was in the previous code: > > -       tst             r3, #0x14 > -       bne             exit k. I missed that one. Unless I hear protests, I'll merge this code after a cool off period. -- Øyvind Harboe Can Zylin Consulting

Re: [Openocd-development] [PATCH] Add comments and tiny improvements to STM32 flash loader algorithm

2010-11-14 Thread Øyvind Harboe
On Sat, Nov 13, 2010 at 11:14 PM, Freddie Chopin wrote: > On 2010-11-13 16:47, Øyvind Harboe wrote: >> >> Is it conceivable that this would address the block >> flash programming problems I saw the other day >> and you were not able to reproduce? > > Rather not..

Re: [Openocd-development] [PATCH] Add comments and tiny improvements to STM32 flash loader algorithm

2010-11-13 Thread Øyvind Harboe
Is it conceivable that this would address the block flash programming problems I saw the other day and you were not able to reproduce? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7

Re: [Openocd-development] segfault when gdb connects, but target is not connected

2010-11-13 Thread Øyvind Harboe
Does the attached patch fix the problem? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From

Re: [Openocd-development] [Patch] SPEAr serial NOR flash driver

2010-11-13 Thread Øyvind Harboe
factoring out some code from your flash driver. It would be nice to have two or three flash drivers doing this so we can start seeing what it would make sense to have in the common API. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51

Re: [Openocd-development] Peripheral register view in Eclipse

2010-11-13 Thread Øyvind Harboe
e assuring that such databases are up to date. They do for Keil, IAR and their ilk. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash

[Openocd-development] Peripheral register view in Eclipse

2010-11-13 Thread Øyvind Harboe
Has anyone taken this plugin for a spin? It displays peripheral registers and there are databases for some common CPUs built in. http://sourceforge.net/projects/embsysregview/ -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25

Re: [Openocd-development] Retire httpd

2010-11-13 Thread Øyvind Harboe
Going twice... -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd

<    5   6   7   8   9   10   11   12   13   14   >