## 标题stm32编译遇到的错误,代码没有问题,就该考虑配置是否有错
…\USER\stm32f10x.h(298): 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\cs470xxx.c(213): warning: #550-D: variable “wrong” was set but never used
u8 wrong;
…\HARDWARE\cs470xxx.c: 2 warnings, 1 error
compiling mainform.c…
…\USER\stm32f10x.h(298): 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\mainform.c: 1 warning, 1 error
compiling 24c32.c…
…\USER\stm32f10x.h(298): 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\24c32.c: 1 warning, 1 error
compiling iic.c…
…\USER\stm32f10x.h(298): error: #67: expected a “}”
ADC1_2_IRQn = 18, /!< ADC1 and ADC2 global Interrupt */
错误
这里的错都是指向
二、使用步骤
一般出现这种情况可能是我们不小心把改文件的某处删改了,然而找了几遍没有问题提,再打开其它可以编译 的文件进行复制粘贴,也出现同样的情况时,那就可能是一个配置出错了!
接着检查芯片的选型