Macros | |
#define | FLASH_ERASED 0xffff |
Variables | |
uint16_t | buffer [FLASH_PAGE_SIZE/2] |
Memory buffer to use during testing. More... | |
#define FLASH_ERASED 0xffff |
|
static |
Fill page buffer with a sequence of numbers.
The function fills the flash page buffer with a sequence of number, and stores the same numbers in a buffer in SRAM. The buffer is used to verify that the flash has been programmed correctly. A seed number is used to ensure that different pages always will be different.
buffer | SRAM buffer to store values written to the flash page buffer |
seed | Offset number to use on stored values. |
References FLASH_PAGE_SIZE, and nvm_flash_load_word_to_buffer().
Referenced by test_atomic_write_app_table(), test_atomic_write_boot(), test_split_write_app_table(), and test_split_write_boot().
|
static |
Check if an flash page is equal to a flash page buffer in SRAM.
References FLASH_PAGE_SIZE, and nvm_flash_read_word().
Referenced by test_atomic_write_app_table(), test_atomic_write_boot(), test_split_write_app_table(), and test_split_write_boot().
int main | ( | void | ) |
|
static |
Set all values of a flash page buffer in SRAM to a given value.
References FLASH_PAGE_SIZE.
Referenced by test_atomic_write_app_table(), test_atomic_write_boot(), test_split_write_app_table(), and test_split_write_boot().
|
static |
Test nvm_flash_load_word_to_buffer() and nvm_flash_atomic_write_app_page().
Test procedure:
References buffer, ERR_BAD_DATA, fill_flash_page_buffer(), FLASH_ERASED, FLASH_PAGE_SIZE, is_flash_page_equal_to_buffer(), nvm_flash_atomic_write_app_page(), set_buffer(), and STATUS_OK.
Referenced by main().
|
static |
Test nvm_flash_load_word_to_buffer() and nvm_flash_atomic_write_boot_page().
Test procedure:
References buffer, ERR_BAD_DATA, fill_flash_page_buffer(), FLASH_ERASED, FLASH_PAGE_SIZE, is_flash_page_equal_to_buffer(), nvm_flash_atomic_write_boot_page(), set_buffer(), and STATUS_OK.
Referenced by main().
|
static |
Test nvm_flash_load_word_to_buffer(), nvm_flash_erase_app_page() and nvm_flash_split_write_app_page().
Test procedure:
References buffer, ERR_BAD_DATA, fill_flash_page_buffer(), FLASH_ERASED, FLASH_PAGE_SIZE, is_flash_page_equal_to_buffer(), nvm_flash_erase_app_page(), nvm_flash_split_write_app_page(), set_buffer(), and STATUS_OK.
Referenced by main().
|
static |
Test nvm_flash_load_word_to_buffer(), nvm_flash_erase_boot_page() and nvm_flash_split_write_boot_page().
Test procedure:
References buffer, ERR_BAD_DATA, fill_flash_page_buffer(), FLASH_ERASED, FLASH_PAGE_SIZE, is_flash_page_equal_to_buffer(), nvm_flash_erase_boot_page(), nvm_flash_split_write_boot_page(), set_buffer(), and STATUS_OK.
Referenced by main().
uint16_t buffer[FLASH_PAGE_SIZE/2] |
Memory buffer to use during testing.
Referenced by test_atomic_write_app_table(), test_atomic_write_boot(), test_split_write_app_table(), and test_split_write_boot().