Benchmarks the erase/read/write operations on the flash memory module.
- Parameters
-
chip_num | Chip number to use. |
test_data_address | Address to erase, write, and then read back from. |
test_data_length | Must be <= 512. Otherwise, the verification will fail. |
response_str | |
response_str_len | |
- Returns
- 0 on success. 1 if erase failed. 2 if write failed. 3 if read failed. 4 if verify failed.
This function will erase the flash memory, write test data to it, read it back, and verify the read data. The test data is a sequence of bytes from 0 to 255. The response_str is valid whether or not there are errors.