我按照正点的建立了库函数版本的工程模板,但是出现了一个报错( ..HALLIBSrcstm32f2xx_hal_i2c.c(3074): error: #268: declaration may not appear after executable statement in block),不知道怎么解决,小白一个,望大神指导下
然后我根据报错的原因更改了下 tickstart = HAL_GetTick();
__IO uint32_t count = 0U;
把这两句话调换了下位置,上面报错的问题是解决了,但出现了更多的错误:
1、..OBJ apalate.axf: Error: L6200E: Symbol HAL_MspDeInit multiply defined (by stm32f2xx_hal_msp_template.o and stm32f2xx_hal_msp.o).
2、..OBJ apalate.axf: Error: L6200E: Symbol HAL_MspInit multiply defined (by stm32f2xx_hal_msp_template.o and stm32f2xx_hal_msp.o).
3、..OBJ apalate.axf: Error: L6200E: Symbol HAL_InitTick multiply defined (by stm32f2xx_hal_timebase_rtc_wakeup_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
4、..OBJ apalate.axf: Error: L6200E: Symbol HAL_InitTick multiply defined (by stm32f2xx_hal_timebase_tim_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
5、..OBJ apalate.axf: Error: L6200E: Symbol HAL_ResumeTick multiply defined (by stm32f2xx_hal_timebase_rtc_wakeup_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
6、..OBJ apalate.axf: Error: L6200E: Symbol HAL_ResumeTick multiply defined (by stm32f2xx_hal_timebase_tim_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
7、..OBJ apalate.axf: Error: L6200E: Symbol HAL_SuspendTick multiply defined (by stm32f2xx_hal_timebase_rtc_wakeup_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
8、..OBJ apalate.axf: Error: L6200E: Symbol HAL_SuspendTick multiply defined (by stm32f2xx_hal_timebase_tim_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
9、..OBJ apalate.axf: Error: L6200E: Symbol hRTC_Handle multiply defined (by stm32f2xx_hal_timebase_rtc_wakeup_template.o and stm32f2xx_hal_timebase_rtc_alarm_template.o).
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>