小白请问,一个选定型号f103上编译正常的程序,换成别的板子需要改动那些地方呢?
比如,我的一个简单led灯实验,换成f107型号,就报下面的错,同样flash256k。
请大家指点!谢谢
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:Keil_v5ARMARMCCBin'
Build target 'Target_LED'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling misc.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..STM32F10x_FWLibsrcmisc.c: 1 warning, 1 error
compiling led.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..HARDWARELEDled.c(20): warning: #1-D: last line of file ends without a newline
..HARDWARELEDled.c: 2 warnings, 1 error
compiling stm32f10x_it.c...
stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
stm32f10x_it.c: 1 warning, 1 error
compiling sys.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..SYSTEMsyssys.c: 1 warning, 1 error
compiling stm32f10x_usart.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..STM32F10x_FWLibsrcstm32f10x_usart.c: 1 warning, 1 error
compiling usart.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..SYSTEMusartusart.c(48): warning: #260-D: explicit type is missing ("int" assumed)
_sys_exit(int x)
..SYSTEMusartusart.c: 2 warnings, 1 error
compiling delay.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..SYSTEMdelaydelay.c: 1 warning, 1 error
compiling system_stm32f10x.c...
stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
system_stm32f10x.c: 1 warning, 1 error
compiling stm32f10x_rcc.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..STM32F10x_FWLibsrcstm32f10x_rcc.c: 1 warning, 1 error
compiling stm32f10x_gpio.c...
..USERstm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..USERstm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..STM32F10x_FWLibsrcstm32f10x_gpio.c: 1 warning, 1 error
"..OBJPro_LED.axf" - 10 Error(s), 12 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
嗯嗯!好的原子哥
一周热门 更多>