-
Notifications
You must be signed in to change notification settings - Fork 3k
Storage: Use internal flash for KVStore always if default config #12645
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
Conversation
#if COMPONENT_FLASHIAP | ||
internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS; | ||
internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE; | ||
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this configuration isn't even possible without FLASHIAP - please see TDB_External documentation. What I'm saying is that the TDB_External option should be dropped from default configurations. Only possibility would be to use TDB_External_no_RBP configuration (which means there isn't Root of Trust neither)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed @VeijoPesonen please check.
00f14b7
to
c62df4c
Compare
Pull request has been modified.
@mtomczykmobica, thank you for your changes. |
#if COMPONENT_FLASHIAP | ||
internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS; | ||
internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE; | ||
#elif COMPONENT_SD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually we should touch this tests case. We of course want to test all combinations. We need to remember that there is a distinction between what are possible default configurations and what configurations we do test.
#if COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH | ||
#if COMPONENT_FLASHIAP | ||
return _storage_config_TDB_INTERNAL(); | ||
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed. If COMPONENT_FLASHIAP is not defined compiler error should be removed.
return _storage_config_TDB_INTERNAL(); | ||
#elif COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH | ||
return _storage_config_TDB_EXTERNAL(); | ||
#elif COMPONENT_SD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed.
…ion. TDB_INTERNAL is always for first choose.
c62df4c
to
6a21dfa
Compare
From ticket: By default, the KVStore should go to internal flash. No other defaults should exist. KVStorore should go to external device ONLY if requested by configuration values. So you can simplify the code a lot." Changes done. |
@VeijoPesonen Please check also.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
CI started |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
CI, failed first in PR: #12528 |
@0xc0170 the bot doesn't care about the test results? |
Rerun test on master and have the same error: |
@jamesbeyond @VeliMattiLahtela Can you review ^^ ? Looks like dynamic test is failing in PRs today |
As it was aborted, I restarted it to get the failure |
@0xc0170 Now CI works, thank you Martin. |
…ion. TDB_INTERNAL is always for first choose.
Summary of changes
Chenged order of choosed KVStore to TDB_INTERNAL for default configuration.
Updated tests and documentation.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@SeppoTakalo
@VeijoPesonen
@0xc0170