List Files – XC8

If necessary enable the "Generate the ASM Listing File" option in project settings. The file lst and map files are in the "dist/default/debug directory" or "dist/default/production/" directory.

Read More

Configuration of projects

Places where your project may be configured in MPLAB X Files or directories included in compiler preprocessing Right click project > Properties > Select the configuration you are using for your project > XC16 (Global Options) > xc16-gcc > Option categories: Preprocessing and message > C include dirs This is where the basic device config […]

Read More

.MPLAB X Things to know

  Watches Window There's a button on the right of it that allows different column types to be shown so you can see multiple data types at once. If you've got a colum selected as the sort order it won't allow you to drag the order of variables around. If you change the type of […]

Read More

.Changes From MPLAB

Combining Hex Files For Bootloader Projects etc In MPLAB you could export a specific memory areas only hex file from a bootloader project and then use this: Menu > Configure > Settings > Program Loading > 'Clear program memory uploading a program' to import it into the main project so the hex files became combined.  You […]

Read More

Watch

Setting Default Watch Value Format Click the '$' button at the left of the watch window.  

Read More

Include

Both of these are fine: #include "display_files/output/display_files_c.h" #include "display_files\output\display_files_c.h"    

Read More

MPLAB X Configuration

These are things we change from the default setup to make MPLABX behave the way we like… Turning Off Expand Tabs To Spaces setting Menu > Tools > Options > Editor > Formatting Language: All LanguagesCategory: Tabs And IndentsExpand tabs to spaces: OFFNumber of spaces per indent: 4Press apply and now select languages C and C++ […]

Read More

Configuration Bits, SFR’s, etc

  Menu > Window > PIC Memory Views > Configuration Bits Getting available config settings for a device Get the config fields from the "C:\Program Files (x86)\Microchip\MPASM Suite" .inc file for the device

Read More