Bluetooth Bootloader

A custom PCBA based on the nRF52832 microcontroller. I am testing two different versions of firmware:

  • Version 1 (Sample code from SDK v11): examples\ble_peripheral\ble_app_hrs\pca10040\s132_with_dfu

  • Version 2 (Integration): Integrate the version sample code with other function such as LCD, Button, ...

The issue: When I flash Version 1 to a fresh board via standard wires (SWD), it works perfectly and allows to seamlessly trigger and upload code over Bluetooth (DFU) multiple times. However, if flashing Version 2, it only works at the first time. Upon a system reboot or subsequent connection, the board refuses to enter DFU mode a second time. You can still connect to it over Bluetooth, but the smartphone app will not let you select files or execute an update. The main problem is that PCBA bluetooth function cannot work properly when flashing back to Version 1 sample code, look like the nRF52832 got some issue after flashing Version 2 firmware.

Related