Debugging using CW for Microcontroller 10.2

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

Debugging using CW for Microcontroller 10.2

626 Views
Mohsin455
Contributor IV

Hi All,

I am using K60N512 for my project. I am developing the code using command line options. As I am new to to CW and I am using CW for Microcontroller 10.2. 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 CW for Microcontroller 10.2 ?


Thanks,
Mohsin

Labels (1)
0 Kudos
1 Reply

343 Views
Teo
NXP Employee
NXP Employee

You can create a CW project using executable importer and debug from there.

 

i.e.  In the projects view select "Import->CodeWarrior->MCU Executable Importer". On next page name the project to debug the executable, then browse for the executable to debug. You will be asked for the CPU/board used. Select one that you are targetting.

 

After project has been created you can debug it as all other usual projects.

 

Teo

 

 

0 Kudos