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:
parent
79184d9dde
commit
204758b5d9
4 changed files with 80 additions and 0 deletions
7
samples/subsys/fs/littlefs/boards/b_u585i_iot02a.conf
Normal file
7
samples/subsys/fs/littlefs/boards/b_u585i_iot02a.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# Copyright (c) 2023 OS Systems
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192
|
33
samples/subsys/fs/littlefs/boards/b_u585i_iot02a.overlay
Normal file
33
samples/subsys/fs/littlefs/boards/b_u585i_iot02a.overlay
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
7
samples/subsys/fs/littlefs/boards/stm32l562e_dk.conf
Normal file
7
samples/subsys/fs/littlefs/boards/stm32l562e_dk.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
#
|
||||
# Copyright (c) 2023 OS Systems
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=8192
|
33
samples/subsys/fs/littlefs/boards/stm32l562e_dk.overlay
Normal file
33
samples/subsys/fs/littlefs/boards/stm32l562e_dk.overlay
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue