Hex Files are in: "ProjectName\dist\default\production\"
Category: MPLAB X
Assembler(1)
Issues(6)
MCC(19)
Projects(4)
Setting Up On A New Machine(2)
MPLAB X Configuration
These are things we change from the default setup to make MPLABX behave the way we like… Turning Off right margin red line Menu > Tools > Options > Editor > Formatting Language: All Languages Right margin: 0 Turning Off Expand Tabs To Spaces setting Menu > Tools > Options > Editor > Formatting Language: […]
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
Memory View
Window > Embedded Memory 4 views, once 1 is open select the memory type to view
Select Compiler
Right Click Project > Properties
Select Device
Right Click Project > Properties
Debug / Release Modes
MPLAB allows you to use this macro: __DEBUG to detect if a debug or release mode is selected. It is not built in into MPLAB X and will be automatically set when compiling for a debugger. To forcibly enable it you can also just add this to a global header file when debugging: #ifndef __DEBUG […]
Debugger / Programmer
Right click the project > Properties Window > Project Environment Debugger is only connected once you start a debug session
Defines
Microchip define examples #ifdef __DEBUG //Debug mode selected in MPLAB #if defined(__18CXX) #elif defined(__C30__) #elif defined (__PIC32MX__) #else #endif #ifndef __DEBUG #if (defined(__18CXX) & !defined(PIC18F87J50_PIM)) #endif #if defined(PIC18F87J50_PIM) || defined(PIC18F46J50_PIM) #if defined(__PIC24FJ256GB110__) #if defined(__18F46J50) Is This Microcontoller In Use #if defined( __PIC24FJ256GB106__ ) #if defined(__PIC24FJ256GB110__) || defined(__PIC24FJ256GB106__) || defined(__PIC24FJ256GA110__) || defined(__PIC24FJ256GB210__) Handy UART Setup Example #define […]