Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Unknown Type Name UBaseType_t

Posted by freertos90 on April 12, 2017

Hello ; I have this error : ~~~ Description Resource Path Location Type unknown type name 'UBaseTypet' task.h /osiloskop/src line 1156 C/C++ Problem Description Resource Path Location Type unknown type name 'UBaseTypet' task.h /osiloskop/src line 2046 C/C++ Problem Description Resource Path Location Type unknown type name 'TickTypet' task.h /osiloskop/src line 2013 C/C++ Problem Description Resource Path Location Type unknown type name 'TaskFunctiont' task.h /osiloskop/src line 90 C/C++ Problem Description Resource Path Location Type unknown type name 'StackTypet' task.h /osiloskop/src line 122 C/C++ Problem Description Resource Path Location Type unknown type name 'ListItemt' task.h /osiloskop/src line 1919 C/C++ Problem Description Resource Path Location Type unknown type name 'List_t' task.h /osiloskop/src line 1918 C/C++ Problem

~~~ I have task. h file and All these name defined as : ~~~ typedef BaseTypet (*TaskHookFunctiont)( void * ); ~~~ Why I have this error ?


Unknown Type Name UBaseType_t

Posted by rtel on April 13, 2017

I'm not sure why you are getting this error - but you don't give me much of a clue as to what you are doing.

UBaseType_t is included in portmacro.h, which is a header file that is specific to the port you are using. If you include FreeRTOS.h before task.h then portmacro.h will be included for you (do not include pormacro.h manually, just include FreeRTOS.h). However, if you fail to include FreeRTOS.h before tasks.h then your code will not build anyway due to the following #error statement:

#ifndef INC_FREERTOS_H
     #error "include FreeRTOS.h must appear in source files before 
include task.h"
#endif

Unless that is, you are using a very very old version of FreeRTOS.


Unknown Type Name UBaseType_t

Posted by freertos90 on April 13, 2017

Thank you so much for your reply I updated my portmacro.h file But I have these error : ~~~ Description Resource Path Location Type 'configMAXSYSCALLINTERRUPTPRIORITY' undeclared (first use in this function) portmacro.h /osiloskop/src line 139 C/C++ Problem Description Resource Path Location Type unknown type name 'TaskFunctiont' task.h /osiloskop/src line 155 C/C++ Problem

~~~


Unknown Type Name UBaseType_t

Posted by rtel on April 13, 2017

Please show the order in which you include the header files.


Unknown Type Name UBaseType_t

Posted by freertos90 on April 13, 2017

My main file starts likes attachments

Attachments

mainfile.PNG (16995 bytes)

Unknown Type Name UBaseType_t

Posted by freertos90 on April 13, 2017

I found my error But I have only this error again: ~~~ Description Resource Path Location Type 'configMAXSYSCALLINTERRUPT_PRIORITY' undeclared (first use in this function) portmacro.h /osiloskop/src line 139 C/C++ Problem

~~~


Unknown Type Name UBaseType_t

Posted by rtel on April 13, 2017

Are you including header files from within other header files?


Unknown Type Name UBaseType_t

Posted by freertos90 on April 13, 2017

Yes Can I ask question? Where should be this function 'configMAXSYSCALLINTERRUPT_PRIORITY' other from portmacro


Unknown Type Name UBaseType_t

Posted by rtel on April 13, 2017

That should be defined in FreeRTOSConfig.h.


Unknown Type Name UBaseType_t

Posted by freertos90 on April 14, 2017

Actually I want to run these code Which file should added for running these code: pixelconstant.h memcontrol.h mem_control.c main.c You shoul see in step 5 here http://www.instructables.com/id/Digital-Oscilloscope-using-Digilent-Zybo-Board/

Attachments

main.c (21265 bytes)

Unknown Type Name UBaseType_t

Posted by rtel on April 14, 2017

I'm afraid I'm not going to look at your code. You need to figure it out - it is just a header include problem.

Some rules: 1) The FreeRTOS API functions are prefixed to let you know which header file to include. For example, if you use xQueueReceive() then you must include queue.h. HOWEVER if you include a header file that contains prototypes for FreeRTOS API functions then you must also include FreeRTOS.h first. For example:

#include "FreeRTOS.h"
#include "queue.h"

2) Never include FreeRTOSConfig.h, portable.h or portmacro.h yourself, they are included in FreeRTOS.h, and the order in which FreeRTOS.h includes header files is correct to avoid dependency issues.

If you are getting dependency issues, like UBaseType_t is being referenced before it is being declared, then the above rules are being broken somewhere and you need to work out where. I suspect another header file is using a FreeRTOS type without FreeRTOS.h being seen first. The compiler error should tell you which C file generated the error, so you will have to look at the header files included by that C file and work backwards.


Unknown Type Name UBaseType_t

Posted by freertos90 on April 14, 2017

Thank you but there are lots of freeRTOSConfig.h(I mean header file name are same bıt their code is different like freertosconfig.h) How can I decide that which is true?


Unknown Type Name UBaseType_t

Posted by richard_damon on April 15, 2017

FreeRTOSConfig.h is an APPLICATION header file, that should be part of YOUR application, and not just taken from some random place. In the FreeRTOS distibution there are lots of copies of it under the 'Demo' folder, as this is full of demo applications for many different systems.

If you started your application based on one of the demo, then you should have copied the file with the rest of the demo application.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner