共2条
1/1 1 跳转至页
INFO,FLASH 关于INFO FLASH的使用

问
版主:我用f149片子,资料上说它有256个字节的INFO FLASH,那么我是否可以拿来保存一些保存数据,当再次上电时我能读出这些数据呢?请问在IAR WORKBENCH里怎么定义呢?谢谢!
答 1:
you CAN use a assembly lanuage, the examples is as belows:
ORG 01000H
DB "MSP430 INFORMATION FLASH TESTIN"
DB "COMPLIER"
DB __DATE__
DB __TIME__
END
adding the file to your project , after compiling and linking,and then download into information flash with application code together. 答 2: 那么请问C语言有什么定义的方法,还是用写FLASH功能? 答 3: 引用: 答 4: For factory parameters use that method mentioned just. Only using flash routine to handle flash area while access random data.
In C language presents as follows:
const unsigned char[] 0x1000={"1234566"};
Because it never is invoked, and will be igored by compiler. maybe this is a bug of compiler. 答 5: AQ430下怎么不行呢? 答 6: 不管是AQ430还是IAR EW430都可以对FLAHS区进行操作,包括INFO FLASH
ORG 01000H
DB "MSP430 INFORMATION FLASH TESTIN"
DB "COMPLIER"
DB __DATE__
DB __TIME__
END
adding the file to your project , after compiling and linking,and then download into information flash with application code together. 答 2: 那么请问C语言有什么定义的方法,还是用写FLASH功能? 答 3: 引用: 答 4: For factory parameters use that method mentioned just. Only using flash routine to handle flash area while access random data.
In C language presents as follows:
const unsigned char[] 0x1000={"1234566"};
Because it never is invoked, and will be igored by compiler. maybe this is a bug of compiler. 答 5: AQ430下怎么不行呢? 答 6: 不管是AQ430还是IAR EW430都可以对FLAHS区进行操作,包括INFO FLASH
共2条
1/1 1 跳转至页
回复
打赏帖 | |
---|---|
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】mcxa156使用低功耗定时器适配硬件RTC框架被打赏26分 | |
【STM32F769】AI之与本地deepseek对接被打赏50分 | |
Buck电路工作在CCM模式下电感电流的计算公式是什么?被打赏5分 | |
buck电路工作原理被打赏5分 | |
基于MSPM0L1306的MODBUS-RTU协议通讯实验被打赏100分 | |
我想要一部加热台+多合一调试工具被打赏18分 | |
每周了解几个硬件知识+485硬件知识分享被打赏10分 |