tests: flash: erase_blocks: Add support of flash program size > 128
Fix failed test for platforms with flash program size > 128 bytes. Update supported program size to 512 bytes, the highest supported program size by Zephyr platforms. Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
parent
12435442d2
commit
7a1c286f5c
1 changed files with 4 additions and 4 deletions
|
@ -38,13 +38,13 @@ LOG_MODULE_REGISTER(test_flash);
|
|||
DT_MTD_FROM_FIXED_PARTITION(TEST_FLASH_PART_NODE)
|
||||
|
||||
static const struct device *flash_controller = DEVICE_DT_GET(TEST_FLASH_CONTROLLER_NODE);
|
||||
static uint8_t test_write_block[128];
|
||||
static uint8_t test_read_block[128];
|
||||
static uint8_t test_write_block[512];
|
||||
static uint8_t test_read_block[512];
|
||||
|
||||
static void test_flash_fill_test_write_block(void)
|
||||
{
|
||||
for (uint8_t i = 0; i < sizeof(test_write_block); i++) {
|
||||
test_write_block[i] = i;
|
||||
for (size_t i = 0; i < sizeof(test_write_block); i++) {
|
||||
test_write_block[i] = (uint8_t)i;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue