v8.1.2 Header file error using MPLAB X

I just started working with the example programs for a PIC32MX processor using MPLAB X. The program distribution contains FreeRTOS v7.5.3 and the first example I tried compiles and runs fine. If I try to migrate to FreeRTOS v8.1.2, however, I’m getting compile errors. One of the things flagged is that FreeRTOSConfig.h can’t be located. I found this was caused by a difference in the FreeRTOS.h file. In the old version, there was a #include “FreeRTOSConfig.h” while in the new version this was changed to #include “../FreeRTOSConfig.h”. MPLAB X is very intolerant of .h files that contain an include with the “../filename.h” format. Microchip suggests you never do this and use the MPLAB X include paths to locate the .h files. I modified a local copy of FreeRTOS.h back to #include “FreeRTOSConfig.h” and it worked …… at least for that error.

v8.1.2 Header file error using MPLAB X

The program distribution contains FreeRTOS v7.5.3
Which program distribution?
in the new version this was changed to #include “../FreeRTOSConfig.h”
No it hasn’t. I don’t think it has ever been that, and it is not a file that you are supposed to edit. You can see the release file here https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/include/FreeRTOS.h

v8.1.2 Header file error using MPLAB X

Well, that’s disturbing news! I downloaded a self extracting zip file for FreeRTOSv8.1.2 via the FreeRTOS web site. Did I get an incorrect file somehow? I attached the file properties screen shot. The v7.5.3 files I was referring to were included with the zip file for examples that go with the tutorial book for PIC32.

v8.1.2 Header file error using MPLAB X

I just downloaded the same self extracting .exe file. Attached in the FreeRTOS.h file that was extracted – as you will see, there is no “../” on the from of FreeRTOSConfig.h. Regards.

v8.1.2 Header file error using MPLAB X

Just to make sure there were no inadvertent changes on my part, I downloaded the v8.1.2 zip file again and re-extracted everything in another directory. Here’s a copy of the FreeRTOS.h file I got. And, No, I’m not in the habit of modifying library files. I will do so if I think there’s a problem, and then I’m careful to make a copy and not to alter anything in the library directories.

v8.1.2 Header file error using MPLAB X

Your file and my file are 100% identical, so I obviously don’t understand the point you are making. On line 94 you will find
#include "FreeRTOSConfig.h"
not
#include "../FreeRTOSConfig.h"
as you seem to be saying in your first post. Regards.

v8.1.2 Header file error using MPLAB X

I see that …. and I don’t understand how or why I have an altered file …. since it was nothing I did directly. I’ll just reinstall FreeRTOS and chalk it up to some Windows or MPLAB anomaly. Thanks for looking and sorry for the confusion. Maybe you should delete this thread, as I agree there’s not any useful information.

v8.1.2 Header file error using MPLAB X

Did you add the free Rios path to asm properties in your project? I had a similar issue as well. Sent from my T-Mobile 4G LTE Device ——– Original message ——– From: MDay maximus4@users.sf.net Date:12/06/2014 3:05 PM (GMT-05:00) To: “[freertos:discussion]” 382005@discussion.freertos.p.re.sf.net Cc: Subject: [freertos:discussion] v8.1.2 Header file error using MPLAB X I just started working with the example programs for a PIC32MX processor using MPLAB X. The program distribution contains FreeRTOS v7.5.3 and the first example I tried compiles and runs fine. If I try to migrate to FreeRTOS v8.1.2, however, I’m getting compile errors. One of the things flagged is that FreeRTOSConfig.h can’t be located. I found this was caused by a difference in the FreeRTOS.h file. In the old version, there was a #include “FreeRTOSConfig.h” while in the new version this was changed to #include “../FreeRTOSConfig.h”. MPLAB X is very intolerant of .h files that contain an include with the “../filename.h” format. Microchip suggests you never do this and use the MPLAB X include paths to locate the .h files. I modified a local copy of FreeRTOS.h back to #include “FreeRTOSConfig.h” and it worked …… at least for that error.
v8.1.2 Header file error using MPLAB Xhttps://sourceforge.net/p/freertos/discussion/382005/thread/d370210b/?limit=25#8c29
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/https://sourceforge.net/p/freertos/discussion/382005 To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/https://sourceforge.net/auth/subscriptions