Jump to content

xTaskCreate differ... Warning


Phatline

Recommended Posts

This code: (app.c download@ http://wiki.midibox.org/lib/exe/fetch.php?media=phatline:tm_v3.zip)

void APP_Init(void){ 

xTaskCreate(TASK_SEQ, (signed portCHAR *)"SEQ", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_SEQ, NULL);}   // install sequencer task  

compile with following warnings:

Quote

make (im Verzeichnis: /home/nixgibts/c/tm_V3)
rm -f project.hex
Creating object file for app.c
app.c: In function 'APP_Init':
app.c:386:3: warning: pointer targets in passing argument 2 of 'xTaskCreate' differ in signedness [-Wpointer-sign]
In file included from app.c:11:0:
/home/triggermatrix/mios32/trunk/FreeRTOS/Source/include/task.h:360:13: note: expected 'const char * const' but argument is of type 'signed char *'

Creating object file for seq.c
....
/home/triggermatrix/mios32/trunk/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c: In function 'prvPortStartFirstTask':
/home/triggermatrix/mios32/trunk/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c:282:1: warning: stack usage computation not supported for this target [enabled by default]
...
/home/triggermatrix/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c: In function 'USBD_GetString':
/home/triggermatrix/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:845:18: warning: comparison between pointer and integer [enabled by default]
/home/triggermatrix/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c: In function 'USBD_GetLen':
/home/triggermatrix/mios32/trunk/drivers/STM32F4xx/v1.1.0/STM32_USB_Device_Library/Core/src/usbd_req.c:863:17: warning: comparison between pointer and integer [enabled by default]
...
Creating object file for freertos_heap.cpp
-------------------------------------------------------------------------------
Kompilierung erfolgreich beendet.
Application successfully built for:
Processor: STM32F407VG
Family:    STM32F4xx
Board:     MBHP_CORE_STM32F4
LCD:       universal
-------------------------------------------------------------------------------
arm-none-eabi-size project_build/project.elf
   text       data        bss        dec        hex    filename
  98646       9184      56600     164430      2824e    project_build/project.elf
20000000 D __ram_start
200100f8 B __ram_end

that task.h code - Warning by "xTaskCreate...":

#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
	BaseType_t xTaskCreate(	TaskFunction_t pxTaskCode,
							const char * const pcName,
							const uint16_t usStackDepth,
							void * const pvParameters,
							UBaseType_t uxPriority,
							TaskHandle_t * const pxCreatedTask ) PRIVILEGED_FUNCTION; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
#endif

 

do i have to fear?

Edited by Phatline
Link to comment
Share on other sites

  • 3 months later...

I have to !! LOL

 

app.c:75:3: warning: pointer targets in passing argument 2 of 'xTaskCreate' differ in signedness [-Wpointer-sign]
In file included from app.c:24:0:
i:/MIOS32/trunk/FreeRTOS/Source/include/task.h:360:13: note: expected 'const char * const' but argument is of type 'signed char *'

Marco.

Link to comment
Share on other sites

welcome to the club - i see it everyday... :pout:i did not solve the error, nor do i understand it.

all i know that when i add additional my own task like

    xTaskCreate(TASK_FLAG, (signed portCHAR *)"FLAG", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_FLAG, NULL);   // my own tasks jobs to do
}

i got the same error

 

argument 2 is only the name? and name no matters? (think i read that anywhere)... so stack size and priority should have effect.

EDIT: but it still sucks that the compiler is crying each time i compile... when compiling 100 of times a day ...:cry:

Edited by Phatline
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...