New user, has problems

Hi Everyone,

I am new in FreeRTOS, and want to make a simple LED blinking code. But when buıiding some errors are occured:

…/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name ‘__forceinline’

…/Middlewares/Third_Party/FreeRTOS/Source/croutine.c(28): warning: In file included from…

…/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected ‘volatile’, ‘inline’, ‘goto’, or ‘(’
{
^
like these etc.
How can I fix this problem.
Thanks.

Hi,

Can you explain what you did to make this project?
We don’t have enough informations to help you I think.
Also, having the full error messages would help.

Here is the porting guide : FreeRTOS Porting Guide

1 Like

The getting started guide might be more useful than the porting guide. From the compiler errors it looks like the files you are building are not right for the compiler you are using. Which project are you trying to build?

Thanks for your response. Here it is the full message:

Build started: Project: led
*** Using Compiler 'V6.19', folder: 'D:\Keil_v5\ARM\ARMCLANG\Bin'
Build target 'led'
../Middlewares/Third_Party/FreeRTOS/Source/list.c(30): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
8 errors generated.
compiling list.c...
../Middlewares/Third_Party/FreeRTOS/Source/croutine.c(28): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
8 errors generated.
compiling croutine.c...
../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c(43): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
8 errors generated.
compiling heap_4.c...
../Middlewares/Third_Party/FreeRTOS/Source/timers.c(36): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/timers.c(628): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                        portYIELD_WITHIN_API();
                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/timers.c(628): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
10 errors generated.
compiling timers.c...
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(37): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(255): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        portYIELD_WITHIN_API();
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(255): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(403): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        portYIELD_WITHIN_API();
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(403): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(509): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c(509): note: did you mean 'vPortRaiseBASEPRI'?
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): note: 'vPortRaiseBASEPRI' declared here
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
                             ^
13 errors generated.
compiling event_groups.c...
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(38): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(643): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        sbSEND_COMPLETE_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken );
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(115): note: expanded from macro 'sbSEND_COMPLETE_FROM_ISR'
                uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR();             \
                                                         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(643): note: did you mean 'vPortRaiseBASEPRI'?
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(115): note: expanded from macro 'sbSEND_COMPLETE_FROM_ISR'
                uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR();             \
                                                         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): note: 'vPortRaiseBASEPRI' declared here
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
                             ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(900): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        sbRECEIVE_COMPLETED_FROM_ISR( pxStreamBuffer, pxHigherPriorityTaskWoken );
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(77): note: expanded from macro 'sbRECEIVE_COMPLETED_FROM_ISR'
                uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR();             \
                                                         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(1036): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR();
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c(1066): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        uxSavedInterruptStatus = ( UBaseType_t ) portSET_INTERRUPT_MASK_FROM_ISR();
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
12 errors generated.
compiling stream_buffer.c...
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(36): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(281): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                        queueYIELD_IF_USING_PREEMPTION();
                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(281): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(845): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                                        queueYIELD_IF_USING_PREEMPTION();
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(845): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(858): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                                queueYIELD_IF_USING_PREEMPTION();
                                                ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(858): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(927): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                        portYIELD_WITHIN_API();
                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(927): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(981): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(981): note: did you mean 'vPortRaiseBASEPRI'?
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): note: 'vPortRaiseBASEPRI' declared here
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
                             ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(1151): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(1323): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                                queueYIELD_IF_USING_PREEMPTION();
                                                ^
../Middlewares/Third_Party/FreeRTOS/Source/queue.c(89): note: expanded from macro 'queueYIELD_IF_USING_PREEMPTION'
        #define queueYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
compiling queue.c...
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(38): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1058): error: call to undeclared function 'pxPortInitialiseStack'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
                                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1058): note: did you mean 'vPortInitialiseBlocks'?
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(165): note: 'vPortInitialiseBlocks' declared here
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
     ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1058): error: incompatible integer to pointer conversion assigning to 'volatile StackType_t *' (aka 'volatile unsigned int *') from 'int' [-Wint-conversion]
                        pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
                                               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1146): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        taskYIELD_IF_USING_PREEMPTION();
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(64): note: expanded from macro 'taskYIELD_IF_USING_PREEMPTION'
        #define taskYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1146): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(64): note: expanded from macro 'taskYIELD_IF_USING_PREEMPTION'
        #define taskYIELD_IF_USING_PREEMPTION() portYIELD_WITHIN_API()
                                                ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1243): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                                portYIELD_WITHIN_API();
                                ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1243): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1328): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        portYIELD_WITHIN_API();
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1328): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1373): error: call to undeclared function '__dsb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                        portYIELD_WITHIN_API();
                        ^
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(90): note: expanded from macro 'portYIELD'
        __dsb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1373): error: call to undeclared function '__isb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(746): note: expanded from macro 'portYIELD_WITHIN_API'
        #define portYIELD_WITHIN_API portYIELD
                                     ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(91): note: expanded from macro 'portYIELD'
        __isb( portSY_FULL_READ_WRITE );                                                                                        \
        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1523): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                uxSavedInterruptState = portSET_INTERRUPT_MASK_FROM_ISR();
                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/tasks.c(1523): note: did you mean 'vPortRaiseBASEPRI'?
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): note: 'vPortRaiseBASEPRI' declared here
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
compiling tasks.c...
../Core/Src/freertos.c(21): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
8 errors generated.
compiling freertos.c...
../Core/Src/main.c(21): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2\cmsis_os.h(126): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
8 errors generated.
compiling main.c...
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(28): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1886): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    isrm = taskENTER_CRITICAL_FROM_ISR();
           ^
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h(188): note: expanded from macro 'taskENTER_CRITICAL_FROM_ISR'
#define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
                                      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(1886): note: did you mean 'vPortRaiseBASEPRI'?
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h(188): note: expanded from macro 'taskENTER_CRITICAL_FROM_ISR'
#define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
                                      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): note: 'vPortRaiseBASEPRI' declared here
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
                             ^
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(2105): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
              isrm  = taskENTER_CRITICAL_FROM_ISR();
                      ^
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h(188): note: expanded from macro 'taskENTER_CRITICAL_FROM_ISR'
#define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
                                      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c(2172): error: call to undeclared function 'ulPortRaiseBASEPRI'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
          isrm = taskENTER_CRITICAL_FROM_ISR();
                 ^
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h(188): note: expanded from macro 'taskENTER_CRITICAL_FROM_ISR'
#define taskENTER_CRITICAL_FROM_ISR() portSET_INTERRUPT_MASK_FROM_ISR()
                                      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(109): note: expanded from macro 'portSET_INTERRUPT_MASK_FROM_ISR'
#define portSET_INTERRUPT_MASK_FROM_ISR()               ulPortRaiseBASEPRI()
                                                        ^
11 errors generated.
compiling cmsis_os2.c...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(33): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include\FreeRTOS.h(62): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h(52): warning: In file included from...
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(167): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(178): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(193): error: unknown type name '__forceinline'
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
        {
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: unknown type name '__forceinline'
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
       ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
        #define portFORCE_INLINE __forceinline
                                 ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F\portmacro.h(205): error: expected ';' after top level declarator
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
                                ^
                                ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(37): error: This port can only be used when the project options are configured to enable hardware floating point support.
        #error This port can only be used when the project options are configured to enable hardware floating point support.
         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(235): error: expected '(' after 'asm'
__asm void vPortSVCHandler( void )
      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(235): error: expected ';' after top-level asm block
__asm void vPortSVCHandler( void )
     ^
     ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(237): error: use of undeclared identifier 'PRESERVE8'
        PRESERVE8
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(253): error: expected '(' after 'asm'
__asm void prvStartFirstTask( void )
      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(253): error: expected ';' after top-level asm block
__asm void prvStartFirstTask( void )
     ^
     ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(255): error: use of undeclared identifier 'PRESERVE8'
        PRESERVE8
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(281): error: expected '(' after 'asm'
__asm void prvEnableVFP( void )
      ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(281): error: expected ';' after top-level asm block
__asm void prvEnableVFP( void )
     ^
     ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(283): error: use of undeclared identifier 'PRESERVE8'
        PRESERVE8
        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM4F/port.c(439): error: expected '(' after 'asm'
__asm void xPortPendSVHandler( void )
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
compiling port.c...
"led\led.axf" - 143 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

Please let us know the following -

  • Which project are you building?
  • What exact commands did you execute?

If I share my files can you help me. I only want make some leds blinking.

Sure, please share your files.

new user can only mention two at the same time ??

I can’t paste my code??

You should now be able to attach code. If the code is too big, consider putting it in a GitHub repo and sharing the link here.

/* USER CODE BEGIN Header /
/
*


  • @file : main.c
  • @brief : Main program body

  • @attention
  • Copyright (c) 2023 STMicroelectronics.
  • All rights reserved.
  • This software is licensed under terms that can be found in the LICENSE file
  • in the root directory of this software component.
  • If no LICENSE file comes with this software, it is provided AS-IS.

/
/
USER CODE END Header /
/
Includes ------------------------------------------------------------------*/
#include “main.h”
#include “cmsis_os.h”

/* Private includes ----------------------------------------------------------/
/
USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Private typedef -----------------------------------------------------------/
/
USER CODE BEGIN PTD */

/* USER CODE END PTD */

/* Private define ------------------------------------------------------------/
/
USER CODE BEGIN PD /
/
USER CODE END PD */

/* Private macro -------------------------------------------------------------/
/
USER CODE BEGIN PM */

/* USER CODE END PM */

/* Private variables ---------------------------------------------------------*/
UART_HandleTypeDef huart1;
UART_HandleTypeDef huart2;

/* Definitions for test1 /
osThreadId_t test1Handle;
const osThreadAttr_t test1_attributes = {
.name = “test1”,
.stack_size = 128 * 4,
.priority = (osPriority_t) osPriorityAboveNormal,
};
/
Definitions for giris_testi /
osThreadId_t giris_testiHandle;
const osThreadAttr_t giris_testi_attributes = {
.name = “giris_testi”,
.stack_size = 128 * 4,
.priority = (osPriority_t) osPriorityNormal,
};
/
Definitions for output /
osThreadId_t outputHandle;
const osThreadAttr_t output_attributes = {
.name = “output”,
.stack_size = 128 * 4,
.priority = (osPriority_t) osPriorityLow,
};
/
USER CODE BEGIN PV */

/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_USART1_UART_Init(void);
static void MX_USART2_UART_Init(void);
void led_testi(void *argument);
void test2(void *argument);
void test3(void *argument);

/* USER CODE BEGIN PFP */

/* USER CODE END PFP */

/* Private user code ---------------------------------------------------------/
/
USER CODE BEGIN 0 */

include “controller.h”

/* USER CODE END 0 */

/**

  • @brief The application entry point.
  • @retval int
    /
    int main(void)
    {
    /
    USER CODE BEGIN 1 */

/* USER CODE END 1 */

/* MCU Configuration--------------------------------------------------------*/

/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();

/* USER CODE BEGIN Init */

/* USER CODE END Init */

/* Configure the system clock */
SystemClock_Config();

/* USER CODE BEGIN SysInit */

/* USER CODE END SysInit */

/* Initialize all configured peripherals /
MX_GPIO_Init();
MX_USART1_UART_Init();
MX_USART2_UART_Init();
/
USER CODE BEGIN 2 */

/* USER CODE END 2 */

/* Init scheduler /
osKernelInitialize();
/
USER CODE BEGIN Header /
/
*


  • @file : main.c
  • @brief : Main program body

  • @attention
  • Copyright (c) 2023 STMicroelectronics.
  • All rights reserved.
  • This software is licensed under terms that can be found in the LICENSE file
  • in the root directory of this software component.
  • If no LICENSE file comes with this software, it is provided AS-IS.

/
/
USER CODE END Header /
/
*

  • @}
    /
    /
    *

  • @}
    */

    /* Start scheduler */
    osKernelStart();

    /* We should never get here as control is now taken by the scheduler /
    /
    Infinite loop /
    /
    USER CODE BEGIN WHILE /
    while (1)
    {
    /
    USER CODE END WHILE */

    /* USER CODE BEGIN 3 /
    }
    /
    USER CODE END 3 */
    }

/**

  • @brief System Clock Configuration
  • @retval None
    */
    void SystemClock_Config(void)
    {
    RCC_OscInitTypeDef RCC_OscInitStruct = {0};
    RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);

/** Initializes the RCC Oscillators according to the specified parameters

  • in the RCC_OscInitTypeDef structure.
    */
    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
    RCC_OscInitStruct.HSIState = RCC_HSI_ON;
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
    RCC_OscInitStruct.PLL.PLLM = 8;
    RCC_OscInitStruct.PLL.PLLN = 50;
    RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4;
    RCC_OscInitStruct.PLL.PLLQ = 4;
    if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
    {
    Error_Handler();
    }

/** Initializes the CPU, AHB and APB buses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV2;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;

if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK)
{
Error_Handler();
}
HAL_RCC_MCOConfig(RCC_MCO1, RCC_MCO1SOURCE_HSI, RCC_MCODIV_1);
}

/**

  • @brief USART1 Initialization Function
  • @param None
  • @retval None
    */
    static void MX_USART1_UART_Init(void)
    {

/* USER CODE BEGIN USART1_Init 0 */

/* USER CODE END USART1_Init 0 */

/* USER CODE BEGIN USART1_Init 1 */

/* USER CODE END USART1_Init 1 /
huart1.Instance = USART1;
huart1.Init.BaudRate = 9600;
huart1.Init.WordLength = UART_WORDLENGTH_8B;
huart1.Init.StopBits = UART_STOPBITS_1;
huart1.Init.Parity = UART_PARITY_NONE;
huart1.Init.Mode = UART_MODE_TX_RX;
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
if (HAL_UART_Init(&huart1) != HAL_OK)
{
Error_Handler();
}
/
USER CODE BEGIN USART1_Init 2 */

/* USER CODE END USART1_Init 2 */

}

/**

  • @brief USART2 Initialization Function
  • @param None
  • @retval None
    */
    static void MX_USART2_UART_Init(void)
    {

/* USER CODE BEGIN USART2_Init 0 */

/* USER CODE END USART2_Init 0 */

/* USER CODE BEGIN USART2_Init 1 */

/* USER CODE END USART2_Init 1 /
huart2.Instance = USART2;
huart2.Init.BaudRate = 9600;
huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE;
huart2.Init.Mode = UART_MODE_TX_RX;
huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart2.Init.OverSampling = UART_OVERSAMPLING_16;
if (HAL_UART_Init(&huart2) != HAL_OK)
{
Error_Handler();
}
/
USER CODE BEGIN USART2_Init 2 */

/* USER CODE END USART2_Init 2 */

}

/**

  • @brief GPIO Initialization Function
  • @param None
  • @retval None
    */
    static void MX_GPIO_Init(void)
    {
    GPIO_InitTypeDef GPIO_InitStruct = {0};

/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOH_CLK_ENABLE();
__HAL_RCC_GPIOA_CLK_ENABLE();
__HAL_RCC_GPIOC_CLK_ENABLE();
__HAL_RCC_GPIOB_CLK_ENABLE();
__HAL_RCC_GPIOE_CLK_ENABLE();
__HAL_RCC_GPIOD_CLK_ENABLE();

/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOA, LEDA_Pin|LEDB_Pin|LEDD_Pin|LEDE_Pin, GPIO_PIN_RESET);

/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOC, Birler_Pin|Y_zler_Pin, GPIO_PIN_RESET);

/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOB, LEDF_Pin|LEDG_Pin|LEDDP_Pin, GPIO_PIN_RESET);

/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOE, Onlar_Pin|GPIO_PIN_8, GPIO_PIN_RESET);

/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOD, LED1_Pin|LED2_Pin|LED3_Pin|LED4_Pin
|LED5_Pin|LED6_Pin, GPIO_PIN_RESET);

/*Configure GPIO pins : LEDA_Pin LEDB_Pin LEDD_Pin LEDE_Pin */
GPIO_InitStruct.Pin = LEDA_Pin|LEDB_Pin|LEDD_Pin|LEDE_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

/*Configure GPIO pins : Birler_Pin Y_zler_Pin */
GPIO_InitStruct.Pin = Birler_Pin|Y_zler_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);

/*Configure GPIO pins : LEDF_Pin LEDG_Pin LEDDP_Pin */
GPIO_InitStruct.Pin = LEDF_Pin|LEDG_Pin|LEDDP_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

/*Configure GPIO pins : Onlar_Pin PE8 */
GPIO_InitStruct.Pin = Onlar_Pin|GPIO_PIN_8;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);

/*Configure GPIO pins : LED1_Pin LED2_Pin LED3_Pin LED4_Pin
LED5_Pin LED6_Pin */
GPIO_InitStruct.Pin = LED1_Pin|LED2_Pin|LED3_Pin|LED4_Pin
|LED5_Pin|LED6_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);

/*Configure GPIO pins : BUTON_DEC_Pin BUTON_OK_Pin BUTON_INC_Pin */
GPIO_InitStruct.Pin = BUTON_DEC_Pin|BUTON_OK_Pin|BUTON_INC_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);

/*Configure GPIO pin : PA8 */
GPIO_InitStruct.Pin = GPIO_PIN_8;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
GPIO_InitStruct.Alternate = GPIO_AF0_MCO;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);

}

/* USER CODE BEGIN 4 */

/* USER CODE END 4 */

/* USER CODE BEGIN Header_led_testi /
/
*

  • @brief Function implementing the test1 thread.
  • @param argument: Not used
  • @retval None
    /
    /
    USER CODE END Header_led_testi */
    void led_testi(void argument)
    {
    /
    USER CODE BEGIN 5 /
    /
    Infinite loop /
    for(;:wink:
    {
    osDelay(1);
    }
    /
    USER CODE END 5 */
    }

/* USER CODE BEGIN Header_test2 /
/
*

  • @brief Function implementing the giris_testi thread.
  • @param argument: Not used
  • @retval None
    /
    /
    USER CODE END Header_test2 */
    void test2(void argument)
    {
    /
    USER CODE BEGIN test2 /
    /
    Infinite loop /
    for(;:wink:
    {
    osDelay(1);
    }
    /
    USER CODE END test2 */
    }

/* USER CODE BEGIN Header_test3 /
/
*

  • @brief Function implementing the output thread.
  • @param argument: Not used
  • @retval None
    /
    /
    USER CODE END Header_test3 */
    void test3(void argument)
    {
    /
    USER CODE BEGIN test3 /
    /
    Infinite loop /
    for(;:wink:
    {
    osDelay(1);
    }
    /
    USER CODE END test3 */
    }

/**

  • @brief Period elapsed callback in non blocking mode
  • @note This function is called when TIM13 interrupt took place, inside
  • HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment
  • a global variable “uwTick” used as application time base.
  • @param htim : TIM handle
  • @retval None
    */
    void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef htim)
    {
    /
    USER CODE BEGIN Callback 0 */

/* USER CODE END Callback 0 /
if (htim->Instance == TIM13) {
HAL_IncTick();
}
/
USER CODE BEGIN Callback 1 */

/* USER CODE END Callback 1 */
}

/**

  • @brief This function is executed in case of error occurrence.
  • @retval None
    /
    void Error_Handler(void)
    {
    /
    USER CODE BEGIN Error_Handler_Debug /
    /
    User can add his own implementation to report the HAL error return state /
    __disable_irq();
    while (1)
    {
    }
    /
    USER CODE END Error_Handler_Debug */
    }

#ifdef USE_FULL_ASSERT
/**

  • @brief Reports the name of the source file and the source line number
  •     where the assert_param error has occurred.
    
  • @param file: pointer to the source file name
  • @param line: assert_param error line source number
  • @retval None
    */
    void assert_failed(uint8_t file, uint32_t line)
    {
    /
    USER CODE BEGIN 6 /
    /
    User can add his own implementation to report the file name and line number,
    ex: printf(“Wrong parameters value: file %s on line %d\r\n”, file, line) /
    /
    USER CODE END 6 /
    }
    #endif /
    USE_FULL_ASSERT */

Here it is. I can share the clock configuration also.

This is not enough. You need to provide the complete source code - either zip it up and upload here or push your code to a GitHub repo and share the link here. In addition, you need to answer the following questions:

  1. Where did you get this project from?
  2. Which IDE/Toolchain are you using?
  3. Which MCU is it for?

From the code you pasted, I can see that you are trying to use a part from ST Microelectronics. Can you tell me what are you trying to achieve? Do you have a development board and you are trying to create a starting project for that? If so, which development board is it?

This is a starting project. The development kit is

STM32F407VGTx

https://www.keil.arm.com/boards/stmicroelectronics-stm32f4-discovery-revc1-0b08332/projects/

And would you please answer the other questions I asked above.

OK, “STMicroelectronics”, “MX_GPIO_Init”, “Keil_v5”… so you are using STM32CubeMX and Keil.

Please check the version of Keil, and STM32CubeMX configuration.

The STM32CubeMX thing is a click-and-generate tool. I think the version of Keil went wrong. Usually, STM32CubeMX is quite reliable.

Kind Regards,

Assuming that you are using this dev kit, you can use the attached project that I created for you. Please follow the steps below -

  1. Download and install STM32CubeIDE.
  2. Download the attached file STM32F407G-DISC1.zip and extract it to a folder named STM32F407G-DISC1.
  3. Launch STM32CubeIDE.
  4. Click File --> Import....
  5. Select General --> Existing Projects into Workspace and click Next.
  6. Click Browse... button next to the Select root directory and browse to the STM32F407G-DISC1 folder you extracted in step 2. You should see the FreeRTOSDemo in the projects area. Click finish.
  7. You should see the project in the project explorer in the IDE like the following -
    image
  8. Click Project --> Build All to build the project.
  9. Click Run --> Debug to burn the built binary and start debugging.
  10. Click Run --> Resume to let the program run. You should see the LEDs on the board blinking.

Note that I do not have the hardware and therefore, I could not test this code. Let me know if it does not work.

STM32F407G-DISC1.zip (1.1 MB)

Thanks for your reply. I followed every step as you mention .But when I click run debug

image
appears. Then I finished the upgrade but still it says

rstart. I have restarted more than one. But still the same box appears.

In the second image above, you need to click “Open in update mode” first. Then the “Upgrade” button below should enable and you need to click that. After the upgrade is successful, you need to click “Run–>Debug” again to start debugging.

Now I have solved the problem. Thank you very much. Appreciate.