打印

PIC 单片机遇到的问题

[复制链接]
855|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
tzcll|  楼主 | 2016-8-10 23:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Release build of project `D:\Yanfa\read-eerom\Software\usb\MCC18 USB\HID.mcp' started.
Language tool versions: mplink.exe v9.80, mcc18.exe v9.80, mplib.exe v9.80
Wed Aug 10 23:06:59 2016
----------------------------------------------------------------------
Make: The target "F:\MAPLIBCXBC\MCC18 USB\main.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\xc8\v1.32\bin\mcc18.exe" -p=18F4550 /i"D:\MCC18\h" "main.c" -fo="F:\MAPLIBCXBC\MCC18 USB\main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
USB data.h:
   242:        const unsigned char *rom USB_CD_Ptr[]={&cfg01,&cfg01};
                                                     ^ (359) illegal conversion between pointer types (warning)
pointer to rom struct S632 -> pointer to const unsigned char
             (359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S632 -> pointer to const unsigned char
   243:        const unsigned char *rom USB_SD_Ptr[]={&sd000,&sd001,&sd002};
                                                     ^ (359) illegal conversion between pointer types (warning)
pointer to rom struct S633 -> pointer to const unsigned char
             (359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S634 -> pointer to const unsigned char
                    (359) illegal conversion between pointer types ^ (warning)
pointer to rom struct S635 -> pointer to const unsigned char
main.c: USBCtrlTrfSetupHandler()
   365:        wCount._word = 0;
                     ^ (196) struct/union required
main.c: USBCtrlEPServiceComplete()
   446:        if(SetupPkt.wLength < wCount._word)
              (196) struct/union required ^
   447:        wCount._word = SetupPkt.wLength;
                     ^ (196) struct/union required
main.c: USBCtrlTrfTxService()
   484:        if(wCount._word < 8)
                        ^ (196) struct/union required
   485:        byte_to_send._word = wCount._word;
                           ^ (196) struct/union required
             (196) struct/union required ^
   487:        byte_to_send._word = 8;
                           ^ (196) struct/union required
   494:        ep0Bi.Stat._byte |= ((byte_to_send).v[1]);
                 (196) struct/union required ^
                         (981) pointer required ^
                         (981) pointer required ^
   495:        ep0Bi.Cnt = ((byte_to_send).v[0]);
         (196) struct/union required ^
                 (981) pointer required ^
                 (981) pointer required ^
   497:        wCount._word = wCount._word - byte_to_send._word;
                     ^ (196) struct/union required
                                    ^ (196) struct/union required
                            (196) struct/union required ^
   503:        while(byte_to_send._word)
                                ^ (196) struct/union required
   508:        byte_to_send._word--;
                          ^ (196) struct/union required
   513:        while(byte_to_send._word)
                                ^ (196) struct/union required
   518:        byte_to_send._word--;
                          ^ (196) struct/union required
main.c: USBCtrlTrfRxService()
   530:        ((byte_to_read).v[1]) = 0x03 & ep0Bo.Stat._byte;
                         ^ (196) struct/union required
main.c: 530: too many errors (21)
(908) exit status = 1
(908) exit status = 1
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `D:\Yanfa\read-eerom\Software\usb\MCC18 USB\HID.mcp' failed.
Language tool versions: mplink.exe v9.80, mcc18.exe v9.80, mplib.exe v9.80
Wed Aug 10 23:07:00 2016
----------------------------------------------------------------------
BUILD FAILED


各位大神麻烦给我看一下,我在用pic18f2455的usb接口与pc通信,代码在网上找的,用的c18  c编译器  死活编译不通过

沙发
JY-DX-JY| | 2016-8-11 18:50 | 只看该作者
换个C编译器试试。

使用特权

评论回复
评分
参与人数 1威望 +1 收起 理由
tzcll + 1 赞一个
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

8

帖子

0

粉丝