Uint32_t data using sd_flash_write written many times to the same address, you must perform sd_flash_page_erase before writing it? (English is not good, with Google Translate)
Uint32_t data using sd_flash_write written many times to the same address, you must perform sd_flash_page_erase before writing it? (English is not good, with Google Translate)
Yes, you must erase a flash page before writing to it again. An erased page will have value 0xFFFFFFFF for all words of the page.
You can also use the pstorage module to store data in flash, perhaps more convenient instead of using the sd_flash_write and sd_flash_page_erase directly. A simple pstorage code example is attached to this thread.
Yes, you must erase a flash page before writing to it again. An erased page will have value 0xFFFFFFFF for all words of the page.
You can also use the pstorage module to store data in flash, perhaps more convenient instead of using the sd_flash_write and sd_flash_page_erase directly. A simple pstorage code example is attached to this thread.
Well, I went to learn about pstorage example, thank you for your help.谢谢!