Re: Debug u-boot using Codewarrior

Allon Stern <[email protected]> Mon, 27 Oct 2008 10:16:11 -0400
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
On Oct 25, 2008, at 5:10 AM, arun c wrote:

> Hi all,
>
> I am a newbie to this coldfire world please bear with me.
>
> I have a MCF5484LITEKIT and I downloaded the latest linux BSP for it.
>
> To get in depth detail about u-boot I wish to do single stepping(aka
> source level debug)
> using codewarrior IDE ( I got a P&E BDM debugger through parallel port
> along with the kit)
>
> Can anybody tell me how to do it?

I can't do source level debug, but I can do assembly level debug  
using CW.

I set up a simple UART test program from the stationary they have,  
targeting my CPU (M5282) - however, since I have a custom board, I  
had to modify the configuration file; you will probably use the  
default for your target.

Then I hit the Play button with the bug on it (debug) - it loads the  
code, but doesn't run it.
You can then either load u-boot into memory using the Load/Save  
Memory menu item under Debug->Coldfire.
Then, under the View menu, select "Registers".
In the Registers window, open the general purpose registers, double  
click on the value next to the PC, and set it to point to the entry  
for your code.

There may be an easier way to do this; and if anyone has a way to do  
source level debugging with CW using linux-generated executables (ELF  
and/or FLAT), I'd appreciate it !

I have experience integrating a u-boot port with the coldfire; if you  
have any problems/questions, go ahead and ask :)
-
allon
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.