# flash-eeprom **Repository Path**: chen-bailing/flash-eeprom ## Basic Information - **Project Name**: flash-eeprom - **Description**: 将flash块模拟成eeprom读写,平衡写flash区块。用于小资源mcu的flash读写。 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-11-07 - **Last Updated**: 2022-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # flash-eeprom #### 项目介绍 将flash块模拟成eeprom读写,平衡写flash区块。 #### 软件架构 平衡写实现原理:将要存储的数据和数据的索引分别放置在flash的低端和高端,从两端开始写入数据,当空间不足时,清理重新已经写入的数据,使其紧凑排列。以下是flash中数据排列 |--------------------|、 |--magic number------| |--数据1索引----------| |--数据2索引----------| |--... ----------| |--... ----------| |--数据2-------------| |--数据1-------------| |--------------------| #### 使用说明 1. 一次写入的数据不能超过一个sector的大小 2. 移植时需要根据平台重写port_flash函数族