FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2010 Threads] error compilation with dspic33FPosted 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 dspic33FPosted 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 dspic33FPosted 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 dspic33FPosted 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
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|