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

implicit declaration of function 'xTaskCreateRestricted', 'vPortResetPrivilege'

Posted by dnadler on December 14, 2016

Hi Guys - A minor nit but I know you try hard to make all your code compile clean. I get warnings about two implicit declarations (everything else compiles without warnings). Details below. Thanks as always, Best Regards, Dave

~~~ Invoking: Cross ARM C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -Wextra -g3 -D"CPUMK64FN1M0VDC12" -DUSBSTACKFREERTOS -DHSBBUILDWPA -I../source -I../CMSIS -I../GenerateduCsetup -I../board -I../drivers -I../freertos/Source/include -I../freertos/Source/portable/GCC/ARMCM4F -I../startup -I../utilities -I"E:/Cap/MFW2/MFW2firmware/USB/include" -I"E:/Cap/MFW2/MFW2firmware/USB/device/include" -I"E:/Cap/MFW2/MFW2firmware/USB/device/class" -I"E:/Cap/MFW2/MFW2firmware/USB/osa" -I"E:/Cap/MFW2/MFW2firmware/USB/device/class/cdc" -I"E:/Cap/MFW2/MFW2firmware/USB/device/source" -I"E:/Cap/MFW2/MFW2firmware/USB/device/source/khci" -std=gnu99 -Wno-unused-parameter -MMD -MP -MF"FreeRTOS/Source/portable/Common/mpuwrappers.d" -MT"FreeRTOS/Source/portable/Common/mpuwrappers.o" -c -o "FreeRTOS/Source/portable/Common/mpuwrappers.o" "../FreeRTOS/Source/portable/Common/mpuwrappers.c" ../FreeRTOS/Source/portable/Common/mpuwrappers.c: In function 'MPUxTaskCreateRestricted': ../FreeRTOS/Source/portable/Common/mpuwrappers.c:104:2: warning: implicit declaration of function 'xTaskCreateRestricted' [-Wimplicit-function-declaration] xReturn = xTaskCreateRestricted( pxTaskDefinition, pxCreatedTask ); ^ ../FreeRTOS/Source/portable/Common/mpu_wrappers.c:105:2: warning: implicit declaration of function 'vPortResetPrivilege' [-Wimplicit-function-declaration] vPortResetPrivilege( xRunningPrivileged ); ^

~~~


implicit declaration of function 'xTaskCreateRestricted', 'vPortResetPrivilege'

Posted by rtel on December 15, 2016

Hi Dave - thanks for taking the time to report this.

I've just compared the head revision of mpuwrappers.c with the revision from the FreeRTOS V9.0.0 release and it looks like this has already been picked up as MPUxTaskCreateRestricted() is now only compiled if configSUPPORTDYNAMICALLOCATION is set to 1.


implicit declaration of function 'xTaskCreateRestricted', 'vPortResetPrivilege'

Posted by dnadler on December 16, 2016

Is the updated code available? I only find 9.0.0 on sourceforge (sorry if I'm looking in the wrong place)... Thanks, Best Regards, Dave


implicit declaration of function 'xTaskCreateRestricted', 'vPortResetPrivilege'

Posted by rtel on December 16, 2016

Did you look in the SVN repository - also on SourceForge?

https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/portable/Common/mpu_wrappers.c


[ 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