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 --- src/jtag/core.c |

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 reads

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 an

Re: [Openocd-development] cortex_a :smp feature

2011-04-20 Thread luca ellero
oment 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

[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 --- src/target/cortex_a.c | 90 +--- 1

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

2011-04-13 Thread Luca Ellero
Signed-off-by: Luca Ellero --- 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 index 000

[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 --- 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 index b777

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

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 mu

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 - resum

Re: [Openocd-development] Pandaboard testing

2011-04-02 Thread luca ellero
2011/4/2 Tomek CEDRO > On Sat, Apr 2, 2011 at 7:04 AM, Øyvind Harboe > wrote: > > I've pushed a fix for the ti_pandaboard.cfg file. > > Anyone out there who can give it a try? > > I should have one in some time - I will let you know when I get it > (~month?) :-) > > Best regards, > Tomek > > --

Re: [Openocd-development] Remove dbgbase patchup code

2011-04-01 Thread luca ellero
On 01/04/2011 10.01, Øyvind Harboe wrote: Yes. I think the code you are referring to is this: See attached patch for the code I want to delete now. ooh, this is OK! I agree to remove this code. Sorry for the misunderstanding. cheers Luca ___ Openoc

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 ellero 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 something her

Re: [Openocd-development] Remove dbgbase patchup code

2011-03-31 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] 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 maste

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 --- src/target/cortex_a8.c | 128 ++- 1 files changed, 60 insertions(+), 68 deletions(-) diff --git a/src

[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 --- tcl/target/stm32.cfg |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tcl/target/stm32.cfg b/tcl/target/stm32.cfg index

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

2011-02-14 Thread Luca Ellero
ber apsel (in struct 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 --- Take this patch only as a proposal, I d

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

2011-02-14 Thread luca ellero
On 12/02/2011 17.22, Tomek CEDRO wrote: Hello Luca! On Sat, Feb 12, 2011 at 12:54 PM, Luca Ellero wrote: dap_ap_select was used in the code at various points, but that can lead to confusion, without any knowledge of what AP is really selected at some points. (...) This is also somehow

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

2011-02-12 Thread Luca Ellero
adi_v5.c (using mem_ap_sel* 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 --- 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 --- 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..4a3cfbb 100644 --- a

[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 --- 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/target/arm_adi_v5

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

2011-02-12 Thread Luca Ellero
Signed-off-by: Luca Ellero --- 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 @@ -1498,8 +1498,9

[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 --- 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/cortex_a9.c @@ -1521,6

[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 --- 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 @@ -1522,6 +1522,12

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

2011-02-11 Thread luca ellero
On 11/02/2011 1.26, Aaron Carroll wrote: Hi Luca, On 11 February 2011 02:00, du...@dummy.com wrote: On 10/02/2011 11.10, Aaron Carroll wrote: On 10 February 2011 06:19, Luca Ellerowrote: This patch adds read/write capability to memory addresses not accessible through AHB-AP (for

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

2011-02-10 Thread luca ellero
oking" 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

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

2011-02-10 Thread luca ellero
2011/2/10 Øyvind Harboe > On Thu, Feb 10, 2011 at 8:57 AM, luca ellero 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? > > >

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

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

2011-02-09 Thread Luca Ellero
y accesses are through APB 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 LDR/STR instead od LDRB/STRB) Signed-off-by: Luca Ellero --- src/target/cortex_a9.c | 160 ++

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

2011-02-09 Thread Luca Ellero
emory accesses are throuhg APB 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 --- src/target/cortex_a9.c | 159

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

2011-02-07 Thread Luca Ellero
Signed-off-by: Luca Ellero --- 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 +++ b/src

[Openocd-development] [PATCH] omap4430: Add JRC TAPID for PandaBoard REV EA1 (PEAP platforms)

2011-02-07 Thread Luca Ellero
PandaBoard REV EA1 (Panda Early Adopter Program) has a different ID. This patch add alternate REV EA1 TAP id to configuration file Signed-off-by: Luca Ellero --- tcl/target/omap4430.cfg | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tcl/target/omap4430

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

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. A

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 t

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 ellero 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 deb

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

2011-01-25 Thread luca ellero
0xC0C). At the moment I'm not able to understand very well what this means (clocking in OMAP4430 is quite 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
something useful ;-) I will also register 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

Re: [Openocd-development] BeagleBoard with Cortex A9

2010-12-23 Thread luca ellero
can we achieve this on Cortex-A9? - 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 adv