高级检索

基于MCU的flash存储方法

MCU-based flash storage method

  • 摘要: 传统flash写入,通常在单片机的固定地址处写入故障的真实地址,这样会在同一位置处进行反复写入,时间久了有可能破坏flash的结构。针对此问题,本文不需要在固定地址处反复写入故障的真实地址,每次上电通过读取固定地址处的数据及在整个flash地址中通过标识符判断可写地址。试验结果表明:该方法能正常将读取到的故障数据存入内存中。

     

    Abstract: Traditional flash writing typically involves writing the actual fault address at a fixed location in the microcontroller"s flash memory. This leads to repeated writes at the same spot, which may damage the flash structure over time. To address this issue, this paper proposes a method that eliminates the need for repeatedly writing the actual fault address at a fixed location. Instead, upon each power-up, the system reads data from the fixed address and determines a writable address within the entire flash memory space by identifying a specific marker. Experimental results demonstrate that this method successfully stores the retrieved fault data in memory.

     

/

返回文章
返回