你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

cubemx 生成的freertos代码 在keil ac6下不能编译,有什么解决的方法吗

[复制链接]
awild 提问时间:2024-11-14 11:43 / 未解决
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(167): error: unknown type name '__forceinline'
167 | static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
170 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(178): error: unknown type name '__forceinline'
178 | static portFORCE_INLINE void vPortRaiseBASEPRI( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
183 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(193): error: unknown type name '__forceinline'
193 | static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
196 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(205): error: unknown type name '__forceinline'
205 | static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(205): error: expected ';' after top level declarator
205 | static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
|                                 ^
|                                 ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(223): error: unknown type name '__forceinline'
223 | static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(223): error: expected ';' after top level declarator
223 | static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
|                                   ^
|                                   ;
10 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_CM3\portmacro.h(167): error: unknown type name '__forceinline'
167 | static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
170 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(178): error: unknown type name '__forceinline'
178 | static portFORCE_INLINE void vPortRaiseBASEPRI( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(183): error: expected 'volatile', 'inline', 'goto', or '('
183 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(193): error: unknown type name '__forceinline'
193 | static portFORCE_INLINE void vPortClearBASEPRIFromISR( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(196): error: expected 'volatile', 'inline', 'goto', or '('
196 |         {
|         ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(205): error: unknown type name '__forceinline'
205 | static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(205): error: expected ';' after top level declarator
205 | static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void )
|                                 ^
|                                 ;
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(223): error: unknown type name '__forceinline'
223 | static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(223): error: expected ';' after top level declarator
223 | static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void )
|                                   ^
|                                   ;
10 errors generated.
compiling main.c...
compiling stm32f1xx_hal.c...
compiling stm32f1xx_hal_dma.c...
compiling stm32f1xx_hal_rcc.c...
assembling startup_stm32f103xb.s...
compiling stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_flash.c...
compiling system_stm32f1xx.c...
compiling stm32f1xx_hal_flash_ex.c...
compiling stm32f1xx_hal_exti.c...
compiling stm32f1xx_hal_pwr.c...
compiling stm32f1xx_hal_tim_ex.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_CM3\portmacro.h(167): error: unknown type name '__forceinline'
167 | static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI )
|        ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(162): note: expanded from macro 'portFORCE_INLINE'
162 |         #define portFORCE_INLINE __forceinline
|                                  ^
../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3\portmacro.h(170): error: expected 'volatile', 'inline', 'goto', or '('
170 |         {
|         ^
收藏 评论0 发布时间:2024-11-14 11:43

举报

0个回答
关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版