h2zero / n-able-Arduino

An arduino core for ARM based BLE devices supported by the NimBLE stack.
GNU Lesser General Public License v2.1
34 stars 12 forks source link

OTA DFU -> any Plans for Future? #16

Open ericlangel opened 1 year ago

ericlangel commented 1 year ago

is there a working OTA DFU Example?

h2zero commented 1 year ago

This is not yet implemented as it requires a different bootloader (new), I hope to have this sometime in the future.

intakenick commented 5 months ago

Hey @h2zero, what are your current thoughts on this? Is it possible to use the NRF5 bootloader from Nordic in conjunction with n-able core? I imagine there wouldn;t be room for both the softdevice and nimble stack.

h2zero commented 5 months ago

The two can't be used together, I had thoughts of making a mcuboot based bootloader but have t had time to work on it.

intakenick commented 5 months ago

Thanks. To your knowledge, is it possible to ota without a bootloader?

h2zero commented 5 months ago

Well I suppose you may be able to construct something if the flash is properly partitioned. You would need to know what partition to jump to somehow, usually a record in flash somewhere that indicates which partition is valid. Would be a bit of work and would require modifications to the linker files.