-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32F303RE: Activate FLASHIAP #10493
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
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.
LGTM, we need this to next Mbed OS 5.12.x patch release, please!
@adbridge
@LMESTM, thank you for your changes. |
@0xc0170 - merge time! |
@JanneKiiskila I think more like CI time first... |
CI started |
Hi FLASHIAP tests becomes OK with NUCLEO_F303RE. But FLASHIAP enables also device_key tests, which are FAIL... @JanneKiiskila could you check this ? mbed test -t ARM -m NUCLEO_F303RE -v -n features-device_key-tests-device_key-functionality |
@davidsaada - could you give it a look please? |
@JanneKiiskila @LMESTM I don't have the board here, nor see the failure log, so it will be hard for me to tell why this fails.
This may give more clues regarding the failure. |
@jeromecoutant Is the "KVMap init issue?" question based on a speculation or on log results you see? |
This is the first debug step :-)
|
Thanks @jeromecoutant. It seems like there's a problem with using the FlashIAP block device (test fails on getting the internal block device).
|
@jeromecoutant BTW, it could well be that the internal flash of this board is small, not enough for the allocation of KVStore, hence the failure in device key test. Do you have the sector map of this board? |
@davidsaada - whare are the space requirements? It has the same amount of flash as Nucleo F411RE, but in a more sensible approach (2 kilobyte blocks, 256 pieces of them). |
@JanneKiiskila Took it offline with @jeromecoutant. Seems like it's not related to space requirements, but to something else we're trying to figure out now. |
I see that this device is missing "device_has": [ "TRNG" ]. DeviceKey needs TRNG in order to work correctly or any other support which enables the MBEDTLS_ENTROPY_NV_SEED macro. |
No, it does not have TRNG. It is similar to Nucleo F411, we need to inject the entropy externally. |
and are you injecting it from outside? |
@JanneKiiskila I don't think it is related to the TRNG and injection of the device key. The test should create a dummy ROT if there is no TRNG support. I have to run now but I will be happy to help debugging the issue tomorrow morning. |
Yes, it is available in RaaS. |
Excellent, can you tell me on which RaaS. Please send me the details offline? |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@yossi2le @jeromecoutant What is the status here? I set it to needs work until we get confirmation the tests are fixed |
I have submitted a PR #10516 which should solve the issue of device key |
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.
Approved as FLASHIAP tests are OK with this PR.
DEVICE_KEY tests will then be OK with #10516
Excellent, let's get them in and enable stuff. 👍 |
Description
As suggested in #10486 by @JanneKiiskila, we may activate FLASHIAP for F303RE.
Flash driver is already in place.
Pull request type
Reviewers
Release Notes