久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 6202|回復(fù): 1
打印 上一主題 下一主題
收起左側(cè)

xc8編譯器,pic16f1825 單片機(jī) 串口發(fā)送程序編譯不過(guò).

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:248855 發(fā)表于 2017-11-13 10:45 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
大家好!請(qǐng)教個(gè)問(wèn)題:
    xc8編譯器,pic16f1825 單片機(jī) 串口發(fā)送程序編譯不過(guò).代碼如下:
/串口發(fā)送一串字符
void EUSART_SendString(const unsigned char  *pData)
{   
    di(); //GIE = 0 //disable all interrupts
    TXIE =0;  //屏閉EUSART 發(fā)送中斷
   
    int len = strlen(pData);
    unsigned char  *str= malloc(len);
    if(str !=NULL){
        strcpy(str,pData);
        while(*str!='\0')
        {
            TXREG = *str++;
            while(TXSTAbits.TRMT==0);//TRMT=1時(shí),TSR為空,否則不為空
        }
        free(str);
    }
}

編譯錯(cuò)誤 如下:
:: warning: (1273) Omniscient Code Generation not available in Free mode
mcu_wifi.c:108: advisory: (1510) non-reentrant function "_EUSART_SendString" appears in multiple call graphs and has been duplicated by the compiler
C:\Program Files\Microchip\xc8\v1.42\sources\common\strcpy.c:8: advisory: (1510) non-reentrant function "_strcpy" appears in multiple call graphs and has been duplicated by the compiler
C:\Program Files\Microchip\xc8\v1.42\sources\common\strlen.c:4: advisory: (1510) non-reentrant function "_strlen" appears in multiple call graphs and has been duplicated by the compiler
uart_comm.c:9: warning: (520) function "_calc_checksum" is never called
:0: error: (500) undefined symbols:
        _free(dist/default/production\mcu_wifi.X.production.obj) _malloc(dist/default/production\mcu_wifi.X.production.obj)
(908) exit status = 1
nbproject/Makefile-default.mk:147: recipe for target 'dist/default/production/mcu_wifi.X.production.hex' failed
make[2]: Leaving directory 'D:/VM/share/AbleCloud/mcu_firmware/mcu_wifi/mcu_wifi.X'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'D:/VM/share/AbleCloud/mcu_firmware/mcu_wifi/mcu_wifi.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [dist/default/production/mcu_wifi.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

編譯已失敗 (退出值2, 總時(shí)間: 2s)

各位大牛,請(qǐng)幫我看下是什么問(wèn)題!!
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏1 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:869731 發(fā)表于 2020-12-31 15:49 | 只看該作者
你的free 沒(méi)有包含頭文件 free 的頭文件是 #include<stdlib.h>
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 日韩一区二区三免费高清在线观看 | 日本成人黄色 | 午夜亚洲精品 | 国产一级免费视频 | 成人国产网站 | 欧美精品在线观看 | 亚洲国产中文字幕 | 亚洲天堂中文字幕 | 亚洲国产成人在线 | 成人免费观看网站 | 国产精品久久久久久久久久久久久久 | 日韩色在线 | 在线观看黄网 | 国产精品主播一区二区 | 天天操天天拍 | 日本毛片在线观看 | 超碰成人在线观看 | 自拍偷拍一区二区三区 | 久久一区二区视频 | 高清一区二区 | 天堂中文av | 久久av一区二区三区亚洲 | 国产成人亚洲精品自产在线 | 黄色a一级片 | 免费一区二区视频 | 伊人成人在线视频 | 国产一级在线观看 | 成人高潮片免费网站 | 欧美视频在线观看 | 国产精品伦 | 一区二区免费看 | av第一页| 99国产在线观看 | 久久精品一区二区国产 | 久久久久一区二区三区 | 日韩一级二级三级 | 亚洲最大黄色 | 黄色免费小视频 | 91狠狠综合 | 欧美日韩中文在线 | 欧美精产国品一二三区 |