完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
设备:PIC32 MX570F512L(512K FLASH),我有一个应用,使用车载闪存实现MSD存储。这个NVM区域也可以从应用程序使用文件系统访问。我使用了和声例子把这个应用程序结合在一起。我希望我的用户能够加载一个HEX文件到这个区域,然后做一个LIFEUPDATE。当完成时,我希望我的应用程序将占用大约200 k的程序空间,编译器优化级别1。应用程序。为了使这项工作看起来我的应用程序需要四分之一的大小来使用LIFEUPTEX-我的想法是正确的还是我错过了什么?- HOMEX与HPLACE/MPLAB的HEX文件是否有优化?-我的512K设备是我正确地考虑这个问题,还是我实际上有1024K在运行时工作?
以上来自于百度翻译 以下为原文 Device: PIC32MX570F512L. (512K Flash) I have an application that implement MSD storage using on-board flash. This NVM region is also accessible from the application using the file system. I have used the hARMony examples to put this application together. I would like my users to be able to load a hex file into this area and then do a liveupdate. When complete I expect that my application will occupy approximately 200 K of program space with compiler optimization level 1. Based on what I'm seeing the Hex file generated is more than double the size of the application. To make this work it would seem that my application would need to be one fourth the size of the flash in order to use liveupdate. - Is my thinking correct or am I missing something? -Is there an optimization of the hex file native to Harmony/MPLAB? - With my 512K device am I thinking about this correctly or do I actually have 1024K to work with while it is running? |
|
相关推荐
1个回答
|
|
十六进制文件是ASCII,这样就可以增加一个等效二进制文件的大小。而且,每一行包含要被编程的地址,加上(FOM存储器)一个校验和,所以有一个额外的开销。你有SD卡吗?你可以将十六进制文件保存到SD然后闪存。或者你可以添加一个外部SPI内存设备RAM或EEPROM来存储HEX文件吗?
以上来自于百度翻译 以下为原文 Hex files are ascii, so that doubles the size of an equivalent binary file. Also, each line contains the address that the line is to be programmed into, plus (fom memory) a checksum, so there is an overhead to add in. Do you have an sd card? You could save the hex file to sd then flash from that. Or could you add an external spi memory device - ram or eeprom - to store the hex file in? |
|
|
|
只有小组成员才能发言,加入小组>>
5362 浏览 9 评论
2093 浏览 8 评论
1992 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3274 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2305 浏览 5 评论
870浏览 1评论
757浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
699浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
750浏览 0评论
644浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 08:32 , Processed in 1.240562 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191