Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

v8.1.2 Header file error using MPLAB X

Posted by maximus4 on December 6, 2014

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

Posted by edwards3 on December 6, 2014

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

Posted by maximus4 on December 7, 2014

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.

Attachments

FileProperties.pdf (88957 bytes)

v8.1.2 Header file error using MPLAB X

Posted by rtel on December 7, 2014

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.

Attachments

FreeRTOS.h (24707 bytes)

v8.1.2 Header file error using MPLAB X

Posted by maximus4 on December 7, 2014

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

Posted by rtel on December 7, 2014

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

Posted by maximus4 on December 7, 2014

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

Posted by blavo1 on December 8, 2014

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

Attachments

alternate (2205 bytes)


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner