Microchip
直播中

吴秀英

7年用户 205经验值
私信 关注
[问答]

PIC16F18313编译错误

我想用PIC16F18313编写一个简单的I2C写程序,我参考了MCHP的指南,如何使用MCC来创建程序,并嵌入了EEPROMY12C应用程序代码,但是编译错误使我感到困惑,任何人都可以给我一些建议,我附上了源程序。没有实际的错误提示消息,但是最后编译失败了。

以上来自于百度翻译


      以下为原文

    I'm tring to creat a simple I2C write program with PIC16F18313, I have reference to MCHP' guider, how to use MCC to create the program, and embeded the eeprom_12C application code, but the compile error puzzled me, anyone can give me some advice, i have attach the source project.
as following picture, there are no actual error hint message, but at last, compile is failed.sad:


   Attached Image(s)


Attachment(s)

PIC16F18313.zip (124.62 KB) - downloaded 33 times

回帖(3)

蒋喜玲

2018-12-11 15:56:33
您的zip文件将不会打开7zip。高亮的行只是说,输出十六进制文件生成失败。你必须看看上面的错误-未定义的符号“II2CYByTrWrand”,这可能意味着你应该使用I2C1YByToWrad。

以上来自于百度翻译


      以下为原文

    Your zip file won't open with 7-zip.
 
The highlighted line just says that the output hex file generation failed. You have to look at the error above - undefined symbol "_I2C_ByteWrite" which probably means you should have used I2C1_ByteWrite instead.
举报

余小娟

2018-12-11 16:03:54
您好,谢谢您提醒我,我已经把I2C1BYTETHORD替换为i2CyByToWrad,但是错误仍然存在。我的项目大于500 K,大约670K,我不知道如何将它附加在这个帖子中,也许,你可以给我一封电子邮件,我会把这个项目发送给你的!多谢!

以上来自于百度翻译


      以下为原文

    hi caffeine
thanks for you remind, i have replace I2C1_ByteWrite to I2C_ByteWrite, but the error is still exists
my project is larger than 500k, about 670k, I don't know how to attach it in this post, maybe ,you can give a email add to me, I'll sent the project to you! many thanks!
举报

蒋喜玲

2018-12-11 16:16:29
在EEPROMIFI2C C 52行上的警告称“I2C1YByTeWrad从来没有被调用”,而错误说“未定义的符号:II2CYByTrWrad”,如果您已经修复了,然后查找下一个错误。

以上来自于百度翻译


      以下为原文

    Well, the warning on eeprom_i2c.c line 52 says "_I2C1_ByteWrite is never called" while the error says "undefined symbol: _I2C_ByteWrite"   If you've fixed that then look for the next error.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分