-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32WB : update BLE part with better support #12384
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
@jeromecoutant, thank you for your changes. |
I restarted Travis, later saw astyle failing. Please review once completed |
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.
@ARMmbed/mbed-os-pan please have a look
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.
Thank you @jeromecoutan! A couple of nits but looks good - I'll test it on our end once these are addressed.
Great to see the README too.
#include "otp.h" | ||
#include "hw_conf.h" /* Common BLE file where BLE shared resources are defined */ | ||
// #include "hw_conf.h" /* Common BLE file where BLE shared resources are defined */ |
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.
Should this just be 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.
agree
#include "sleep_api.h" | ||
#include "us_ticker_api.h" | ||
#include "us_ticker_data.h" | ||
// #include "sleep_api.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.
Same here
https://github.com/STMicroelectronics/STM32CubeWB/blob/master/how_to_program_wireless_stacks.txt | ||
|
||
Latest BLE FW : | ||
https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/stm32wb5x_BLE_Stack_fw.bin |
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.
Should we point the users to the LL-only version of the Wireless firmware (as we're using Cordio as the BLE stack)?
https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Projects/STM32WB_Copro_Wireless_Binaries/stm32wb5x_BLE_HCILayer_fw.bin
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.
Let's discuss it with @LMESTM
Yes, HCILayer binary file should be sufficient for mbed-os application, but I never tested it...
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.
The current mbed code (cordio on top of HCI) can work with the 2 firmware version;; HCILayer or full stack. so yes we can point to users that they can use the HCI only version if they wish to. Nevertheless they will have to change the memory map on their own to benefit from the flash savings. I'd rather not change this memory map by default to avoid people to get first negative impression in case they try mbed with the default firmware and this doesn't work out of the box ...
94fcc4c
to
72c9352
Compare
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.
Looks good to me - good clean-up !
|
||
return; | ||
} | ||
extern int mbed_sdk_inited; |
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.
does it remove a warning ?
Started CI meanwhile |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
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.
Thanks @jeromecoutant.
I'd just like to emphasize that it would be very valuable to have the "Link Layer only" option working out of the box, especially as an application pulling in the full stack will need to reserve 324 kB of flash (162kB x2 as we need to reserve the same amount of Flash to update it), which would only leave 188kB free for the app when using a part with 512 kB of Flash.
This would compare to reserving 190 kB (95 kB x2) leaving 322 kB for the app if using the LL only binary.
@donatieng What do you mean to have the LL option would work out of the box ? |
@LMESTM I was referring to the memory map changes you are mentioning - the way I understand it the user would have to make these changes manually? |
@donatieng yes the memory map change would have to be done manually - I am not sure how to make this transparent ... |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@jeromecoutant Once rebase we run the CI |
72c9352
to
a1570f9
Compare
Pull request has been modified.
Done |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Summary of changes
Few update around STM32WB BLE support:
@LMESTM
@donatieng
Regards,
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers