diff --git a/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.conf b/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.conf index 8ff854c0..d2781093 100644 --- a/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.conf +++ b/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.conf @@ -5,3 +5,8 @@ CONFIG_STM32_MEMMAP=y CONFIG_OCRE_MERGE_HEX=y + +# PSRAM +CONFIG_MEMC=y +CONFIG_MEMC_STM32_OSPI_PSRAM=y +CONFIG_SHARED_MULTI_HEAP=y diff --git a/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.overlay b/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.overlay index 5ace830c..b43c3c13 100644 --- a/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.overlay +++ b/src/samples/supervisor/zephyr/boards/b_u585i_iot02a.overlay @@ -115,16 +115,29 @@ }; }; -// 64MB external flash -&mx25lm51245 { // -el "/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/ExternalLoader/MX25LM51245G_STM32U585I-IOT02A.stldr" - reg = <0x70000000 DT_SIZE_M(64)>; - partitions { - /delete-node/ partition; - - /* Use the whole flash for the filesystem. */ - storage_partition: partition@0 { - label = "user_data"; - reg = <0x00000000 DT_SIZE_M(64)>; +&mx25lm51245 { + reg = <0>; + size = ; /* 512 Megabits */ + #address-cells = <1>; + #size-cells = <1>; + + ranges = <0x0 0x70000000 DT_SIZE_M(64)>; /* Ext Flash mem-mapped to 0x70000000 */ + + ext_flash: ext-flash@0 { + compatible = "soc-nv-flash"; + reg = <0x0 DT_SIZE_M(64)>; + write-block-size = <1>; + erase-block-size = ; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* Use the first partition from flash. */ + storage_partition: partition@0 { + reg = <0x0 DT_SIZE_M(16)>; + }; }; }; };