Hello!
I have problem with compilation FreeRTOS on STM32F103C8T6.
Command for compillator:
/usr/bin/arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -ISTM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/CoreSupport -ISTM32F10x_StdPeriph_Lib_V3.5.0/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x -ISTM32F10x_StdPeriph_Lib_V3.5.0/Libraries/inc -ISTM32F10x_StdPeriph_Lib_V3.5.0/Libraries/src -IStartup -IUser -IFreeRTOS/Source/include -IFreeRTOS/Source/portable/GCC/ARM_CM3 -IFreeRTOS/Source -Og -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -std=gnu99 -MMD -MP -MF"trilobozoa.d" -Wa,-a,-ad,-alms=./trilobozoa.lst trilobozoa.c -o trilobozoa.o
Error:
In file included from FreeRTOS/Source/include/portable.h:53:0,
from FreeRTOS/Source/include/FreeRTOS.h:65,
from trilobozoa.c:3:
FreeRTOS/Source/include/portmacro.h:170:29: error: expected ā=ā, ā,ā, ā;ā, āasmā or āattributeā before āvoidā
static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
^~~~
FreeRTOS/Source/include/portmacro.h:183:29: error: expected ā=ā, ā,ā, ā;ā, āasmā or āattributeā before āvoidā
static portFORCE_INLINE void vPortRaiseBASEPRI( void )
^~~~
FreeRTOS/Source/include/portmacro.h:200:29: error: expected ā=ā, ā,ā, ā;ā, āasmā or āattributeā before āvoidā
static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
^~~~
FreeRTOS/Source/include/portmacro.h:208:26: error: stray ā#ā in program
msr basepri, # 0
^
FreeRTOS/Source/include/portmacro.h:165:37: error: unknown type name ā__forceinlineā
#define portFORCE_INLINE __forceinline
^
FreeRTOS/Source/include/portmacro.h:214:12: note: in expansion of macro āportFORCE_INLINEā
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portmacro.h:214:38: error: expected ā=ā, ā,ā, ā;ā, āasmā or āattributeā before āulPortRaiseBASEPRIā
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portmacro.h:165:37: error: unknown type name ā__forceinlineā
#define portFORCE_INLINE __forceinline
^
FreeRTOS/Source/include/portmacro.h:234:12: note: in expansion of macro āportFORCE_INLINEā
static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
^~~~~~~~~~~~~~~~
FreeRTOS/Source/include/portmacro.h:234:40: error: expected ā=ā, ā,ā, ā;ā, āasmā or āattributeā before āxPortIsInsideInterruptā
static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
I donāt know how fix it problem.
I am not able to use IDE and use GCC + makefile. I try use differents makefileās but all the time i got this problem. I took the portmacro.h and port.c from Source/portable/GCC/ARM_CM3. I use and try compile code for STM32 āBlue Pillā.
Please, help!