Quality RTOS & Embedded Software

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


Loading

error compilation with dspic33F

Posted by john264 on August 30, 2010
when i compile my project i have this warning:

warning: passing argument 1 of 'xTaskGenericCreate' from incompatible pointer type

does someone has got already this warning. i think it is a bug with compiler C30 on
MPLAB. Does someone can help me?
Best regards

RE: error compilation with dspic33F

Posted by Dave on August 30, 2010
The first parameter is a function pointer, what is the prototype of the function being pointed to?

RE: error compilation with dspic33F

Posted by Richard Damon on August 30, 2010
The task function passed as the first parameter MUST be defined as "void fun(void *arg)" or you will get an error/warning.If the task wants the argument to be of a different type, it should change it inside the function. Using a different type of pointer may "work" as all pointers "look" the same on most machines now a days (including the dspic series), but it is a violation of the C standard as it is NOT true for all machines. in particular, machines which use "word" addressing instead of byte addressing.

RE: error compilation with dspic33F

Posted by john264 on August 30, 2010
Thanks a lot for your answer. i have found the pb and i have done mistake when i pass argument...
best regards


[ 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