完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我会解释一下我正在处理的问题,希望有人能帮助我。我一直在寻找类似的问题,但没有发现任何有用的东西。我正尝试用Bootloader功能创建一个应用程序(使用库、中断处理程序、通信……)。这个Bootloader应用程序将独立工作,当需要时,它将加载一个应用程序到PIC闪存并运行它的命令。到目前为止,我正在编程一个虚拟应用程序使用ICD3与链接器SICPT(附加)和一定的偏移量。然后我在不使用任何链接器脚本的情况下编程我的Bootloader(我不想在引导闪存中分配它,它太大了,我想把它留在程序内存中)。我想使用程序flash(0x9d00亿)的开头,用于引导加载程序和从中间向上的哑应用程序(在这个例子中,我使用0x9D9009000)。ICD3让我这样做,当我运行Bootloader应用程序时,它在一开始就崩溃(在一些代码行之后,但不总是在同一个点)。如果我改变了我的Bootloader应用程序在主干后的第一行中跳转到虚拟应用程序,它将跳转到应用程序,它将工作得很好。经过反复试验,我发现它与配置和一些应用程序和B的内存有关。ooTooLoad共享。我尝试使用相同的项目(具有小的变化)对应用程序和Bootloader应用程序进行编程,然后使它们每30秒从一个跳到另一个。这个实验工作很好,这就是为什么我认为这个问题与一些共享内存位置有关。我不知道是否需要引导程序的链接器脚本,如果是的话,我不知道从哪里得到它。关于硬件的信息:PIC32 MX570L。但是我想增加IMP。在PIC32 MZI中使用相同的逻辑将感谢任何帮助。谢谢您,Lander。
以上来自于百度翻译 以下为原文 Hello, I will explain a little the problem I am dealing with, I hope someone can help me. I have search for similar problems but have not found anything usefull. I am trying to create an application (that uses libraries, interruption handlers, communication...) with bootloader functionality as well. This bootloader application will work independently and when required it will load an application to the pic flash memory and run it on command. As far I am programming a dummy application using ICD3 with a linker sricpt (attached) and a certain offset. Then I program my bootloader without using any linker script (I do not want to allocate it in the boot flash memory, it is too big, I would like to leave it in the program memory). I want to use the beginning of the program flash (0x9d000000) for the bootloader application and from the middle up for the dummy application (in this example I used 0x9d009000). The ICD3 lets me do this and when I run the bootloader application it crashes in the very beginning (after some code lines but not always in the same spot). If I change my bootloader application to jump to the dummy application within the first lines after the main it will jump to the application and it will work just fine. After some trial and error I found out that it has something to do with the configuration or some memory that both application and bootloader share. I tried to program both appliation and bootloader application using the same project (with small variations) and then make them jump from one to another every 30 seconds. This experiment works fine, that is why I think the problem is related with some shared memory location. I do not know if I need any linker script for the bootloader application or not, and if so, I do not know where to get it from. Information about the hardware: PIC32mx570l. but I would like to implement the same logic in a PIC32mz I would appreciate any help. Thank you in advance, Lander Attachment(s) app_mx.txt (28.80 KB) - downloaded 22 times |
|
相关推荐
2个回答
|
|
我们也做同样的事情。我们有Bootloader和应用程序,每个都可以独立运行,我们加载的方式是使用HeMax(一个带有MBLAB-X的实用程序)来组合它们,并将它们加载为一个组合图像。命令行是命令确定哪个固件可以写入向量表。
以上来自于百度翻译 以下为原文 We do the same thing. We have bootloader and application projects, and each can run independently, the way we load then is to combine them using hexmate (a utility that comes with MBLAB-X), and load them as one combined image. The command line is hexmate Bootloader.hex +Application.hex -OCombo.hex The order determines which firmware get to write the vector table. |
|
|
|
您有几个选项。在MPlabXProgram中,HexMalk或其他六进制实用程序可加载程序,引导程序,引导程序,主程序读取图像并输出它作为十六进制。MX的引导加载程序可以在AppNoSE中找到,并在和谐中找到。注意,如果使用和声引导加载程序,则不必使用主程序的和声。只是链接器脚本。注意这两个例子都有局限性,但是工作。
以上来自于百度翻译 以下为原文 You have several Options.
The Bootloader for the MX can be found in an appnote, and in Harmony. Note you do not have to use Harmony for the main Program if you use the harmony Bootloader. Just the Linker script. Note Both examples have limitations, but work. |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
771浏览 1评论
659浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
589浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
671浏览 0评论
571浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 04:24 , Processed in 1.208934 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号