初级会员

- 积分
- 143
- 金钱
- 143
- 注册时间
- 2019-1-16
- 在线时间
- 24 小时
|
1金钱
小白请问,一个选定型号f103上编译正常的程序,换成别的板子需要改动那些地方呢?
比如,我的一个简单led灯实验,换成f107型号,就报下面的错,同样flash256k。
请大家指点!谢谢
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target_LED'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling misc.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\STM32F10x_FWLib\src\misc.c: 1 warning, 1 error
compiling led.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\HARDWARE\LED\led.c(20): warning: #1-D: last line of file ends without a newline
..\HARDWARE\LED\led.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...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\SYSTEM\sys\sys.c: 1 warning, 1 error
compiling stm32f10x_usart.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\STM32F10x_FWLib\src\stm32f10x_usart.c: 1 warning, 1 error
compiling usart.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\SYSTEM\usart\usart.c(48): warning: #260-D: explicit type is missing ("int" assumed)
_sys_exit(int x)
..\SYSTEM\usart\usart.c: 2 warnings, 1 error
compiling delay.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\SYSTEM\delay\delay.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...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\STM32F10x_FWLib\src\stm32f10x_rcc.c: 1 warning, 1 error
compiling stm32f10x_gpio.c...
..\USER\stm32f10x.h(428): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\USER\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\STM32F10x_FWLib\src\stm32f10x_gpio.c: 1 warning, 1 error
"..\OBJ\Pro_LED.axf" - 10 Error(s), 12 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
|
最佳答案
查看完整内容[请看2#楼]
参考这个看下http://www.openedv.com/forum.php?mod=viewthread&tid=289461
|