adafruit / Bluefruit_LE_Connect_Android

Android port of Adafruit's Bluefruit LE Connect app
MIT License
122 stars 100 forks source link

Update bootloader to detect old and new version #6

Closed hathach closed 9 years ago

hathach commented 9 years ago

Current there are 2 bootloader version.

The major difference in android's point of view is that the new bootloader requies an Init Packet http://developer.nordicsemi.com/nRF51_SDK/doc/7.2.0/s110/html/a00065.html to perform DFU. It is a separated binary file containing metadata of firmware image such as CRC, Revision etc ... Init Packet is generated during firmware make and included together with the firmware hex (e.g blefriend_s110_xxaa_dfu_init.bin )

To detect if the bootloader is old or new version:

hathach commented 9 years ago

or since old version of bootloader is used for blefriend only, we can simply determine the old bootloader by checking if the board is blefriend or not.

microbuilder commented 9 years ago

This issue has been resolved with a firmware update on the nRF51 side (as of version 0.5.0).