Skip to content

Commit 7c75749

Browse files
tests: drivers: flash: erase_blocks: use overlay to erase last page
To fully test the flash controllers, the test suite should erase the very first pages, and the very last page to find bugs in the extremes. Using an overlay to update the partition layout to extend slot1 to the end makes this possible. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent e1dece7 commit 7c75749

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&flash0 {
8+
partitions {
9+
/delete-node/ storage_partition;
10+
11+
slot1_partition: partition@84000 {
12+
label = "image-1";
13+
reg = <0x00084000 0x7C000>;
14+
};
15+
};
16+
};

tests/drivers/flash/erase_blocks/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ tests:
1212
build_only: true
1313
platform_allow:
1414
- sam_v71_xult/samv71q21
15+
- sam4e_xpro/sam4e16e
1516
- b_u585i_iot02a
1617
- nrf9160dk/nrf9160
1718
- nrf5340dk/nrf5340/cpuapp

0 commit comments

Comments
 (0)