-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVS sample on STM32F4 fails even if the dts definition is correct #24357
Comments
I also see the error with nucleo_g431 but nucleo_l4r5zi is OK |
actually for g431rb, error is : |
The definition for the g431rb does not allow 3 sectors to be used (only 2 sectors are defined as storage). Either increase the definition to 3 sectors or modify the nvs sample to use only 2 sectors. |
I have been looking at the changelog to find out what has changed between v2.2.0 and current-master but I can't find anything that explains why the flash-driver gives this -5 error. |
@Laczen Thanks for your comment, which makes this sample test OK on G431, if I set the fs.sector_count = 2U; in the sample main.
I can also make the sample pass with 3 sectors, but I get a compil warning : unit address and first address in 'reg' (0x18000) don't match for /soc/flash-controller@40022000/flash@8000000/partitions/partition@1f000 |
@akofoed, can you rebase on top of latest master. There had been a few hickups on stm32 flash drivers few weeks ago. You might face an issue already solved. You can check |
The sector size should always be a multiple of the pagesize. |
@Laczen After updating master just now it works. This is NVS on current master running on nucleo_f429zi and working:
Can we close this or do you need me to do more testing? |
I was testing the jedec,spi-nor version and my code says it cannot find the driver. So I tried the sample in samples/drivers/spi_flash/ and it too cannot find the driver. I have tested this on both current master and v2.2.0. To see the error you don't need the spi-nor flash attached to your board. It is the spi-nor driver that it cannot find.
Yes, I am using spi4 (gpioE11->E14) but I get the same error as in the sample that the driver cannot be found.
Output on v2.2.0:
Am I missing something or can this be confirmed? |
@akofoed, make this a separate question and/or bug report. People will not find this problem in the current issue. As the present issue seems to be solved you can close it. |
I can confirm that this is working now. Closing issue. |
Describe the bug
Following @Laczen 's request and our investigation in #24237, tests on the STM32 show that the NVS driver in the current master fails even if the DTS is correct. The NVS driver works on zephyr-v2.2.0. I have no idea as to why.
To Reproduce
Expected behavior
Switch to zephyr-v2.2.0 with the above DTS still running on the nucleo_f429zi and observe the following output:
Impact
NVS not working on STM32F4
Screenshots or console output
N/A
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: