-
Notifications
You must be signed in to change notification settings - Fork 75
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
Call bootloader_start implicitly trough a event handler call #118
Conversation
work around for bootloader_start not being public in sdk 8.1
work around for bootloader_start not being public in sdk 8.1
Conflicts: ble/services/DFUService.h
Conflicts: ble/services/DFUService.h
looks good. I'll review the changes to ble-nrf51822 before merging this. |
@rgrover This is independent of ble-nrf51822, this change does not depend on any change to ble-nrf51822. |
bootloader_start(); | ||
// Call bootloader_start implicitly trough a event handler call | ||
// it is a work around for bootloader_start not being public in sdk 8.1 | ||
ble_dfu_t p_dfu; |
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 isn't needed, is 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.
@rgrover A handle need to be passed to bootloader_start in sdk 8.0.1 hence ble_dfu_t need to be populated with a connHandle.
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 first parameter isn't actually used in the path which calls bootloader_start(). I'll be fine if you still feel we should initialize a local variable for this. But I would also like to eliminate anything that's un-necessary.
it seems future versions of |
Call bootloader_start implicitly trough a event handler call
published ble-2.1.3 |
Hi guys, No such file or directory Am I missing something? |
@apalmieriGH: could you please provide additional information, i.e. Which example are you trying to compile? Could you post the output of |
@apalmieriGH |
@andresag01 @LiyouZhou : I'm building ble_examples/BLE_HeartRate $ yt ls $ yt target |
@apalmieriGH: Thanks for reporting this issue. We will be pushing a patch shortly to fix this change. The problem is that all of DFU service is only Nordic-specific and only works with targets like nrf51dk and mkit. When you compile for and ST target clearly the nordic modules are not included in the dependency tree by yotta and the header in Actually, if you are not using DFU you will find that removing |
@andresag01 : Thank you for fixing. I guess the ble APIs should be agnostic about the lower layer driver. And the ble-examples should not include dependencies of services that are not relevant. Besides, the same issue has been propagated in mbed classic, as well. |
work around for bootloader_start not being public in sdk 8.1. Backwards compatible.
@andresag01 Please review.