STVD编译STM8L系列单片机出现问题,求大侠解决。您一句话,可能让我少奋斗一下午。
用STVD编译STML151C8单片机出现的问题 <script type="text/javascript"> http://rf.eefocus.com/images/RF/banners/RF-20130507-150300.jpg http://gg.eefocus.com/www/delivery/lg.php?bannerid=2125&campaignid=600&zoneid=15&loc=http%3A%2F%2Fwww.eefocus.com%2Fbbs%2Farticle_394_547896.html&cb=f225fad9ea已经下载了破解版的cosmic,程序和编译出错如下,已经解决了大部分,还有这3个解决不了,求助大神!在线等,望速回复。
#include "stm8l15x.h"
#include "stm8l15x_gpio.h"
void agpio_init()
{
GPIO_DeInit(GPIOA);
GPIO_DeInit(GPIOB);
GPIO_DeInit(GPIOD);
GPIO_Init(GPIOA,GPIO_Pin_5,GPIO_Mode_Out_PP_Low_Fast);
GPIO_Init(GPIOB,GPIO_Pin_5,GPIO_Mode_In_FL_No_IT);
GPIO_Init(GPIOD,GPIO_Pin_5,GPIO_Mode_In_FL_No_IT);
}
void main()
{
void agpio_init();
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
while (1)
{
if(GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_5)==0)
{
GPIO_ToggleBits(GPIOA,GPIO_Pin_5);
};
if(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_5)==0)
{
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
};
}
}报的错误如下
----------- Project gpio_1 - STM8 Cosmic - Configuration Debug -------------
Compiling main.c...
cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8" -clDebug\ -coDebug\ main.c
#error cpstm8 C:\Program Files\COSMIC\CXSTM8_32K\Hstm8\stm8l15x_itc.h:105(0) missing enumeration member
main.c:
The command: "cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8" -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.
gpio_1.elf - 3 error(s), 0 warning(s)
</p>已经下载了破解版的cosmic,程序和编译出错如下,已经解决了大部分,还有这3个解决不了,求助大神!在线等,望速回复。
#include "stm8l15x.h"
#include "stm8l15x_gpio.h"
void agpio_init()
{
GPIO_DeInit(GPIOA);
GPIO_DeInit(GPIOB);
GPIO_DeInit(GPIOD);
GPIO_Init(GPIOA,GPIO_Pin_5,GPIO_Mode_Out_PP_Low_Fast);
GPIO_Init(GPIOB,GPIO_Pin_5,GPIO_Mode_In_FL_No_IT);
GPIO_Init(GPIOD,GPIO_Pin_5,GPIO_Mode_In_FL_No_IT);
}
void main()
{
void agpio_init();
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
while (1)
{
if(GPIO_ReadInputDataBit(GPIOB,GPIO_Pin_5)==0)
{
GPIO_ToggleBits(GPIOA,GPIO_Pin_5);
};
if(GPIO_ReadInputDataBit(GPIOD,GPIO_Pin_5)==0)
{
GPIO_ResetBits(GPIOA,GPIO_Pin_5);
};
}
}报的错误如下
----------- Project gpio_1 - STM8 Cosmic - Configuration Debug -------------
Compiling main.c...
cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8" -clDebug\ -coDebug\ main.c
#error cpstm8 C:\Program Files\COSMIC\CXSTM8_32K\Hstm8\stm8l15x_itc.h:105(0) missing enumeration member
main.c:
The command: "cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files\COSMIC\CXSTM8_32K\Hstm8" -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.
gpio_1.elf - 3 error(s), 0 warning(s)
页:
[1]