移植Hal+uCos+Lua到STM32F407,移植当然是不成功的,写下经过
先移植的HAL,试了N次后,编译过了,继续移植uCos,好了问题来了,一开始各种报错,改过N次以后,剩下有几个错误搞不定了,白天没网,就继续移植吧,把Lua也移植了过来了,做了段Lua的测试程序,编译也过了,各位大神帮我解决一下剩下的6个报错;
目前的程序没有在板子上跑过,人在外面出差,以下是报错:
compiling bsp.c...
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(193): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_Init(void);
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(194): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DeInit(void);
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(197): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
..\uCos-III\uCos-Bsp\bsp.c: 0 warnings, 3 errors
compiling os_cpu_c.c...
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(193): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_Init(void);
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(194): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_DeInit(void);
..\HalLib\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h(197): error: #20: identifier "HAL_StatusTypeDef" is undefined
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
..\uCos-III\ucos-III\Ports\ARM-Cortex-M4\Generic\RealView\os_cpu_c.c: 0 warnings, 3 errors
"..\Obj\6AisRobot.axf" - 6 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:04
错误代码定位:
HAL_StatusTypeDef HAL_Init(void);
HAL_StatusTypeDef HAL_DeInit(void);
void HAL_MspInit(void);
void HAL_MspDeInit(void);
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); |