-
Notifications
You must be signed in to change notification settings - Fork 3k
Default to Cordio BLE stack for NRF52* targets #10709
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.
cool, in which case remove the mbed json overrides
@LDong-Arm, thank you for your changes. |
Somehow the BLE feature is not defined for NRF52830 and NRF52840 in |
I thought BLE feature was disabled by default to keep build size down, and only enabled by mbed_app.json as needed? Or should it be enable whenever available? |
It turns out that SOFTDEVICE_S140's SDK enables BLE, but the CORDIO stack is outside of the SDK so we need to enable BLE in targets.json as discussed with @pan-. There will be no need to enable BLE again in mbed_app.json of individual applications. |
Or shall we keep the overrides for compatibility with older mbed-os? |
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 - @ARMmbed/mbed-os-maintainers could this please target RC2?
Please keep them in the examples repo for now until this is on master :) |
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 for RC2. Should that be documented somewhere? @pan- please add section to release notes in the PR body.
Test run: FAILEDSummary: 3 of 7 test jobs failed Failed test jobs:
|
Build failures related, one of the tests fails to compile:
Please review Note, rc2 should be finalized today |
Thanks for catching that. I've updated the critical section test which failed to build, thanks to help from @pan- |
Exporters should be OK, but test failed with related errors: nrf52 ble tests, for ARM:
same test fails also for GCC/IAR but has test assert rather. Anyway, same test (features-feature_ble-targets-target_cordio-tests-cordio_hci-transport) 3 compilers , nrf52 target |
Moved to rc3, rc2 generated |
I can locally reproduce this issue. Looking into it. |
@LDong-Arm Any update, just any timebox for this - we would like to timebox rc3 |
I've got a fix for that one, working on it. Give me |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Hi, I just read about the cordio stack, but I hthink(hope) I misunderstood something. |
SDK15 is still supported and functional while soft device is no more in the latest release. It would be interesting for us to understand what limitation/issues you would hit updating your software to the laster release. Please note that the nordic SDK and the softdevice have never been part of mbed-os public API. Those are implementation details. |
ok, thats good, but I see one problem for me. I currently use the softdevice for OTA updates with the Nordic DFU service, so if I use cordio instead of the S140, I cannot use my bootloader anymore right? also, I am using some direct calls to the nordic SD, for example to go into deep sleep powerdown mode, how would I do this then? |
@pan- so what about my problems? |
@pan- I'm also interested in whether DFU will still work with the new Cordio stack, as I'm looking to perform BLE OTA DFUs. An answer here would be greatly appreciated! |
@BracketJohn there are a couple issues regarding your question. Can't remember if they are still open. |
Hi @loverdeg-ep, thanks for the reply! So far, I found #3363, #4587 and #5412, but all of them are closed or inactive it seems. Also, I was not able to find any updated guides/statements on this issue, do you know whether there was an answer somewhere? Edit: I also found this mbed forum thread from 4 months ago, that said that this feature is high priority and still in planing: https://os.mbed.com/questions/85333/Arm-Mbed-Cordio-and-OTA-DFU/ I've created #11251 to get some clarity on this. |
@donatieng Could you comment on DFU over BLE using the Cordio stack ? |
@donatieng, @pan- I've also created #11251 in order to get a more visible answer on this – I've also listed some of the issues on the topic I found there, maybe that helps/is a good place to answer the question |
Description
The BLE stack from SoftDevice is not actively maintained and
has issues (e.g. BLE fails to initialise) when used with Nordic SDK v15.
Note: To verify this PR properly, remove/do not set target-specific labels in mbed_app.json.
Pull request type
Reviewers
@donatieng @pan- @paul-szczepanek-arm
Release Notes
Starting with mbed-os 5.13 and the introduction of Nordic SDK V15, Nordic SoftDevice Bluetooth stack is not supported.
Bluetooth remains supported with the help of ARM’s Cordio stack.