Debugging external AXF

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging external AXF

2,018 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Tue Sep 13 02:55:16 MST 2011
Hi guys,

I'm trying to debug a source code within the LPCXpresso IDE, originally, the code is written in Keil uvision4. Keil outputs an .axf file, which should be some ELF format. As I do not have a keil compatible debugger, I would like to use the LPCXpresso for debugging the Keil code by importing the AXF into the LPCXpresso IDE.

So I try to importing it into my LPCXpresso workspace, by choosing:
Import --> C/C++ Executable --> AXF file, ELF parser --> Create launch configuration: C/C++ MCU application --> Debug.

However, when hitting "Debug", nothing happens. In my workspace, I can see the project is added, and I can even view the associated source code files. But the "Debug" icon is greyed out...

Does anyone know what I'm doing wrong?? I guess this should be possible like this, right?

Kind regards,
Wouter
0 Kudos
Reply
2 Replies

1,714 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ArtjomGromak on Wed Oct 05 14:54:50 MST 2011
I tried to debug the project created in IAR.
It has appeared that global variables are incorrectly displayed. What it is necessary to correct, that began to work correctly?
Thanks.
0 Kudos
Reply

1,714 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Sep 15 02:29:35 MST 2011
There may well be a simpler way to set this up, but the following ought to work...

Create a new "placeholder" project for the MCU being debugged. Make the name of this project match the filename of the image to be debugged (but without the .axf extension).

Delete the src directory created.

Within the Project Explorer view, create a "Debug" directory within the project and drag'n'drop your axf image from Windows Explorer into the "Debug" directory.

Right click on the project and select....

[FONT=Courier New][SIZE=2]Launch Configurations -> Create Launch Configurations.

[/SIZE][/FONT]Right click again on the project and select....

[FONT=Courier New][SIZE=2]Launch Configurations -> Open Current Launch Configuration ...
-> "Main" tab[/SIZE][/FONT][FONT=Courier New]
[/FONT][FONT=Courier New][SIZE=2]
[/SIZE][/FONT]and in the "Build (if required) before launching" switch to "Disable auto build".

You should now be able to simply launch a debug session for your "placeholder" project.

Regards,
CodeRedSupport
[FONT=Courier New]
[/FONT]
0 Kudos
Reply