初级会员

- 积分
- 89
- 金钱
- 89
- 注册时间
- 2015-3-12
- 在线时间
- 25 小时
|
5金钱
标题很性感,内容很骨感,移植当然是不成功的,写下经过
先移植的HAL,试了N次后,编译过了,继续移植uCos,好了问题来了,一开始各种报错,改过N次以后,剩下有几个错误搞不定了,白天没网,就继续移植吧,把Lua也移植了过来了,做了段Lua的测试程序,编译也过了,各位大神帮我解决一下剩下的6个报错,移栽完成后在本帖开源,因为有了这个想法(http://openedv.com/thread-89049-1-1.html)才准备移植这么些东西;
目前的程序没有在板子上跑过,人在广州出差,据某某地图显示 到原子大本营不远;
以下是报错:
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);
|
|