Debugging

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

Debugging

187 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mohsin on Mon Nov 15 04:25:52 MST 2010
Hi All,
 
             I am using LPC1114F  for my project. I am developing the code using command line options. As  I am new to LPCXpresso I want to know how could I debug the code when I do a  build using command line.
 
In MPLAB and VisualDSP++ the IDE allows me to import/load the image  file so that I can debug it i.e. put breakpoints, single step etc.
Can anyone please let me know how we could do similar thing using LPCXpresso v3.5.6.
   Thanks,
   Mohsin
0 Kudos
2 Replies

175 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mohsin on Mon Nov 15 12:14:59 MST 2010
Thanks very much for such a clear procedure.
Regards,
Mohsin
0 Kudos

175 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 15 11:39:19 MST 2010
You will find it *much* easier to use the IDE.

If you are using Makefiles, you can create a Makefile project, so you can use the IDE, but create and edit your own makefiles. To do this:

[LIST]
[*]File->New->Project...
[*]In the dialog, expand C/C++ and choose "C Project"
[*]In the next dialog, gice the project a name, and then expand Makefile project and choose "Empty Project"
[*]Press Finish
[/LIST]
You will now have a project, where you are in control of everything, including the makefiles.

However, if you really really want to do it the 'hard way':

[LIST]
[*]Open the preferences Window->Preferences
[*]Expand Run/Debug and select Launching, uncheck "Build (if required) before Launching"
[*]Press OK
[*]create a Makefile project, as described above above.
[*]Right-click on the project and select Properties
[*]Expand C/C++ Build and select MCU Settings
[*]Under "Target" select your MCU
[*]Right click on the project and select Launch Configurations->Open Current Launch Configuration
[*]In the Dialog, highlight C/C++ MCU Application
[*]Press the "New launch configuration" button (first button in the mini-toolbar at the top of the dialog)
[*]On Main tab, press the Browse button to find your executable (axf file)
[*]Now press Debug. A debug session will be started.
[/LIST]
All of this is done for you, if you let LPCXpresso manage your project...
0 Kudos