stm8 IAR 编译错误atal Error[Pe035]: #error directive: "Please select first the target STM8L device

这表明,没有设置该stm8单片机型号的宏

可以在下面选择一种 复制到如下图所示的地方(粗体)

STM8L15X_MD   中等密度设备     

STM8L15X_MDP  中等密度+的设备  

STM8L15X_HD    高密度设备。






然后就可以编译了

猜你喜欢

转载自blog.csdn.net/luoyir1997/article/details/80952193