Debug u-boot using Codewarrior

View: New views
2 Messages — Rating Filter:   Alert me  

Debug u-boot using Codewarrior

by arun c :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Regards,
Arun C
---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.


Re: Debug u-boot using Codewarrior

by Allon Stern :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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
---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.