你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

STVD编译STM8L系列单片机出现问题,求大侠解决。您一句话,可能让我少奋斗一下午。

[复制链接]
langmanxiaowu 提问时间:2013-5-29 16:00 /
用STVD编译STML151C8单片机出现的问题
 
                                                <script type="text/javascript">                        
            
                        已经下载了破解版的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)
             
            
            
            

                                                [/td]        [/tr]    [/table]</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)
 
11.png
收藏 评论0 发布时间:2013-5-29 16:00

举报

0个回答
关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版