STM32 single-chip microcomputer FLASH memory storage and reading algorithm
A technology of FLASH memory and single-chip microcomputer, which is used in instruments, computing, electrical and digital data processing, etc., can solve the problems of less erasing and writing times, increased PCB area, and increased material cost, so as to increase the lifespan of erasing and writing times and increase the usability. IO port, the effect of reducing the PCB area
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0020] Example: such as Figure 1-2 Shown, the present invention a kind of STM32 one-chip computer FLASH memory storage, reading algorithm.
[0021] The storage algorithm includes the following steps. Step 1. When the STM32 single-chip microcomputer leaves the factory, the chip manufacturer has set all the bits of the FLASH to "1". The address of the first unit is set as the initial address; step 3, before writing data, read the data of each unit sequentially from the first unit in Word word; step 4, if the current unit reads the data as 0xFFFFFFFF, Then stop reading the data of the next unit and store the data to be stored in the current unit. Step 5, if the data of the last unit read is not 0xFFFFFFFF, then erase the data of all units, and store the data to be stored in the first unit;
[0022] The reading algorithm comprises the following steps, step one, setting the first unit address of the memory of the stored data as the initial address; step two, reading the data of ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

