I'm using a AM3517-based board and have built a kernel that is downloaded
and started via U-Boot on target.
Have grep-ed Linux System.map for the address of start_kernel (0xc0008668).

I start up and do:
- In openocd: amdm37x_dbginit am3517.cpu
- In openocd: reset halt
- In openocd set breakpoint for start_kernel: bp 0xc0008668 1 hw
- In openocd: resume
U-boot loads and starts kernel and breaks at start_kernel
- Start a DDD with myc cross-gdb
- In DDD/GDB: file vmlinux
- In DDD/GDB: target remote localhost:3333

Now DDD shows the execution at start_kernel.

When trying to step in DDD, it seems to jump around a bit and not following
the code nicely.
Maybe some optimization issues?

And then, after a few steps openocd reports:
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f604f

Stepping is now no longer possible and when I do "Interrupt" in DDD openocd
reports:
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6003
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6043
Error: Timeout waiting for read dcc
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6043
Error: Timeout waiting for read dcc
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6043
Error: Timeout waiting for read dcc
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6043
Error: Timeout waiting for read dcc
Error: DSCR_DTR_RX_FULL, dscr 0x4b0f6043
Error: Timeout waiting for read dcc

The openocd revision is a few days old:
0eed61b7c4cb31338562db426cea0d1a999e0d9f

The configuration file for the board is a slightly modified am3517evm.cfg
with these changes
13c13,14
< set CHIPTYPE "am35x"
---
>
> set CHIPTYPE "am3517"

The target/amdm37x.cfg is modified with:
38,43c38
<
<       am3517 {
<          # Primary TAP: ICEpick-C (JTAG route controller) and boundary
scan
<          set _JRC_TAPID 0x0b86802f
<       }
<      default {
---
>       default {
185c180
<    reset-assert-post "amdm37x_dbginit $_TARGETNAME; adapter_khz 666"
---
>    reset-assert-post "amdm37x_dbginit $_TARGETNAME; adapter_khz 1000"


So there is two issues:
1. Why is the debug stepping "hopping"?
2. Why does the debug stop with the Error: DSCR_DTR_RX_FULL, dscr 0x4b0f604f
?

Any ideas?

/Anders



2011/3/13 Øyvind Harboe <oyvind.har...@zylin.com>

> Which version are you using?
>
> Do you have config files, logs and minimal steps to reproduce?
>
> I've got an AM3517 at the office.
>
>
>
> --
> Øyvind Harboe
>
> Can Zylin Consulting help on your project?
>
> US toll free 1-866-980-3434 / International +47 51 87 40 27
>
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 ARM11 XScale Cortex
> JTAG debugger and flash programmer
>
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to