完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个问题,为一个18F45 K22项目构建一组.ASM文件。所有文件(总共11个)没有错误地组装,直到最近在一个次要编辑会话的中间,系统构建失败了以下消息:-“MPLink 4.49,Link设备数据库版本1.14版权(C)1998—2011 Microchip Technology Inc.错误-找不到S的定义YMBOL在文件'/i2cDelo.O.C.错误中的格式:1Link步骤失败。“所有全局和外部引用都是正确的,相关文件没有参与编辑会话。撤销编辑并没有解决这个问题。更令人困惑的是,复制.ASM文件中的子例程“格式”,它以前被标记为外部,并完全从交叉引用中删除名称,但无法解决生成问题,即使链接器没有报告问题!!!!拆卸列表是不完整的,在两种情况下都是相同的。显然,代码中的某个地方存在问题,但我不知如何诊断它。在试图追根溯源的过程中,我清除并重新加载了MPLAB IDE 8.92,只是为了确保软件没有腐败,是否有人遇到过类似的问题或如何追踪其位置的任何想法?我们将不胜感激。
以上来自于百度翻译 以下为原文 I have a problem with failure to build a group of .asm files for an 18F45K22 project. All the files (11 in total) assemble without errors, and until recently in the middle of a minor editing session, a system build failed with the following message:- "MPLINK 4.49, Linker Device Database Version 1.14 Copyright (c) 1998-2011 Microchip Technology Inc. Error - could not find definition of symbol 'format' in file './I2Cdisplay.o'. Errors : 1 Link step failed." All Global and External references were correct and the files concerned were not involved in the editing session. Undoing the edits did not resolve the problem. Even more confusing, duplicating the subroutine "format" in the .asm file where it was previously marked as External and removing the name entirely from cross referencing did not cure the build problem, even though the linker reported no problems!!! The disassembly listing is incomplete and is identical in both cases. Clearly there is a problem somewhere in the code, but I am at a loss to know how to diagnose it. In trying to chase down the cause I cleared and reloaded MPLAB IDE 8.92 - just to make sure there had been no corruption of that software Has anyone experienced a like problem or any ideas as to how to trace its location? Help would be much appreciated. |
|
相关推荐
2个回答
|
|
我有一个类似的问题。我还没有编码微芯片8年,所以它可能是一个新手错误。我实际上试图记住外部和全局的作品如何搜索网络。这是我得到的输出:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'C\用户OrcDeals\Test.MCP启动。语言工具版本:定义了MPASMWIN .EXE V5.50、MPLIKIN .EXE V4.48、MPLB.EXE V4.48预处理器符号'*调试。FRI APR 06 11:35:14 2018 ---------------------------------------------------------------------------------目标:“C\用户OrCADATABASTABASCO。O”是最新的。使:“C:用户 ORCADealsTest.O”的目标是最新的。使:“C:用户 ORCA文档测试”的目标是最新的。使:“C:用户 ORCADealsTest.COF”的目标已经过时。执行:“C:Microchip MPLASMMPLANK.exe”/P18F44 2“TABASCO”O“”测试“O”/UYDebug / ZyMPLABBUBY=1 /ZY-MPLABBUDUG=1/O“测试.COM/M”测试.MAP“/W MPLink 4.48,连接器设备数据库版本1.12版权所有(C)1998—2011 Microchip Technology Inc.错误-N在文件'/t'中查找符号“g”的定义。错误:1链接步骤失败。-------------------------------------------项目C:用户 ORCADebug 测试的调试构建。语言工具版本:定义了MPASMWIN .EXE V5.50、MPLIKIN .EXE V4.48、MPLB.EXE V4.48预处理器符号'*调试。FRI APR 06 11:35:15 2018 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
以上来自于百度翻译 以下为原文 I have a similar problem. Tho i haven't coded microchip for 8 years so it might be a newbie error. I actually try to remember how EXTERNAL and GLOBAL works searching the net about it. This is the output i get: ---------------------------------------------------------------------- Debug build of project `C:UsersorcaDocumentstest.mcp' started. Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48 Preprocessor symbol `__DEBUG' is defined. Fri Apr 06 11:35:14 2018 ---------------------------------------------------------------------- Make: The target "C:UsersorcaDocumentstabasco.o" is up to date. Make: The target "C:UsersorcaDocumentstest.o" is up to date. Make: The target "C:UsersorcaDocumentstesting.o" is up to date. Make: The target "C:UsersorcaDocumentstest.cof" is out of date. Executing: "C:Program Files (x86)MicrochipMPASM Suitemplink.exe" /p18F442 "tabasco.o" "test.o" "testing.o" /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"test.cof" /M"test.map" /W MPLINK 4.48, Linker Device Database Version 1.12 Copyright (c) 1998-2011 Microchip Technology Inc. Error - could not find definition of symbol 'g' in file './testing.o'. Errors : 1 Link step failed. ---------------------------------------------------------------------- Debug build of project `C:UsersorcaDocumentstest.mcp' failed. Language tool versions: MPASMWIN.exe v5.50, mplink.exe v4.48, mplib.exe v4.48 Preprocessor symbol `__DEBUG' is defined. Fri Apr 06 11:35:15 2018 ---------------------------------------------------------------------- BUILD FAILED |
|
|
|
我会避免使用一个字母的变量名。当你没有显示任何代码时,很难建议你做了什么错误。
以上来自于百度翻译 以下为原文 I would avoid using single letter variable names. It's hard to suggest what you have done wrong when you did not show any of your code. |
|
|
|
只有小组成员才能发言,加入小组>>
5031 浏览 9 评论
1933 浏览 8 评论
1870 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3084 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2155 浏览 5 评论
594浏览 1评论
460浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
491浏览 0评论
389浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
871浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-9-1 07:24 , Processed in 1.200010 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191