adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
445 stars 401 forks source link

Decouple SoftDevice and self uf2 #126

Closed hathach closed 4 years ago

hathach commented 4 years ago

Is your feature request related to a problem? Please describe. Decouple softdevice along with adding self uf2. There is a duplicate issue of some sort, but I create this new one anyway.

Describe the solution you'd like UF2 can be used to upgrade

For UF2 Softdevice can be bundled together with either bootloader or application into a single UF2 file.

CDC interface will left as it is as fail-safe since CDC can be used to revert to good-old version, should something bad happens.

Note: MBR is required to work with and without Softdevice (dynamically). MBR ROM & RAM requirement is as follows:

Check list

@dhalbert for review/discuss

hathach commented 4 years ago

@orrmany please don't hijack this issue which is about decoupling Softdevice, you could ask S340 related issue on your own issue/pr.

orrmany commented 4 years ago

Oh, I thought that checklist is a questionnaire. I have deleted the offending comment here

orrmany commented 4 years ago

@hathach : how do you plan to handle the differences among the RAM allocation needs with/without softdevice? And the RAM allocations differences between alternative softdevices?

hathach commented 4 years ago

@hathach : how do you plan to handle the differences among the RAM allocation needs with/without softdevice? And the RAM allocations differences between alternative softdevices?

It is application specific and have nothing to do with the bootloader.

hathach commented 4 years ago

implemented by #128