完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
您好,我正在研究构建一个引导加载程序,它在两个运行图像之间做一个乒乓。如果图像一个正在运行,我们做一个固件升级到图像二,然后运行图像二。这样,我们总是在设备上有一个工作图像。我似乎找不到在链接器脚本中创建多个程序段的方法。我的计划是有5个部分的内存:(我不能附加图像)HTTPS://imgur.COM/A/DH9HII希望使用链接器脚本来定义这些部分,但我看不出这是如何做到的。我当前的引导加载程序有一个IFDEF,告诉它要使用多少程序内存。我的备份计划是使用完整的程序空间,但是在Boot.h文件中截取它。强制应用程序检查特定的分区边界。在开始硬编码地址之前,有没有办法在PIC24FJ128GB202上定义多个程序段?
以上来自于百度翻译 以下为原文 Hello, I am looking at building a bootloader which does a ping pong between two running images. If image one is running, we do a firmware upgrade to image two, then run image two. This way we always have a working image on the device. I can not seem to find a way to create multiple program sections in the linker script. My plan is to have 5 sections of memory: (I can not attach images) https://imgur.com/a/dH9hI I want to use the linker script to define these sections but I can not see how this can be done. My current bootloader has an ifdef telling it how much program memory to use. #ifdef __BOOTLOADER program (xr) : ORIGIN = 0x400, LENGTH = 0x1400 #else program (xr) : ORIGIN = 0x192C, LENGTH = 0x13ECA #endif My backup plan is to use the full program space but chop it up in a boot.h file. Forcing the application to check for specific section boundaries. Before I start hard coding addresses, is there a way to define multiple program sections on a PIC24FJ128GB202? |
|
相关推荐
2个回答
|
|
|
|
|
|
|
|
|
到目前为止,我只看到了特定的PIC24和一些具有不同程序段的DSPIC33。
以上来自于百度翻译 以下为原文 So far I have only seen specific pic24's and some dspic33's that can have various program sections. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1122浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 23:56 , Processed in 0.655967 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1464