Hi,
I'm currently working on a project using IAR EWARM, which is using the STemWin API library and the FreeRTOS library.
I wanted to try Embedded Studio to see how it does compared to IAR, and it mostly builds except for 14 errors when compiling the 'cmsis_os.c', which is part of the FreeRTOS and comes with the STemWin library.
(ie you can find it in your latest StemWin 1.4.0, "STemWin_Library_V1.4.0\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c"
I made a simple 'temp' project with just enough of the files to only compile the 'cmsis_os.c' file, and zipped it up, so you can easily reproduce...
this is the output of the compliation errors, seems like the compiler is having issues interpreting the 'inline function declarations in the 'cmsis_gcc.h' file, particulary the ones that have inline asm in the declaration...
Display All
I'm currently working on a project using IAR EWARM, which is using the STemWin API library and the FreeRTOS library.
I wanted to try Embedded Studio to see how it does compared to IAR, and it mostly builds except for 14 errors when compiling the 'cmsis_os.c', which is part of the FreeRTOS and comes with the STemWin library.
(ie you can find it in your latest StemWin 1.4.0, "STemWin_Library_V1.4.0\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS\cmsis_os.c"
I made a simple 'temp' project with just enough of the files to only compile the 'cmsis_os.c' file, and zipped it up, so you can easily reproduce...
this is the output of the compliation errors, seems like the compiler is having issues interpreting the 'inline function declarations in the 'cmsis_gcc.h' file, particulary the ones that have inline asm in the declaration...
Source Code
- Building ‘cmsis_os.c’ from project ‘Executable_1’ from solution ‘Executable_1’ in configuration ‘Debug’
- Compiling ‘cmsis_os.c’
- cmsis_os.c
- macro "__get_CONTROL" passed 1 arguments, but takes just 0
- expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- cmsis_os.h
- cmsis_os.c
- expected identifier or '(' before '__asm__'
- cmsis_os.c
- macro "__get_APSR" passed 1 arguments, but takes just 0
- expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- macro "__get_PRIMASK" passed 1 arguments, but takes just 0
- expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- cmsis_os.h
- cmsis_os.c
- expected identifier or '(' before '__asm__'
- cmsis_os.c
- macro "__get_BASEPRI" passed 1 arguments, but takes just 0
- expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- cmsis_os.h
- cmsis_os.c
- expected identifier or '(' before '__asm__'
- cmsis_os.c
- macro "__get_FAULTMASK" passed 1 arguments, but takes just 0
- expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
- cmsis_os.h
- cmsis_os.c
- expected identifier or '(' before '__asm__'
- Build failed