HowTo: Debug with a Microchip .LST file

Microchip MPLAB .LST Object files are generated as the final output from the Microchip MPLAB software tool. This file is language independent and can be debugged directly in VBB virtual applications.

For example, lets create a new project to simulate and debug one of the included examples

 <VBBDIR>/EG/PIC/12F629-IP/Blink/Blink.LST

This application simply blinks the PORTIO Leds and you can run this directly from the examples but lets do it manually as if you had your own Blink.LST file from your own project.

1. Create a New Project and Place a 12F269 on the Breadboard and attach a LED8 array to the pins and save the project.

Note: You can continue without saving first but it is recommend to save soon after creating the new project as things seem to work better that way.

2. Right Click the New Project Solution and select the Add MPASM Source Project menu.

3. Now right click the Source code project and select the Add Existing Debug (.LST) File menu

This will popup a file dialog which you can use to search for the .LST file. This examples is using the BLINK.LST as described earlier.

4. Next link the source code project to the PICMICRO by first selecting the PICMICRO component and then selected the source project from the Project property list in the Properties box.

5.Now you are ready to run the project. Before doing that drag the source project into the lower view panel

5. Save your project!

6. Now ready to run. Click the run button

7.Run and debug your application.

Notes