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

Using TaskCPP.h, Getting Error

Posted by groger57 on June 23, 2016

Hello:

I have written an application previously in ansi C that is using FreeRTOS and works 100%. Now, I have converted the code to C++ and ready to try using the C++ wrappers and add in the calls to FreeRTOS. At this point it's tasks and queues. I'm using IAR EWARM 7.5.

Just including the TaskCPP file has caused a silicon slip in the compiler. The 2 errors I am getting are : Error[Pe265]: member "Task::handle" (declared at line 169) is inaccessible C:UsersgrrDocumentsIAR Embedded WorkbenchFreeRTOSV8.2.0FreeRTOSSourceincludeTaskCPP.h 223 and Error[Pe245]: a nonstatic member reference must be relative to a specific object C:UsersgrrDocumentsIAR Embedded WorkbenchFreeRTOSV8.2.0FreeRTOSSourceincludeTaskCPP.h 223

As you can see, both are at the same line. What is causing this error, and better yet, are there any basic examples to be found on using these wrappers?

Thank you, Gary


Using TaskCPP.h, Getting Error

Posted by rtel on June 23, 2016

Where did you get the wrapper files from?


Using TaskCPP.h, Getting Error

Posted by groger57 on June 23, 2016

Here: https://github.com/richard-damon/FreeRTOScpp

Is it bad?


Using TaskCPP.h, Getting Error

Posted by rtel on June 23, 2016

Is it bad?

No - not at all - quite the opposite - I've not used it myself but heard good things about it. It's just that there are a few wrappers around and I was wondering which you were using to see if it was something that can be supported on this forum. Richard Damon is a regular poster here so hopefully he will see your question and be able to provide some advise.


Using TaskCPP.h, Getting Error

Posted by groger57 on June 23, 2016

Ok, thanks. For some reason, I was under the impression that Richard Damon worked (or contributed time to) for FreeRTOS. Yes, I hope he, or someone that may have used them before can provide some insight.

Maybe it would have been better to keep ansi-C and FreeRTOS in it's "home state", and lib the C++ stuff.


Using TaskCPP.h, Getting Error

Posted by richard_damon on June 24, 2016

That's my wrapper, I don't "work" for FreeRTOS but been around a while helping where I can. I will need to look at that error on my machine with the code. Sounds a bit like an error that I remember working on, maybe I got a commit at the wrong time or missed a commit.

Looking at the code on GitHub, a quick fix would be to convert the private on line 168 to protected (and best to add a private again after line 169.


Using TaskCPP.h, Getting Error

Posted by richard_damon on June 25, 2016

I've committed a small patch which looks to fix these issues. I have a bigger update in the work, but haven't tested it enough.


Using TaskCPP.h, Getting Error

Posted by groger57 on June 29, 2016

Ok, thanks for the information and update.


[ 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