Microchip
直播中

钱杨静

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

从MPLAB到MPLABX的传统程序在导入后不起作用

我有一些程序,我使用MPLAB 8.4来开发。我已经移动到MPLABX并成功开发了新程序。我已经从MPLABX启动窗口导入了一些旧的程序,并在MPLABX正确编译。我没有对源代码做任何修改,但是编译的代码在任何一种情况下都不适用于目标硬件!程序挂起,我找不到哪里,所以任何建议,看看哪里将是最受欢迎的。

以上来自于百度翻译


      以下为原文

    I have a number of programs which I used MPLAB 8.4 to develop. I have moved to MPLABX and developed new programs successfully.
I have imported a couple of old programs using the Import Legacy projects from the MPLABX Start window, and they compile correctly in MPLABX. I have made no changes whatsoever to the sources, but the compiled code does not work in the target hardware in either case!
The programs hang and I can't find where, so any suggestions as to where to look would be most welcome.

回帖(10)

王焕树

2019-1-23 11:49:39
你可以提到一些重要的细节,比如你在用什么语言(汇编程序)?C?)和你一起工作的照片是什么样的?我猜你是在绝对模式的汇编程序中工作,并且被汇编程序默认的链接模式绊倒了,但是你甚至没有提到“不工作”对你意味着什么。

以上来自于百度翻译


      以下为原文

    You could mention a few vital details, like what language you are working in (Assembler? C?),
and what family of PICs you are working with?
 
My guess is you are working in assembler in absolute mode, and have been tripped up by the assembler defaulting to linking mode, but you didn't even mention what "doesn't work" means to you.
 
举报

李雨晨

2019-1-23 12:06:21
您甚至没有提到使用的PIC或编译器或编译器版本。或者你是否改变了它。要有点冗长,没有什么理由不起作用。为什么你不知道什么是工作,什么是不工作?你能进入你的主要功能吗?

以上来自于百度翻译


      以下为原文

   
 
You did not even mention which PIC or compiler or compiler version you use. Or whether you changed it.  Be a bit more verbose.
There is no general reason why it should not work.  Why can't you tell what is working and what is not working ?
Can you step into your main function or not ?
举报

贾飞小

2019-1-23 12:17:33
你提供的信息越多,就越能找出什么是错的。

以上来自于百度翻译


      以下为原文

    The more info you supply, the more clues to figure out what could be wrong.
举报

何圆

2019-1-23 12:28:34
在MPLAB中,配置位可以在IDE中设置。在MPLABX,你必须把它们设置成代码。(可以在GUI中设置它们,但必须从代码中生成代码以添加到源代码中),如果配置比特不同,那么这可以解释为什么它不工作。

以上来自于百度翻译


      以下为原文

    In MPLAB the configuration bits can be set in the IDE. In MPLABX, you have to set them in code. (you can set them in GUI, but you have to generate code from it to add them to your source code)
If the config bits are different, then this could explain why it does not work.
 
picy2620
举报

更多回帖

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