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

FreeRTOS-CLI

Posted by tlafleur on April 26, 2014

FYI... CLI Ver 1.03 Microchip XC32-1.31 give these warning .. ~~~~~~~ make[2]: Entering directory `/Users/lafleur/Desktop/Winmor TNC Project/FreeRTOSV7.6.0-MZSerial /FreeRTOS/Demo/PIC32MZMPLAB/RTOSDemo.X' ../taskCLI.c:61:5: warning: initialization from incompatible pointer type ../taskCLI.c:83:5: warning: initialization from incompatible pointer type ../taskCLI.c:90:5: warning: initialization from incompatible pointer type ../taskCLI.c:97:5: warning: initialization from incompatible pointer type ../taskCLI.c: In function 'taskCLI': ../taskCLI.c:219:13: warning: pointer targets in passing argument 1 of 'FreeRTOSCLIProcessCommand' differ in signedness ../FreeRTOSCLI.h:85:15: note: expected 'const char * const' but argument is of type 'signed char *' ../taskCLI.c:219:13: warning: pointer targets in passing argument 2 of 'FreeRTOSCLIProcessCommand' differ in signedness ../FreeRTOS_CLI.h:85:15: note: expected 'char *' but argument is of type 'signed char *'

~~~~~~


FreeRTOS-CLI

Posted by rtel on April 26, 2014

taskCLI.c is not a FreeRTOS file, so I guess it is your file, and I also guess that you are casting strings to "signed char *" where as V1.03 does not require the 'signed' any more.

I can't quite remember, but in FreeRTOS itself rather than +CLI the coding standard rule stating char types must be qualified as either signed or unsigned was relaxed when the char was used to point to a character string. This makes the code simpler and neater, and also is inline with 'MISRA thinking'.

I think if you just edit your code to take the 'signed' away it will be fine.

Regards.


FreeRTOS-CLI

Posted by tlafleur on April 26, 2014

Thanks...

solve the problem


FreeRTOS-CLI

Posted by tlafleur on April 26, 2014

Thanks... That fixed the later warning, by not the initialization from incompatible pointer type....

xCommandLineInput is a FreeRTOS function...

static const xCommandLineInput xTaskTasksCommand = { "task", "task: Displays a table of task state informationrn", prvTaskTasksCommand, 0 };

static const xCommandLineInput xTaskStatsCommand = { "stat", "stat: Displays a table of task run time informationrn", prvTaskStatsCommand, 0 };

static const xCommandLineInput xCmd1Command = { "cmd1", "cmd1: Command 1rn", prvCmd1Command, 0 };

static const xCommandLineInput xCmd2Command = { "cmd2", "cmd2: Command 2rn", prvCmd2Command, 1 };

../taskCLI.c:61:5: warning: initialization from incompatible pointer type ../taskCLI.c:83:5: warning: initialization from incompatible pointer type ../taskCLI.c:90:5: warning: initialization from incompatible pointer type ../taskCLI.c:97:5: warning: initialization from incompatible pointer type


FreeRTOS-CLI

Posted by tlafleur on April 26, 2014

Thanks, I found the error...

needed to add (const pdCOMMANDLINECALLBACK) to each command call back


FreeRTOS-CLI

Posted by rtel on April 26, 2014

I think the posts in the forum might have appeared in the wrong order but I'm not sure - the last one says you have fixed the problem but its time stamp is prior to the post before which says you still have problems.

If you are still getting the warnings then which of the four parameters is it referring to. In other words, which lines are lines 61, 83, 90 and 97?

Regards.


FreeRTOS-CLI

Posted by tlafleur on April 26, 2014

all solved...

thanks

Attachments

alternate (1674 bytes)


[ 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