Skip to content

Commit c54eca3

Browse files
committed
samples: subsys: fs_little fs on stm32h7b3 disco in xip
Gives a sample to execute the little fs on external memory map (XiP) where the lfs1 partition is in internal mcu flash Signed-off-by: Francois Ramu <[email protected]>
1 parent d9a03a8 commit c54eca3

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192
2+
3+
CONFIG_STM32_MEMMAP=y
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2023 OS Systems
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
9+
chosen {
10+
zephyr,code-partition = &slot1_partition;
11+
};
12+
13+
fstab {
14+
compatible = "zephyr,fstab";
15+
lfs1: lfs1 {
16+
compatible = "zephyr,fstab,littlefs";
17+
read-size = <256>;
18+
prog-size = <256>;
19+
cache-size = <4096>;
20+
lookahead-size = <256>;
21+
block-cycles = <512>;
22+
partition = <&lfs1_partition>;
23+
mount-point = "/lfs1";
24+
automount;
25+
};
26+
};
27+
};
28+
29+
&flash0 {
30+
partitions {
31+
lfs1_partition: partition@e0000 {
32+
reg = <0x000e0000 DT_SIZE_K(64)>;
33+
};
34+
};
35+
};

0 commit comments

Comments
 (0)