adafruit / Adafruit_nRF52_Bootloader

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

a step to no softdevice #108

Closed xiongyihui closed 4 years ago

xiongyihui commented 4 years ago

Make the bootloader work without softdevice.

comment out https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/Makefile#L245 to enable it.

# CFLAGS += -DSOFTDEVICE_PRESENT

The MBR at 0x0 to 0x1000 is still required.

hathach commented 4 years ago

related to #30 #74

hathach commented 4 years ago

thanks for your PR, however, we haven't decided if we want to have SD-independent bootloader yet. Meanwhile this PR will be pending until we make up our mind.

ghost commented 4 years ago

@hathach : newer sdks include almost all of this PR out of the box, so SD free bootloader is almost free code wise (but perhaps not support wise)

hathach commented 4 years ago

@jrobeson since we have plan to extensive use OTA in the future which requires SD. We don't want an incompatible bootloader code and Softdevice (e.g v6, v7). And then we have to document which bootloader version work with which Softdevice. Worse an incompatible Softdevice (flashed from previously compatible) can potentially brick device. So we like to keep it as a combo for now, until there is a real reason to separate them.