-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32WB - Update CubeDriver from v1.0.0 to v1.4.0 #12283
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
- BLE feature is mandatory - remove clock source selection - license alignment - startup file from Cube delivery - linker script alignement
@jeromecoutant, thank you for your changes. |
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've looked at the Bluetooth part and carried some tests and it looks good to me, thank you @jeromecoutant
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.
Single question: maybe one header file (hw_if.h) is not needed ? ?
@@ -0,0 +1,250 @@ | |||
/* USER CODE BEGIN Header */ |
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.
Is this file needed in our MBED port ?
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.
Yes, it can be removed.
Just need to move 2 include lines.
Pull request has been modified.
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.
Good job - thanks Jerome !
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.
Some minor comments/questions...
@@ -62,14 +62,14 @@ | |||
In this case, these drivers will not be included and the application code will | |||
be based on direct access to peripherals registers | |||
*/ | |||
#define USE_HAL_DRIVER | |||
/*#define USE_HAL_DRIVER */ |
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.
Why is this commented out rather than removed ?
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.
All files in this STM32Cube_FW directory come from the ST driver FW delivery.
Before we were patching few files during mbed import.
Now I remove all differences between official ST files and mbed imported files.
{ | ||
CLEAR_BIT(FLASH->CR, clearbit); | ||
/* No Procedure on-going */ | ||
/* Nothing to do, but check error if any */ |
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 comment as it stands in this place makes it look like there is some missing error code in this block? I assume the intention is that you are just documenting that there is nothing to do in the default else case and it will just fall through to the error checking below ?
{ | ||
/* SAI_I2S_MSBJUSTIFIED or SAI_I2S_LSBJUSTIFIED */ | ||
hsai->FrameInit.FSPolarity = SAI_FS_ACTIVE_HIGH; | ||
hsai->FrameInit.FSOffset = SAI_FS_FIRSTBIT; |
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 assume the protocol can only ever be one of the 3 specified values ?
else | ||
{ | ||
/* SAI_PCM_LONG */ | ||
hsai->FrameInit.ActiveFrameLength = 13; |
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.
Same question here wrt protocol values ?
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Hi @adbridge, it would be great to have this included in the upcoming release as discussed with @MarceloSalazar |
This PR does not contain release version label after merging. |
This is a huge change for a patch release. Makes me a bit uncomfortable but If @ARMmbed/team-st-mcd is confident and ok with merging it to 15.15.1 lets do it. |
@bulislaw this didn't get marked for 5.15.1 in the review meeting so looks like it didn't make it to that release. @jeromecoutant is this really important for the 5.15 branch ? |
@jeromecoutant as you haven't indicated otherwise I'm going to assume this is currently not seen as important for the 5.15 branch/releases. If this is not the case, please raise a corresponding PR against mbed-os-5.15 and it will be considered for inclusion there. |
Summary of changes
Goal is to update mbed-os file from the latest STM32CubeWB MCU Firmware Package:
https://www.st.com/en/embedded-software/stm32cubewb.html
https://github.com/STMicroelectronics/STM32CubeWB
Impact of changes
Several changes are proposed in several commits:
Migration actions required
Documentation
Pull request type
Test results
No regression for mbed-os tests and the 3 tool chains
HearRate BLE example OK:
https://github.com/ARMmbed/mbed-os-example-ble/tree/master/BLE_HeartRate
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR
Reviewers
@ARMmbed/team-st-mcd