samples: fs: littlefs: Add stm32l562_dk and b_u585i_iot02a

Add configs and overlays to run boards stm32l562_dk and b_u585i_iot02a.

Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>
This commit is contained in:
Gerson Fernando Budke 2023-01-05 15:16:01 +01:00 committed by Carles Cufí
commit 204758b5d9
4 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#
# Copyright (c) 2023 OS Systems
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2023 OS Systems
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
read-size = <256>;
prog-size = <256>;
cache-size = <4096>;
lookahead-size = <256>;
block-cycles = <512>;
partition = <&lfs1_partition>;
mount-point = "/lfs1";
automount;
};
};
};
&mx25lm51245 {
partitions {
/delete-node/ partition;
/* Use the whole flash for the filesystem. */
lfs1_partition: partition@0 {
reg = <0x00000000 DT_SIZE_M(64)>;
};
};
};

View file

@ -0,0 +1,7 @@
#
# Copyright (c) 2023 OS Systems
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2023 OS Systems
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
read-size = <256>;
prog-size = <256>;
cache-size = <4096>;
lookahead-size = <256>;
block-cycles = <512>;
partition = <&lfs1_partition>;
mount-point = "/lfs1";
automount;
};
};
};
&mx25lm51245 {
partitions {
/delete-node/ partition;
/* Use the whole flash for the filesystem. */
lfs1_partition: partition@0 {
reg = <0x00000000 DT_SIZE_M(64)>;
};
};
};