大家好,我已经完成了一个老项目,并对代码做了小小的修改。我的前任存档了所有的代码(然后是一些代码),我终于能够确定项目需要使用什么文件。我所面临的问题是,我不能重新创建.HEX文件,它与我们当前在生产中使用的文件相匹配。我完全期望像文件头和校验和这样的东西是不同的,但是我所说的几乎所有的代码看起来都不同。我正在寻找一些信息,这些信息将帮助我找到最初使用的工具的正确组合,这样我就可以有一个基础来进行STE。P关闭,知道工具可以产生一个匹配的.HEX文件。一些我已经知道的事情:这个项目是在2005三月完成的。-MPLAB 7.1和MPLAB 6.5以及C18(3.30?)我已经尝试安装MPLAB 7.1并使用它来构建没有成功。-我还没有能够成功地安装MPLAB 6.5,并在PC上运行MPLAB。我已经重新创建了我在各种文件中看到的文本的路径。-我发现了一个包含配置位设置(据称)的独立文档,我在包含必要的γ语用语句的.c文件中添加.-我从头开始,在MPLAB 8.92中构建了这个项目,并比较了存档和新构建之间的.LST文件。在新的.LST文件中不存在一些包含在原件中的项目。这些是对ASM和C计时器功能和延迟函数和C018IZ的引用。C时序在这个应用程序中是至关重要的,所以这些文件在“新”版本中的缺失使我感到紧张。我的一些问题是:我如何知道MPLAB的哪一个版本被用来构建H?EX文件?我怎么知道使用C18的哪一个版本?我认为归档中包含的C18是正确的,但是其他发现使我相信任何事情都是偶然的。-最后,甚至可以拨回时间并重新创建一个匹配的十六进制文件吗?(我已经用其他制造商的开发工具成功地完成了这一点),因为我意识到它的到来:一个重要的原因是,如果我只是在MPLAB 8或MPLABX中重新构建这个项目,那么我们就必须在产品之前进行几个月的测试。值得释放。很明显,这带来了相当大的费用。我希望我已经把它放在正确的
论坛上。谢谢你的输入和反馈。我希望外面的人能找到我的答案,最好的,
以上来自于百度翻译
以下为原文
Hello,
I've been tasked with reviving an old project and making a very small change to the code. My predecessor archived all the code (and then some) and I've finally been able to determine what files need to be used for the project. The problem that I'm having is that I can not recreate .hex file that matches what we currently use in produc
tion. I fully expect the things like the header to the file and the checksum to be different, but I'm talking about almost all of the code appears differently.
I'm looking for information that will help me find the right combination of tools that were used originally so I can have a base from which to step off, knowing that the tools can produce a matching .hex file.
Some things that I already know:
- The project was done in March of 2005.
- MPLAB 7.1 and MPLAB 6.5 along with C18 (3.30?) were archived with the project.
- I've tried installing the MPLAB 7.1 and using it to build without success.
- I have not yet been able to successfully install MPLAB 6.5 and have MPLAB run on a PC.
- I've recreated the paths that I've seen in various files down to the case of the text.
- I discovered a separate document that contained the configuration bit settings (purportedly) and I added in a .c file containing the necessary #pragma statements.
- I built the project, from scratch, in MPLAB 8.92 and compared the .lst files between the archive and the new build. There are several included items in the original that don't exist in the new .lst file. Namely these are references to .asm and .c timer functions and delay functions and the c018iz.c. Timing would be critical in this application so the absence of these files in the 'new' version makes me nervous.
Some of my questions are:
- How can I tell which version of MPLAB was used to build the .hex file?
- How can I tell which version of C18 was used? I assumed that the C18 included in the archive was the right one, but other discoveries lead me to believe that anything is open to chance.
- Finally, is it even possible to dial back time and recreate a matching .hex file? (I have done this successfully with other manufacturer's development tools)
One answer since I sense it coming:
- The reason that this is so important is that if I just build the project fresh in MPLAB 8 or even MPLABX, then months of testing will have to be done on the product before we can deem it worthy to release. This, obviously, carries with it considerable expense.
I hope that I've posted this in the right forum.
Thank you in advance for your input and feedback. I'm hoping that someone out there has some answers that will get me on my way.
Best,
0