hello everyone
i am using keil version 5 and i install all the packages that needed to run freeRTOS on it. but it always gives me an error with portmacro.h
here is some error lines:
C:/Users/Mohamed Radwan/AppData/Local/Arm/Packs/ARM/CMSIS-FreeRTOS/10.0.1/Source/portable/GCC/ARM_CM4F\portmacro.h(130): error: unknown type name 'inline'
C:/Users/Mohamed Radwan/AppData/Local/Arm/Packs/ARM/CMSIS-FreeRTOS/10.0.1/Source/portable/GCC/ARM_CM4F\portmacro.h(130): error: expected ';' after top level declarator
its repeated many times as there are many files using it.
any recommend what should i do ?
Is "C99 mode" checked in Target -> Options -> C/C++ ?
yes, i checked it several time and also checked the compiler. its version 6
Hey Mohamed,
I was running into a very similar compiler problem with "startup_keil.s" while using the version 6 compiler with Keil 5. The way I fixed it was by removing the file from the project group and then re-adding it.