Skip to content

Commit 2d582f4

Browse files
committed
samples: subsys: fs_little fs on stm32u585 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 The application is built/linked/stored in the external NOR flash on slot1 partition. Signed-off-by: Francois Ramu <[email protected]>
1 parent 84aca6d commit 2d582f4

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

samples/subsys/fs/littlefs/boards/b_u585i_iot02a.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
#
66

77
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192
8+
9+
CONFIG_STM32_MEMMAP=y

samples/subsys/fs/littlefs/boards/b_u585i_iot02a.overlay

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
*/
66

77
/ {
8+
chosen {
9+
zephyr,code-partition = &slot1_partition;
10+
};
11+
812
fstab {
913
compatible = "zephyr,fstab";
1014
lfs1: lfs1 {
@@ -21,13 +25,10 @@
2125
};
2226
};
2327

24-
&mx25lm51245 {
28+
&flash0 {
2529
partitions {
26-
/delete-node/ partition;
27-
28-
/* Use the whole flash for the filesystem. */
29-
lfs1_partition: partition@0 {
30-
reg = <0x00000000 DT_SIZE_M(64)>;
30+
lfs1_partition: partition@d0000 {
31+
reg = <0x000d0000 DT_SIZE_K(64)>;
3132
};
3233
};
3334
};

0 commit comments

Comments
 (0)