tlafleur wrote on Saturday, August 13, 2011:
Microchip is moving its IDE to a NetBean IDE with MPLAB-X. Support will be for Windows, Linux and Mac OSX
I testing the new IDE for a class that I am teaching, by ported the FreeRTOS 7.01 code to the new IDE under Mac OSX.
Most of the issues were IDE related as the IDE is in Beta at this point, But their was one issues that puzzle me for a bit of time. It was related to Include paths in the IDE.
I was getting error from the complier that It could not find: portmacro.h.
It was in all the Include paths that I tried, I was blaming the IDE for NOT doing Inclusion correctly.
The “problem” is that the new IDE support using a forward slash in ALL path name under Windows, Linux and Mac OSX, but will also support a back slash under Windows. One’s eyes, can’t tell one from the other when look at a path error messages…
The Portable.h file for the PIC devices, use a back slash as it should for the older IDE under Windows…. fixing this, provide a clean compile.
testing was done with Beta IDE 7.01, C30 ver 3.30b on MAC OSX 10.7
same issue will be there for PIC18 and PIC 32
I change the preprocessor macro in the compiler to: MPLABX_DSPIC_PORT
OLD…
#ifdef MPLAB_PIC24_PORT
#include “…\…\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h”
#endif
#ifdef MPLAB_DSPIC_PORT
#include “…\…\Source\portable\MPLAB\PIC24_dsPIC\portmacro.h”
#endif
#ifdef MPLAB_PIC18F_PORT
#include “…\…\Source\portable\MPLAB\PIC18F\portmacro.h”
#endif
#ifdef MPLAB_PIC32MX_PORT
#include “…\…\Source\portable\MPLAB\PIC32MX\portmacro.h”
#endif
New
#ifdef MPLABX_PIC24_PORT
#include “…/…/Source/portable/MPLAB/PIC24_dsPIC/portmacro.h”
#endif
#ifdef MPLABX_DSPIC_PORT
#include “…/…/Source/portable/MPLAB/PIC24_dsPIC/portmacro.h”
#endif
#ifdef MPLABX_PIC18F_PORT
#include “…/…/Source/portable/MPLAB/PIC18F/portmacro.h”
#endif
#ifdef MPLABX_PIC32MX_PORT
#include “…/…/Source/portable/MPLAB/PIC32MX/portmacro.h”
#endif