-
Notifications
You must be signed in to change notification settings - Fork 3k
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
STM32F7 update drivers version to CUBE V1.15.0 #11711
STM32F7 update drivers version to CUBE V1.15.0 #11711
Conversation
@jeromecoutant, thank you for your changes. |
What is changed in 4c6031b ? |
👍 This is pending crypto team review |
@@ -0,0 +1,364 @@ | |||
/* | |||
* Hardware aes implementation for STM32F4 STM32F7 and STM32L4 families |
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.
Would a newer version of this aes_alt.c
file work for both TARGET_STM32F4
and TARGET_STM32L4
? It seems silly to have two different nearly identical copies of the same file in different places in the Mbed OS tree. I'd prefer we use ifdefs to handle the minor differences between these targets as needed. Same goes for other files added by this PR that are nearly the same as existing files.
Also, please ensure it is very clear which version of the ST SDK these files are from, for easier maintenance.
@@ -0,0 +1,503 @@ | |||
/** | |||
* \file aes_alt.h |
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 file is very similar to features/mbedtls/targets/TARGET_STM/TARGET_STM32L4/aes_alt.h
. It looks like L4 is just an older copy of aes.h from Mbed TLS (XTS is missing, for example, so the file is quite old). Can we move that L4 file so it is picked up and used for both targets instead of adding duplication?
@@ -0,0 +1,307 @@ | |||
/* | |||
* aes_alt.h AES block cipher |
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 file is identical to features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/aes_alt.h
. Can you think of a way to use a single file for both targets? That'd be far more maintainable. Thanks.
|
||
/* Process unlocked */ | ||
__HAL_UNLOCK(hcryp); | ||
} |
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.
Do we need to __HAL_UNLOCK(hcryp);
when status != HAL_OK
? If not, why not?
Same goes HAL_CRYP_AESCTR_Decrypt()
and other similar functions.
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.
ST_INTERNAL_REF 75115
|
||
default: | ||
hcryp->ErrorCode |= HAL_CRYP_ERROR_NOT_SUPPORTED; | ||
return HAL_ERROR; |
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.
Do we need to __HAL_UNLOCK(hcryp);
before returning here?
This also will require rebase to resolve a conflict |
ed62c8c
to
a246164
Compare
Restarted CI |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
There are no Mbed TLS tests that do multithreading in Mbed OS, unfortunately, so we can't depend on them to catch these sorts of issues. Passing tests doesn't mean the code is good enough for merge into Mbed OS. The issues found in review need resolution. |
I agree, but in a second step. |
If that is the case, these requested changes could go into a new issue (I can see internal ticket was pasted here) and this proceed, @Patater ? We are talking about |
|
@Patater I tried to patch the driver file before ST owner feedback. |
OK, thanks. So, is this still V1.15.0 or is it now V1.15.1? |
I am not responsible for ST Cube drive delivery :-) |
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
Description
ST Cube drivers version is updated from V1.10.0 to V1.15.0,
which is the latest official version from:
https://www.st.com/en/embedded-software/stm32cubef7.html
ST CI tests OK
Pull request type
Reviewers
Release Notes
@ARMmbed/team-st-mcd