Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




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 ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists