The OP
Published on 2020-8-21 16:07
Only look at the author
This post is from stm32/stm8
Latest reply
FLASH must be erased before new data can be written into it!!!
AT45DB041 has a command to write data directly to the main memory page through the buffer (with or without self-erasing). The written area has been erased and can be written directly; but if data has been written before, it must be erased before writing data. Before erasing, in order to protect the data in other areas of the page, it is necessary to read the data of this page into the cache area first, then write the new data into the cache area, then erase the main memory page, and finally return the data in the cache area to the main memory page.
Let's first understand the principle of FLASH memory.
Details
Published on 2020-8-22 09:40
| ||
|
||
foxpro2005
Currently offline
|
2
Published on 2020-8-21 21:44
Only look at the author
This post is from stm32/stm8
Comments | |
|
||
|
This post is from stm32/stm8
| ||
|
||
|
foxpro2005
Currently offline
|
4
Published on 2020-8-22 09:40
Only look at the author
This post is from stm32/stm8
Comments
Well, I roughly understand. That is, each time you write, you write by page. In order to avoid erasing the already written part, you first read it into the buffer, reprogram the page in the buffer, and then write it to the main memory. But it is best to write more data at a time without repeated erasing.
Details
Published on 2020-8-22 14:27
| |
|
||
|
This post is from stm32/stm8
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190