-
Notifications
You must be signed in to change notification settings - Fork 7.5k
tests/subsys/settings/fcb/base64 fails when write-block-size is 8 #13567
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
Comments
Tbh, I'm not sure setting wbs to 8 in reel_board is supposed to work. |
Maybe it is another artifact related to #12967. |
Patch #13625 fixes this issue - can you test it? |
This bug can be closed - @erwango Pleas confirm or deny. |
@nvlsianpu, txs. I'll test it as soon as I have some time (this week for sure). |
I had a test and it seems I have a configuration issue:
I have CONFIG_SETTINGS_FCB_FLASH_AREA=4 Not sure it could be the issue. i'll try to spend more time on it tomorrow. |
I this case exact value you have shouldn't make any difference. However CONFIG_SETTINGS_FCB_FLASH_AREA became a orphan (need to use only its default value see #13388 |
I just realized that you have been taring to run test with target modification:
I this case unaligned test shouldn't pass as it test 4 B alignment. This test suite was adapted to run on nrf52 targets with 1 B alignment requirement. In this circumstance, if all other tests pass - this mean that you already used unaligned access with many successes. |
Target for test is pointed always in testcase.yaml file |
Indeed, 8B might not even be supposed to work. No problem.
In that case, how can I check that FCB is actually working with other zephyr flash drivers? |
settings fcb-backend module is supposed to work with 8 B write-block-size. I relay want to switch testing this to qemu target: |
ok, txs, will have a test right now. |
And is there any link between supported write block size and raw vs base64 setting tests? |
No, both works well. Currently I see no gain in using base64 - I would deprecated it. |
Ok, txs. Btw, I managed to make it pass with the suggested patch and applying overlay, txs! |
@erwango can we close this? @nvlsianpu maybe we should make this test only run on platforms where it is supposed to run. |
@nashif, I'm closing it, thanks @nvlsianpu for the support. Regarding:
This is a subsystem test, so ideally I don't think it should be restricted to few platforms. Though, since it is not generic enough yet, ok to limit but at least it should be stated somewhere what are the expectations/limitations vs flash driver. Or better, filter based on flash driver/ip properties. |
Tests success depends on what flash driver support in run-time I can add initial test for assert that - so any user will see the real the reason of failure (and only this - so no misleading messages). Some of test are checking flash footprint pattern - how them looks like depends on write-block-size, that why test targets are limited for now. What I really want to do is to test this with qemu and flash driver simulator - Thanks to that it will be possible to verify settings on zephyr CI, with all flash alignment we need. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
tests/subsys/settings/fcb/base64 on SoC with flash write-block-size set to 8.
I get same failed result with disco_l475_iot1 (wbs 8) and reel_board (with flash driver modified with write_block_size = 8).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
fcb/base64 should work with all flash drivers with write-block-size <= 8.
Impact
Can't use fcb based subystems (settings, ...) with system with write-block-size = 8.
Screenshots or console output
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: