打印

KIT3 编译的时候出错,请高手指点,谢谢

[复制链接]
3776|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
robertlinsen|  楼主 | 2013-6-9 18:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
编译的时候在DEBUG时候通不过,出现下面的提示,但在RELEASE的时候能通过,请高手指点,谢谢
MPLINK 4.39, Linker
Device Database Version 1.1
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - memory 'oscval' overlaps memory 'debug'
Errors    : 1

Link step failed.
沙发
robertlinsen|  楼主 | 2013-6-9 20:07 | 只看该作者
补充一下,用的MCU是PIC16F630

使用特权

评论回复
板凳
robertlinsen|  楼主 | 2013-6-10 07:00 | 只看该作者
MPLAB IDE V8.70 如果选择了KIT3,DEBUG下通不过信息如下补充:

Debug build of project `E:\630 yaokong\PIC16F 2013 06 09\PIC16F.mcp' started.
Language tool versions: MPASMWIN.exe v5.41, mplink.exe v4.39, mplib.exe v4.39
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_PK3=1'.
Debug platform options are: `__ICD2RAM=1'.
Mon Jun 10 06:53:43 2013
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).o".
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).err".
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F630 "630 guding(1).asm" /l"630 guding(1).lst" /e"630 guding(1).err" /o"630 guding(1).o" /d__DEBUG=1 /d__MPLAB_DEBUGGER_PK3=1
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" /p16F630 "..\16f630_g.lkr" "630 guding(1).o" /u_DEBUG /u_DEBUGCODESTART=0x300 /u_DEBUGCODELEN=0x100 /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /z__MPLAB_DEBUGGER_PK3=1 /z__ICD2RAM=1 /o"PIC16F.cof" /M"PIC16F.map" /W
MPLINK 4.39, Linker
Device Database Version 1.1
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - memory 'oscval' overlaps memory 'debug'
Errors    : 1

Link step failed.
----------------------------------------------------------------------
Debug build of project `E:\630 yaokong\PIC16F 2013 06 09\PIC16F.mcp' failed.
Language tool versions: MPASMWIN.exe v5.41, mplink.exe v4.39, mplib.exe v4.39
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_PK3=1'.
Debug platform options are: `__ICD2RAM=1'.
Mon Jun 10 06:53:46 2013
----------------------------------------------------------------------
BUILD FAILED

如果不选择KIT3,DEBUG就能通过,信息如下,这是为什么?请高手指点
Debug build of project `E:\630 yaokong\PIC16F 2013 06 09\PIC16F.mcp' started.
Language tool versions: MPASMWIN.exe v5.41, mplink.exe v4.39, mplib.exe v4.39
Preprocessor symbol `__DEBUG' is defined.
Mon Jun 10 06:58:55 2013
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).o".
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).err".
Clean: Deleted file "E:\630 yaokong\PIC16F 2013 06 09\630 guding(1).lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F630 "630 guding(1).asm" /l"630 guding(1).lst" /e"630 guding(1).err" /o"630 guding(1).o" /d__DEBUG=1
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" /p16F630 "..\16f630_g.lkr" "630 guding(1).o" /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"PIC16F.cof" /M"PIC16F.map" /W
MPLINK 4.39, Linker
Device Database Version 1.1
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors    : 0

MP2HEX 4.39, COFF to HEX File Converter
Copyright (c) 1998-2011 Microchip Technology Inc.
Errors    : 0

Loaded E:\630 yaokong\PIC16F 2013 06 09\PIC16F.cof.
----------------------------------------------------------------------
Debug build of project `E:\630 yaokong\PIC16F 2013 06 09\PIC16F.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.41, mplink.exe v4.39, mplib.exe v4.39
Preprocessor symbol `__DEBUG' is defined.
Mon Jun 10 06:58:58 2013
----------------------------------------------------------------------
BUILD SUCCEEDED

使用特权

评论回复
地板
robertlinsen|  楼主 | 2013-6-10 07:06 | 只看该作者
其实我就是想在MPLAB里面单步走走程序,看程序走的情况,我不需要仿真,只是在MPLAB软件跑跑看看程序情况

使用特权

评论回复
5
弓长月月鸟| | 2013-6-10 07:26 | 只看该作者
直接软仿不行吗?

使用特权

评论回复
6
robertlinsen|  楼主 | 2013-6-10 12:40 | 只看该作者
直接软仿不行,在DEBUG状态的时候,通不过编译,就谈不上软仿了,不知道哪设置有问题,我是用汇编写的程序。但在程序状态的时候,程序能够烧进去的,

使用特权

评论回复
7
robertlinsen|  楼主 | 2013-6-19 17:11 | 只看该作者
怎么没有人帮忙指点一下啊

使用特权

评论回复
8
llqjmy| | 2013-6-20 22:27 | 只看该作者
Microchip的产品仿真历来都是占用一部分MCU资源来仿真(我是指ICD2,ICD3,PICKit3这些开发工具)。你这种情况,我建议你删除一些你不需要用到的变量。或许可以通过。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

26

帖子

0

粉丝