CTS-SAT-1-OBC-Firmware
|
#include <stdint.h>
Go to the source code of this file.
Functions | |
uint8_t | FLASH_benchmark_erase_write_read (uint8_t chip_num, uint32_t test_data_address, uint16_t test_data_length, char *response_str, uint16_t response_str_len) |
Benchmarks the erase/read/write operations on the flash memory module. | |
uint8_t FLASH_benchmark_erase_write_read | ( | uint8_t | chip_num, |
uint32_t | test_data_address, | ||
uint16_t | test_data_length, | ||
char * | response_str, | ||
uint16_t | response_str_len ) |
Benchmarks the erase/read/write operations on the flash memory module.
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 |
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.