Now I get a no rule to make portmacro.o error

roujesky wrote on Friday, December 11, 2015:

I have no Idea what I did, but now I get

  • No rule to make target ‘build/USB-II_STARTER_KIT/debug/_ext/332309696/portmacro.o’, needed by ‘dist/USB-II_STARTER_KIT/debug/RTOSDemo.X.debug.elf’
    I am using MPLabx and a PIC32MX795.
    Please help me out of my self induced idiocracy.


rtel wrote on Saturday, December 12, 2015:

The compiler is telling you it can’t find portmacro.c in order to create portmacro.o. However, portmacro is a header file (.h) not a c file (.c). I would recommend starting your project with a known working project, such as the one in the FreeRTOS download, that has the correct source files and compiler settings pre-configured.

roujesky wrote on Wednesday, December 16, 2015:

weird, I shut dow my computer (laptop), took it home and recompiled and it has worked fine since. Not a FreeRTOS issue, just a bizarre MPLabX issue…
Sorry for the trouble and Thanks!