Testing soc nv flash driver on STM32H747i-disco using nvs subsystem sample #64880
Unanswered
mkaricheri
asked this question in
General
Replies: 3 comments 3 replies
-
My debug logs are part of the commit message |
Beta Was this translation helpful? Give feedback.
2 replies
-
@mkaricheri NVS does not support a sector size of 128kB. On top of this your dts definition would only have one sector and there would not be persistent storage. |
Beta Was this translation helpful? Give feedback.
1 reply
-
also reported by #19895 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Experts,
I need to define multiple partitions (assume requires flash_map enabled) on the SoC Flash on STM32H747i-disco. STM32 has a flash controller driver and that is what I want to test first. So I tried building samples/subsys/fs/nvs and I get a flash init error because of invalid sector size. I have put debug prints and found driver is reporting sector size of 128KiB (131072) which I think is correct. By nvs code is complaining it sees 0 for sector size ([00:00:00.082,000] fs_nvs: Invalid sector size 0). Am I missing something? I have made the changes to DTS here. b732cb9
Could you tell me what is missing in my DTS?
This is supported on some of the STM boards namely nucleo_* here https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/nvs/boards
My end goal is to enable flash_map on SoC internal flash and have application write images or configuration data to the partition. Something similar to https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/soc_flash_nrf using flash API
So any help would be appreciated.
Murali
Beta Was this translation helpful? Give feedback.
All reactions