Skip to content

Commit 4dd9df1

Browse files
committed
samples : subsys : littlefs: Add overlay files for Pico and Pico_w
Add a 16 KB 'storage' partition at the end of the Pico flash. That size is sufficient to hold the two test files created by this sample. Signed-off-by: Andreas Wolf <awolf002@gmail.com>
1 parent 6857dca commit 4dd9df1

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2025 Andreas Wolf <awolf002@gmail.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &code_partition;
8+
9+
&flash0 {
10+
partitions {
11+
compatible = "fixed-partitions";
12+
#address-cells = <1>;
13+
#size-cells = <1>;
14+
15+
code_partition: partition@100 {
16+
label = "code-partition";
17+
reg = <0x100 (DT_SIZE_M(2) - 0x100 - DT_SIZE_K(16))>;
18+
read-only;
19+
};
20+
21+
storage_partition: storage_partition@1fc000 {
22+
label = "storage-partition";
23+
reg = <(DT_SIZE_M(2) - DT_SIZE_K(16)) (DT_SIZE_K(16))>;
24+
};
25+
};
26+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Andreas Wolf <awolf002@gmail.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include "rpi_pico.overlay"

0 commit comments

Comments
 (0)