Re: [Openocd-development] 0.3.0-rc1-dev bugs in s3c2410 nand probe

2009-11-03 Thread Øyvind Harboe
On Wed, Nov 4, 2009 at 4:24 AM, Dennis.Cheng wrote: > In arm920t_write_memory, how about imitate arm926ejs_write_memory? Could you submit a patch? I tried to make minimal changes before 0.3, but as soon as 0.3 is out of the door I'd like arm920t to support breakpoints in memory marked as read on

Re: [Openocd-development] some question about openocd

2009-11-03 Thread Øyvind Harboe
>> proc fwd {n} { >>   for {set i 0} {$i < n} {set i [expr $i+1]} { >>     step >>   } >> } > If I guess correctly the above is bash script, could we execute bash > script under openocd console? > appreciate your help, > miloody The above is a tcl script that you paste into your config file. Then

Re: [Openocd-development] 0.3.0-rc1-dev bugs in s3c2410 nand probe

2009-11-03 Thread Dennis.Cheng
In arm920t_write_memory, how about imitate arm926ejs_write_memory? if (arm920t->armv4_5_mmu.mmu_enabled && (count == 1) && ((size==2) || (size==4))) { /* special case the handling of single word writes to bypass MMU * to allow implementation of breakpoints in memory marked

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Mariano Alvira
On Tue, Nov 03, 2009 at 10:13:24PM +0100, Øyvind Harboe wrote: > >> Should this fix be included for 0.3 or not? > > > > Doesn't matter to me... > > What I meant to ask is: do you think other OpenOCD > users would appreciate it if we included this fix at this > advanced stage? I have no idea what

[Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Mariano Alvira
arm7_9_write_core_regs did not update the core_cache and changes would get clobbered by arm7_9_full_context. This change updates the core_cache before writing the register list. --- src/target/arm7_9_common.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Mariano Alvira wrote: > > > What I meant to ask is: do you think other OpenOCD > > users would appreciate it if we included this fix at this > > advanced stage? > > I have no idea what other openocd users would appreciate. Do other > users poke core registers a lot?

Re: [Openocd-development] CRC check timeout

2009-11-03 Thread Øyvind Harboe
How's this? (Confirmation that *this* patch fixes the problem is still missing...) -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From 553e7bdd606ee0b7015e95f037b07e2dcddb375e Mon Sep 17 00:00:00 2001 From: =?utf-8?q?=C3=98yvi

Re: [Openocd-development] CRC check timeout

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Øyvind Harboe wrote: > Should we include this fix for 0.3? Only if it's updated to comment that it *still* makes an unwise assumption about target clock rate. If it's running with a 32 KHz clock, will that timeout be long enough? How about 8 KHz? Or lower? :) Test

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 4. why we cannot set break point in the branch slot? That would be a core-specific issue. I use OpenOCD mostly for ARMs ... which doesn't have such a notion. >    if I remember correctly, branch slot is the place that cpu may/may >not execute.But w

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 3. can we do some constant steps? >   we can use "step" to execute 1 instruction, but is there any "step > 10", which can let up execute 10 instructions? Not today. The parameter to "step" is an address to resume from, not a count. I've wanted such a

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Øyvind Harboe
>> Should this fix be included for 0.3 or not? > > Doesn't matter to me... What I meant to ask is: do you think other OpenOCD users would appreciate it if we included this fix at this advanced stage? It's a risk/reward judgment on whether to include bugfixes at an advanced stage in the testing cy

Re: [Openocd-development] CRC check timeout

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Dean Glazeski wrote: > I thought I might throw this in here, but the last time I tried to use the > CRC check, it didn't work.  This was a long time ago, but I believe the > problem was due in part to interrupts being enabled on the chip.  Is this > resolved, too? No i

Re: [Openocd-development] 0.3.0-rc0: bugs for FA526 core

2009-11-03 Thread Øyvind Harboe
On Tue, Nov 3, 2009 at 8:55 PM, David Brownell wrote: > On Tuesday 03 November 2009, zzzh.2007 wrote: >> Hi, >> >> For FA526 core, following bugs exist: >> 1. after making a step(in openocd-0.3.0-rc0) at reset vector >> (at addr of 0, which is LDR pc 0x5c), the pc did not skip to >> 0x5c, but to 0

Re: [Openocd-development] USBprog adapter failure to correctly scan IDCODEs

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Peter Denison wrote: > Unfortunately this is down to how the firmware in the adapter is written. > Comms is limited to 64 byte USB packets, and the WRITE_READ command can > therefore take a maximum of 488 bits (61 bytes after 3 header bytes). The > 640 bit IDCODE sc

Re: [Openocd-development] some question about openocd

2009-11-03 Thread loody
Hi: thanks all your kind help :) 2009/11/4 Øyvind Harboe : > On Tue, Nov 3, 2009 at 8:58 PM, David Brownell wrote: >> On Tuesday 03 November 2009, loody wrote: >>> 3. can we do some constant steps? >>>   we can use "step" to execute 1 instruction, but is there any "step >>>   10", which can let up

Re: [Openocd-development] CRC check timeout

2009-11-03 Thread Dean Glazeski
I thought I might throw this in here, but the last time I tried to use the CRC check, it didn't work. This was a long time ago, but I believe the problem was due in part to interrupts being enabled on the chip. Is this resolved, too? // Dean Glazeski On Tue, Nov 3, 2009 at 4:12 PM, David Brown

[Openocd-development] USBprog adapter failure to correctly scan IDCODEs

2009-11-03 Thread Peter Denison
The current code for the USBprog adapter fails right after init when trying to do the DRSCAN for IDCODEs with: Info : 284 201 core.c:948 jtag_examine_chain_display(): JTAG tap: sam7x256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3) Warn : 285 201 core.c:986 jtag_examine_c

Re: [Openocd-development] CRC check timeout

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Øyvind Harboe wrote: > How's this? > > (Confirmation that *this* patch fixes the problem is still missing...) Seems fair to me. If Pieter can confirm before 0.3 finalizes, merge it on the grounds that it can't be _worse_ and may well fix that. __

Re: [Openocd-development] some question about openocd

2009-11-03 Thread Øyvind Harboe
On Tue, Nov 3, 2009 at 8:58 PM, David Brownell wrote: > On Tuesday 03 November 2009, loody wrote: >> 3. can we do some constant steps? >>   we can use "step" to execute 1 instruction, but is there any "step >>   10", which can let up execute 10 instructions? > > Not today.  The parameter to "step"

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Mariano Alvira
On Tue, Nov 03, 2009 at 09:24:31PM +0100, Øyvind Harboe wrote: > How did this problem manifest itself? As a quick way to get code running on a mc13224v, I perform a soft_reset_halt, load an image into RAM, and then I need to bypass the internal bootloader by changing the PC with: arm7_9_write_

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Mariano Alvira wrote: > arm7_9_write_core_regs did not update the core_cache and changes would > get clobbered by arm7_9_full_context. Hmm, that's what it's supposed to do. The docs read: arm7_9 write_core_reg num mode word[Debug

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Mariano Alvira
On Tue, Nov 03, 2009 at 03:03:47PM -0700, David Brownell wrote: > Making me wonder why the command still exists. If no current > developers are using it, I'd be inclined to just remove it > in the 0.4.x cycle... Well I certainly didn't like that command as-is! > > So that when you were typing

Re: [Openocd-development] How to get CPUTAPID for new board

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, Matt Hsu wrote: > Hi all, > > I would like to support another cortex A8 machine, s5pc100. > In theory, add proper target configs should be enough. > Since the support of cortex A8 is almost finished. > > The first issue comes up is how do I know the CPUTAPID for the n

Re: [Openocd-development] 0.3.0-rc0: bugs for FA526 core

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, zzzh.2007 wrote: > Hi, > > For FA526 core, following bugs exist: > 1. after making a step(in openocd-0.3.0-rc0) at reset vector > (at addr of 0, which is LDR pc 0x5c), the pc did not skip to > 0x5c, but to 0xfc(the instruction at addr of 4 is LDR pc 0x100) Is that is

Re: [Openocd-development] 0.3.0-rc0: bugs for FA526 core

2009-11-03 Thread zzzh.2007
Hi, David, Yes, the bugs still exists, i am looking into the codes by myself now, though i'm not familiar with the JTAG protocol. Hopefully, i can get support from you, or one of the developers, i can provide hardware support if needed. Thanks & Regards. --

Re: [Openocd-development] 0.3.0-rc0: bugs for FA526 core

2009-11-03 Thread zzzh.2007
Hi, David, Yes, the bugs still exists, i am looking into the codes by myself now, though i'm not familiar with the JTAG protocol. Hopefully, i can get support from you, or one of the developers, i can provide hardware support if needed. Thanks & Regards. --

Re: [Openocd-development] [PATCH] update core_cache in arm7_9_write_core_regs

2009-11-03 Thread Øyvind Harboe
How did this problem manifest itself? Should this fix be included for 0.3 or not? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-developm

[Openocd-development] CRC check timeout

2009-11-03 Thread Øyvind Harboe
Should we include this fix for 0.3? Confirmation that it works and looks OK would be a point in favor. Hint! Hint! ;-) -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From e37076a747bc1f1a709ec9feb57c9492dc18b062 Mon Sep 17 00:

Re: [Openocd-development] openocd-0.3.0-rc0 bug: Fail to write to Intel NOR Flash on AT91SAM9260

2009-11-03 Thread Øyvind Harboe
How's this? 20 second timeout/megabyte -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From 1b60ce8d5badb730739744323cb7cd4ac6c252af Mon Sep 17 00:00:00 2001 From: =?utf-8?q?=C3=98yvind=20Harboe?= Date: Tue, 3 Nov 2009 15:3

Re: [Openocd-development] openocd-0.3.0-rc0 bug: Fail to write to Intel NOR Flash on AT91SAM9260

2009-11-03 Thread Pieter Conradie
No need to run a git bisect :) I have confirmed that my hunch was correct. In File: src/target/arm7_9_common.c Function: arm7_9_checksum_memory Line: 2825 crc_algorithm->address, crc_algorithm->address + (sizeof(arm7_9_crc_code) - 8), 2, &armv4_5_info)) != ERROR_OK) I changed the timeout

Re: [Openocd-development] How to get CPUTAPID for new board

2009-11-03 Thread Yegor Yefremov
> The first issue comes up is how do I know the CPUTAPID for the new board? > I went through the document of openocd, but could not find out > comprehensive description > talked about how to obtain CPUTAPID. What do I miss? > Or what should I be familiar with first? > Any suggestions would be great

Re: [Openocd-development] 0.3.0-rc1-dev bugs in s3c2410 nand probe

2009-11-03 Thread Øyvind Harboe
On Tue, Nov 3, 2009 at 2:15 PM, Dennis.Cheng wrote: > Thanks. It works well :-). I've pushed the fix. I'm a little bit worried about being able to test the case where a write to a cache line for a breakpoint. Here the code has to flush that cache line + invalidate the cache line. -- Øyvind H

[Openocd-development] 0.3.0-rc0: bugs for FA526 c ore

2009-11-03 Thread zzzh.2007
Hi, For FA526 core, following bugs exist: 1. after making a step(in openocd-0.3.0-rc0) at reset vector(at addr of 0, which is LDR pc 0x5c), the pc did not skip to 0x5c, but to 0xfc(the instruction at addr of 4 is LDR pc 0x100) 2. can't step or set break point via gdb commands(next, break).

[Openocd-development] How to get CPUTAPID for new board

2009-11-03 Thread Matt Hsu
Hi all, I would like to support another cortex A8 machine, s5pc100. In theory, add proper target configs should be enough. Since the support of cortex A8 is almost finished. The first issue comes up is how do I know the CPUTAPID for the new board? I went through the document of openocd, but could

Re: [Openocd-development] 0.3.0-rc1-dev bugs in s3c2410 nand probe

2009-11-03 Thread Øyvind Harboe
Try the attached patch. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From f37c9b8d1560d0081e53c71c55113a3c9858011a Mon Sep 17 00:00:00 2001 From: =?utf-8?q?=C3=98yvind=20Harboe?= Date: Tue, 3 Nov 2009 12:28:00 +0100 Subject:

Re: [Openocd-development] openocd-0.3.0-rc0 bug: Fail to write to Intel NOR Flash on AT91SAM9260

2009-11-03 Thread Øyvind Harboe
Pushed to master patch that inexplicably fixes the problem(improve error handling and output for working area). Hopefully once we track down the verify problem, we'll find the real culprit -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flas

Re: [Openocd-development] some question about openocd

2009-11-03 Thread David Brownell
On Tuesday 03 November 2009, loody wrote: > 1. what are the differences between bp hw and bp sw? >I know some cpu, like mips, have break assembly instruction. >Does that mean if we use bp hw, the openocd will insert the "break" > assembly at the location we assign? That would be "bp sw".

Re: [Openocd-development] openocd-0.3.0-rc0 bug: Fail to write to Intel NOR Flash on AT91SAM9260

2009-11-03 Thread Øyvind Harboe
On Tue, Nov 3, 2009 at 10:35 AM, Pieter Conradie wrote: > Hi Øyvind, > > Genius! The patch works :) That makes no sense to me. Please post the debug_level 3 log... > 0.3.0-rc0 with patch was able to successfully program and verify a 512k image. > > It is also able to succesfully program a 16 Mby

[Openocd-development] some question about openocd

2009-11-03 Thread loody
Dear all: I have some questions about Openocd: 1. what are the differences between bp hw and bp sw? I know some cpu, like mips, have break assembly instruction. Does that mean if we use bp hw, the openocd will insert the "break" assembly at the location we assign? 2. why we need to set lengt

[Openocd-development] [PATCH] omap3530: move assertion of PRM_RSTCTRL from reset-assert-pre to reset-start

2009-11-03 Thread Matt Hsu
If enabling of global software reset is handled in reset-assert-pre stage, target would get into Thumb state occasionally. That's, the target is not indeed reset. Fix this by moving PRM_RSTCTRL in the reset-start stage like previous config. Signed-off-by: Matt Hsu --- tcl/target/omap3530.cfg |