Phatline Posted January 21, 2018 Report Posted January 21, 2018 (edited) 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.capp.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 January 21, 2018 by Phatline
kmargos Posted May 7, 2018 Report Posted May 7, 2018 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.
Phatline Posted May 8, 2018 Author Report Posted May 8, 2018 (edited) welcome to the club - i see it everyday... 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 ... Edited May 8, 2018 by Phatline
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now