flash_prog_erase
This example is a demo project to P/E (Program/Erase) eFlash.
The execute-bin will occupy front area of eFlash, as the result P/E the other area of eFlash
There are 3-case in this example
- word data
- half-word data
- byte data
The execute-flow in every case:
- Erase eFalsh and verify data is
0xFFor not - Program word/hword/byte data to eFlash and verify the result value of eFlash
It also supports fix/random pattern
User should modify
CONFIG_USE_RAND_DATAas below// at main.c /** * Use random data as pattern */ #define CONFIG_USE_RAND_DATA 1
Log
Use serial port with baudrate 115200, 8bit, no parity check.
This is a 13:28:12
This is eFlash Erase/Program/Read (0x00002800 ~ 0x00008000) example
## P/E with word value
done~
## P/E with half-word value
done~
## P/E with byte value
done~
## P/E with data stream (32-bits valule and 4-aling length)
done~
done ~~~~~~