完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在考虑将我的应用程序的一些校准数据存储到FLASH存储器中,因为我的EEPROM空间非常有价值,而且我无法保留任何数据。校准数据只能写入一次(在设备第一次上电时),然后每次上电时都会读取。 做这种事情的好方法是什么?我可以“保留”一些FLASH,以便编译器不会将该特定位置用于主程序吗? 谢谢 以上来自于谷歌翻译 以下为原文 Hello, I'm looking into storing some calibration data for my application into FLASH memory since my EEPROM space is very valuable and I cannot spare any of it. The cal data would only be written once (upon the first powerup of the device) and from then on would be read everytime on powerup. What is a good way of doing this sort of thing? Can I ''reserve'' some FLASH so that the compiler doesn't use that particular location(s) for the main program? Thanks |
|
相关推荐
2个回答
|
|
是的,您可以为FLASH区域中的校准数据存储“预留”内存。您应该事先知道校准数据结构的大小,我建议保留32K闪存区域底部的存储器地址(32K校准数据大小)。您应该确保编译的代码不超过32K校准数据大小。编译后的代码按顺序存储,因此它不会使用最后的字节,除非编译的代码足够大以利用它。
以上来自于谷歌翻译 以下为原文 Yes, you can 'reserve' memory for your calibration data storage in the FLASH area. You should know in advance the size of your calibration data structure and I recommend to reserve the memory address at the bottom of the 32K flash area (32K-Calibration Data Size). You should make sure that your compiled code does not exceed 32K-Calibration Data Size. The compiled code is stored in sequence, therefore it does not utilize the last bytes unless your compiled code gets big enough to utilize it. |
|
|
|
嗨,
查看外设库,那里有一个例子。 马丁。 以上来自于谷歌翻译 以下为原文 Hi, Check out the peripheral libraries, there is an example in there. Martin. |
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
935 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
986 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3154 浏览 1 评论
3415 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2012 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
166浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
183浏览 5评论
206浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
252浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
193浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-18 06:39 , Processed in 0.871054 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191