Re: [Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-27 Thread luca ellero
On 26/04/2011 23.08, Øyvind Harboe wrote: The problem is that the ft2232_init() fn will invoke jtag_xxx() fn's. However, until ft2232_init() returns, the interface is not set up and that part of the API is not open for business, causing strange effects. ft2232_init() sets up a default speed.

[Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-26 Thread Luca Ellero
I've noticed strange behaviour in initialization with TI OMAP4430 and Freescale iMX53 using Amontec JTAGKEY. Even typing keys on OpenOCD shell was very very slow. I didn't investigate too much the causes. Anyway this patch fix it. Signed-off-by: Luca Ellero lro...@gmail.com --- src/jtag/core.c

Re: [Openocd-development] cortex_a :smp feature

2011-04-20 Thread luca ellero
I haven't the hardware at hand for testing. Regards Luca Ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] cortex_a :smp feature

2011-04-20 Thread luca ellero
On 20/04/2011 9.39, Øyvind Harboe wrote: Looks a good patch to me. Bringing SMP support on OpenOCD is very good! Unfortunately at the moment I haven't the hardware at hand for testing. Thanks for the feedback! What about the danger of regressions or effects on non-SMP debugging? (I haven't

Re: [Openocd-development] cortex_a :smp feature

2011-04-20 Thread luca ellero
On 20/04/2011 14.35, Michel JAOUEN wrote: Hello, I have a panda board. So I can do the test. In file, omap4430.cfg , only one cortex_a8 is defined. What is the dbg_base of the second one? Best regards Hi Michel, if you check omap4430.cfg you can find the following info: # APB DBGBASE

Re: [Openocd-development] cortex_a : dap_ap_select issue when multiple target on the same dap

2011-04-13 Thread luca ellero
access even if mmu is on : (This support is needed for ste u8500, DDR is not accessible from ap mem) Best regards -Original Message- From: Øyvind Harboe [mailto:oyvind.har...@zylin.com] Sent: Monday, April 11, 2011 8:26 PM To: Michel JAOUEN Cc: luca ellero; openocd-development

[Openocd-development] [PATCH 2/3] Add opcodes for load/store registers words immediate post-indexed

2011-04-13 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/arm_opcodes.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) mode change 100644 = 100755 src/target/arm_opcodes.h diff --git a/src/target/arm_opcodes.h b/src/target/arm_opcodes.h old mode 100644 new mode 100755

[Openocd-development] [PATCH 1/3] Add preliminary support for Freescale iMX53

2011-04-13 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- tcl/target/imx53.cfg | 51 ++ 1 files changed, 51 insertions(+), 0 deletions(-) create mode 100644 tcl/target/imx53.cfg diff --git a/tcl/target/imx53.cfg b/tcl/target/imx53.cfg new file mode 100644

[Openocd-development] [PATCH 3/3] Replace byte-access to memory with faster word-access

2011-04-13 Thread Luca Ellero
Freescale iMX53 doesn't seem to like unaligned accesses to his memory mapped registers. Anyway this patch makes dump_image/load_image 4X faster for every access through APB. Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a.c | 90

Re: [Openocd-development] Pandaboard testing

2011-04-04 Thread luca ellero
On 02/04/2011 18.32, Øyvind Harboe wrote: How did you test? Do you have a list of features that work and doesn't work for pandaboard now? Hi Øyvind, I just did some basic testing: - halting processor - read/write memory/registers - stepping - resetting CPU - setting hardware breakpoints -

Re: [Openocd-development] Pandaboard testing

2011-04-04 Thread luca ellero
On 04/04/2011 9.43, Øyvind Harboe wrote: Thanks for testing! That's a pretty good list to kick things off! Features still to be implemented on PandaBoard (and all others Cortex-A*) are: - software breakpoints Presumably the issue here is how to deal with caching? I didn't investigate too

Re: [Openocd-development] Remove dbgbase patchup code

2011-04-01 Thread luca ellero
On 31/03/2011 19.02, Øyvind Harboe wrote: Do we delete the dbgbase patchup code now that we have automatic detection default with manual override? ..ehm, sorry, I think I've miss something here: if you remove dbgbase code, how can be made manual override? Thanks Luca

Re: [Openocd-development] Remove dbgbase patchup code

2011-04-01 Thread luca ellero
On 01/04/2011 9.00, Øyvind Harboe wrote: On Fri, Apr 1, 2011 at 9:01 AM, luca ellerolro...@gmail.com wrote: On 31/03/2011 19.02, Øyvind Harboe wrote: Do we delete the dbgbase patchup code now that we have automatic detection default with manual override? ..ehm, sorry, I think I've miss

Re: [Openocd-development] making contributing easier

2011-03-30 Thread luca ellero
On 29/03/2011 22.58, Tormod Volden wrote: On Tue, Mar 29, 2011 at 10:35 PM, Øyvind Harboe wrote: How about adding a contribute script which did the following: - fetch from origin - commit changes from user, bringing up a text editor with a template commit message. - rebase origin to the master

Re: [Openocd-development] [PATCH 1/2] cortex a9: merge cortex a9 and a8 code

2011-03-21 Thread luca ellero
On 21/03/2011 14.20, Øyvind Harboe wrote: I didn't do anything clever here. Reading the cortex_a9/a8.c logs it looked like Cortex A8 had simply been abandoned, so I copied cortex_a9.c onto cortex_a8.c, did a quick search and replace job and deleted cortex_a9.c. Any objections? Insights? Does

[Openocd-development] [PATCH] cortex_a8: remove dap_ap_sel calls

2011-02-22 Thread Luca Ellero
add new mem_ap_sel_* functions (as was made for cortex_a9) see commit: 779005f43dc372de937dfd4b445f31d882b98eca Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a8.c | 128 ++- 1 files changed, 60 insertions(+), 68 deletions(-) diff

[Openocd-development] [PATCH] stm32: add ID for medium density device Rev Z

2011-02-17 Thread Luca Ellero
stm32-discovery evaluation board (STM32F100RBTB6): reading device id register (0xE0042000) returns 0x10010420 Signed-off-by: Luca Ellero lro...@gmail.com --- tcl/target/stm32.cfg |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tcl/target/stm32.cfg b/tcl/target

Re: [Openocd-development] [PATCH 6/6] cortex_a9: move dap_ap_select to arm_avi_v5

2011-02-14 Thread luca ellero
... :-) Best regards, Tomek [1] http://stm32primer2swd.sf.net/ [2] http://libswd.sf.net That's good, OpenOCD for now is still very JTAGcentric. So SW develop is always welcome. regards Luca Ellero ___ Openocd-development mailing list Openocd

[Openocd-development] [PATCH] arm_adi_v5: add/move apsel member in struct adiv5_dap

2011-02-14 Thread Luca Ellero
adiv5_dap) to ap_current - adds apsel member this strange choice is made trying to keep coherence in dap apsel command and to keep compatibility with other code (for example cortex_a8). Signed-off-by: Luca Ellero lro...@gmail.com --- Take this patch only as a proposal, I don't want to make changes

[Openocd-development] [PATCH 2/6] cortex_a9: check target halted on APB read/write memory

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index c13d41c..3ad7a7d 100644 --- a/src/target/cortex_a9.c +++ b/src/target/cortex_a9.c

[Openocd-development] [PATCH 3/6] cortex_a9: check if MMU is enabled on APB read/write memory

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index 3ad7a7d..422da3f 100644 --- a/src/target/cortex_a9.c +++ b/src/target

[Openocd-development] [PATCH 1/6] cortex_a9: trivial fixes

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/target/cortex_a9.c b/src/target/cortex_a9.c index e411335..c13d41c 100644 --- a/src/target/cortex_a9.c +++ b/src/target/cortex_a9.c

[Openocd-development] [PATCH 4/6] arm_adi_v5: add transfer functions prototypes with selection of ap

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/arm_adi_v5.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h index f64f7c8..2aefd60 100644 --- a/src/target/arm_adi_v5.h +++ b/src

[Openocd-development] [PATCH 5/6] arm_adi_v5: add wrapping transfer functions with selection of ap

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/arm_adi_v5.c | 74 +++ src/target/arm_adi_v5.h |2 +- 2 files changed, 75 insertions(+), 1 deletions(-) diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 2695c46

[Openocd-development] [PATCH 6/6] cortex_a9: move dap_ap_select to arm_avi_v5

2011-02-12 Thread Luca Ellero
* functions instead of mem_ap_*) make the code more clear and more easier to maintain. In the future it should be made static to avoid its use outside arm_adi_v5 One further benefit is the various goto has been removed as well Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c

Re: [Openocd-development] [PATCH] cortex_a9: implement read/write memory through APB-AP

2011-02-11 Thread luca ellero
one to take this decision ;-) cheers luca ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] [PATCH] cortex_a9: implement read/write memory through APB-AP

2011-02-10 Thread luca ellero
2011/2/10 Øyvind Harboe oyvind.har...@zylin.com On Thu, Feb 10, 2011 at 8:57 AM, luca ellero lro...@gmail.com wrote: Sorry for the double posting. I made some mess :-( Please discard 1st posting, 2nd is the right one. Apologies for any inconvenience This is the right one? https

Re: [Openocd-development] [PATCH] cortex_a9: fix dap_ap_select() usage

2011-02-10 Thread luca ellero
but sometimes necessary ;-) in any case we can fix them in the future. regards Luca Ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

[Openocd-development] [PATCH] cortex_a9: implement read/write memory through APB-AP

2011-02-09 Thread Luca Ellero
NOTE: at the moment APB memory accesses are very slow, compared to AHB accesses. Work has to be done to get it faster (for example, word accesses instead of byte) Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c | 159

[Openocd-development] [PATCH] cortex_a9: implement read/write memory through APB-AP

2011-02-09 Thread Luca Ellero
: at the moment APB memory accesses are very slow, compared to AHB accesses. Work has to be done to get it faster (for example LDR/STR instead od LDRB/STRB) Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a9.c | 160 ++- 1 files

Re: [Openocd-development] [PATCH] cortex_a9: implement read/write memory through APB-AP

2011-02-09 Thread luca ellero
Sorry for the double posting. I made some mess :-( Please discard 1st posting, 2nd is the right one. Apologies for any inconvenience regards Luca Ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de

Re: [Openocd-development] [PATCH] cortex_a9: fix dap_ap_select() usage

2011-02-07 Thread luca ellero
On 07/02/2011 3.54, Aaron Carroll wrote: On 04/02/11 17:31, Mathias K. wrote: Hello, On 04.02.2011 01:38, Aaron Carroll wrote: At a high level, I think it makes sense for functions to be explicit about selecting an AP... I don't see any advantage to a default. I don't know if the AP always

[Openocd-development] [PATCH] cortex_a8/a9: fix some comments

2011-02-07 Thread Luca Ellero
Signed-off-by: Luca Ellero lro...@gmail.com --- src/target/cortex_a8.c |8 src/target/cortex_a9.c |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 3c80923..f50b149 100644 --- a/src/target/cortex_a8.c

Re: [Openocd-development] [PATCH 0/6] OMAP4430/Cortex-A9 Support

2011-01-31 Thread luca ellero
Great, keep us posted. Actually, this will definitely be generally useful, because there are many other resources that can't be accessed from the L3 interconnect: the MPCore private regions (per-core timers and WDT), snoop-control unit, global interrupt controller, local PRCM, and of course ROM.

Re: [Openocd-development] [PATCH 0/6] OMAP4430/Cortex-A9 Support

2011-01-28 Thread luca ellero
Hi Aaron, On 28/01/2011 5.45, Aaron Carroll wrote: The reason that you can't read the ROM through the debugger is because it reads memory through the AHB-AP, which sits on the L3 interconnect. However, the ROM is actually on the A9's internal L2 interconnect. On the L3, 0x40028000 doesn't map

Re: [Openocd-development] [PATCH 0/6] OMAP4430/Cortex-A9 Support

2011-01-27 Thread luca ellero
Hi Aaron, On 27/01/2011 6.53, Aaron Carroll wrote: Hi Luca, On 26 January 2011 00:13, luca ellerolro...@gmail.com wrote: With your patch it seems to work. Anyway after issuing halt instruction, I always get the following message: target state: halted target halted in Thumb state due to

Re: [Openocd-development] [PATCH 0/6] OMAP4430/Cortex-A9 Support

2011-01-25 Thread luca ellero
complicated). However I'm still investigating... keep in touch. Thanks regards Luca Ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] BeagleBoard with Cortex A9

2010-12-23 Thread luca ellero
? - OMAP 4430 has two cores. Have someone experience on debugging multicores (how to halt both cores? what happens when we stop only one core? on the first phases of boot is sufficient to halt only the 1st MPU?) Thank you in advance Best regards Luca Ellero

Re: [Openocd-development] BeagleBoard with Cortex A9

2010-12-23 Thread luca ellero
to the link you point me. regards luca ellero ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development