-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: fs: littlefs: add sample on stm32h747i-disco board
This adds the required conf and dts overlays required for the application on stm32h747i-disco board. Also moved CONFIG_SDMMC_STM32_HWFC option from prj_blk.conf to nucleo_h743zi_blk.conf as that is STM specific option. Build the application as west build -p always -b stm32h747i_disco_m7 \ samples/subsys/fs/littlefs/ -- \ -DOVERLAY_CONFIG=boards/stm32h747i_disco_m7.conf -DCONF_FILE=prj_blk.conf Signed-off-by: Murali Karicheri <[email protected]>
- Loading branch information
1 parent
396e1ce
commit b235372
Showing
6 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_SDMMC_STM32_HWFC=y | ||
CONFIG_FS_LITTLEFS_FC_HEAP_SIZE=2048 | ||
CONFIG_MAIN_STACK_SIZE=2048 |
38 changes: 38 additions & 0 deletions
38
samples/subsys/fs/littlefs/boards/stm32h747i_disco_m7.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2023 S&C Electric Company <www.sandc.com> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/delete-node/ &storage_partition; | ||
|
||
/ { | ||
fstab { | ||
compatible = "zephyr,fstab"; | ||
lfs1: lfs1 { | ||
compatible = "zephyr,fstab,littlefs"; | ||
read-size = <512>; | ||
prog-size = <512>; | ||
cache-size = <512>; | ||
lookahead-size = <4096>; | ||
block-cycles = <512>; | ||
partition = <&storage_partition>; | ||
mount-point = "/lfsemmc"; | ||
}; | ||
}; | ||
}; | ||
|
||
&sdmmc1 { | ||
sdmmc { | ||
compatible = "zephyr,sdmmc-disk"; | ||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
storage_partition: partition@0 { | ||
label = "storage"; | ||
reg = <0x0 DT_SIZE_M(2048)>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters