Pandaboard: Debug x-loader using JTAG and Code Composer Studio v5

122 views
Skip to first unread message

egost

unread,
Feb 9, 2011, 8:59:46 AM2/9/11
to x-loader
Hi all,
i'm trying to connect to OMAP's CortexA9_0 and step over all
instructions of x-loader until the point, where the u-boot is loaded.

I'm using Code Composer Studio 5.01 and Spectrum Digital XDC560v2 STM
- JTAG Adapter.
The target-configuration is the single one i found in CCSv5:
OMAP4430(no STM, ETB only)

if I try to launch the target-configuration i get an error:
Error connecting to the target:
Unknown error (Error -5008) @ -5008 (0xFFFFEC70)
Unable to connect to the target

If i remove the SD-CARD then i can connect to the CortextA9-cores but
x-loader is not loaded :-(

Questions:
- Does anybody use CCSv5 and XDC560 to debug x-loader?
- Do I need any GEL-scripts to initialize the debug-session ?
- How can i get the x-loader-binary directly into the memory without
SDcard?

thanks in advance

Eugen

Anand Gadiyar

unread,
Feb 9, 2011, 9:13:37 AM2/9/11
to x-lo...@googlegroups.com
On Wed, Feb 9, 2011 at 7:29 PM, egost <wagner...@googlemail.com> wrote:
> Hi all,
> i'm trying to connect to OMAP's CortexA9_0 and step over all
> instructions of x-loader until the point, where the u-boot is loaded.
>
> I'm using Code Composer Studio 5.01 and Spectrum Digital XDC560v2 STM
> - JTAG Adapter.
> The target-configuration is the single one i found in CCSv5:
> OMAP4430(no STM, ETB only)
>
> if I try to launch the target-configuration i get an error:
> Error connecting to the target:
> Unknown error (Error -5008) @ -5008 (0xFFFFEC70)
> Unable to connect to the target
>
> If i remove the SD-CARD then i can connect to the CortextA9-cores but
> x-loader is not loaded :-(
>

There was a bug I tracked down recently, and Aaron posted a patch.
The fix is this patch:
<http://gitorious.org/x-loader/x-loader/commit/9dc4f4fbc02ca22f519a8f0a8ae3a837af761f56>

So if you try the latest x-loader, you should be able to connect.

Alternatively, you could just use the "mm" command in u-boot
to change the register value.

mm 0x4a004140
(it should read as 0x326. Change this to 0x226).

Then you should be able to connect. Let me know if either of these
two methods don't work for you.

> - How can i get the x-loader-binary directly into the memory without
> SDcard?

If you connect with CCS, you can just load x-load (not x-load.bin),
and run it. That should just work.

I'm not very familiar with CCS - so I don't have an answer for the
other two questions.

Hope this helps.

- Anand

egost

unread,
Feb 9, 2011, 9:43:39 AM2/9/11
to x-loader
Hi Anand,
thank you for answering so quickly

> There was a bug I tracked down recently, and Aaron posted a patch.
> The fix is this patch:
> <http://gitorious.org/x-loader/x-loader/commit/9dc4f4fbc02ca22f519a8f0...>

I read about the bug with M6-clock being disabled, but initially,
before x-loader is started, the clocks for jtag should be enabled.
I would like to step over x-loader self, which is loaded before u-
boot.

> I'm not very familiar with CCS - so I don't have an answer for the
> other two questions.

I'm also not familiar with CCS, just trying it out.
Reply all
Reply to author
Forward
0 new messages