-
Hi everyone, I'm running into issues with storage on the same54_xpro eval board. In my personal program I require to have some data be stored on the board through power cycles and what I find is that after I updated from zephyr v3.5 to v3.7, nvs storage is failing to persist between power cycles. When I run this program As you can see, the program does not find the data that was stored in the initial run continuing to "store" the info and rebooting the eval board expecting to see it on the next run. I noticed there was a commit in v3.6 that added some changes This pr . This is the only pr in recent history between v3.5 and v3.7 that I can point to that caused this behavior but I have not fully confirmed this on my end. I just know that if I run the sample nvs program, it fails on the eval board but if I run the test suite for flash/common, it passes. I hope someone can provide guidance/clarity on this matter. Thank you for any assistance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 24 replies
-
Hi @CarloATX, the log shows warnings that it is trying to access flash outside of the available flash. This can only be due to a length error, it would be good to slightly modify the warn message in flash_sam0.c at line 106 to also report the length that was requested. |
Beta Was this translation helpful? Give feedback.
That is strange, in a previous log it was showing a write block size of 8, now 1. According to the flash driver Kconfig it should default to 1 for certain devices. It should not change between compiles.
You can disable the option by setting CONFIG_SOC_FLASH_SAM0_EMULATE_BYTE_PAGES=n.