Bootloader initialization skip

Hi,

I have some issue in developing APP for devices based on NRF51822. They have been developed in 2016 with an old bootloader, when there was no use of zip pack. We usually upgrade their fw using NRF Connect directly with .hex file.

Now we are triyng to develop this APP but it seems that using flutter library https://github.com/fengqiangboy/flutter-nordic-dfu there is no possibility to provide just the HEX file, is it correct or can I use it somehow, maybe with some hidden configuration?

I tried to build the zip pack in many ways and download it on those devices using nrf connect but the configuration always seems not to fit because in some cases the device disconnects after Writing Initialize DFU Parameters, in other cases the download starts but the bootloader gives at the very end a crc error so that the firmware is not updated. To have this informations I checked the NRF Connect APP logs.

I noticed that using the hex file there is no initialization and there is no problems during the DFU.

Can someone help me?

Here the initialization log i wish to avoid:

A             15:16:35.160      [DFU] Writing Initialize DFU Parameters...

V             15:16:35.223      [DFU] Writing to characteristic 00001531-1212-efde-1523-785feabcd123

D             15:16:35.224      [DFU] gatt.writeCharacteristic(00001531-1212-efde-1523-785feabcd123)

I              15:16:35.280      [DFU] Data written to 00001531-1212-efde-1523-785feabcd123, value (0x): 02-00

V             15:16:35.280      [DFU] Writing to characteristic 00001532-1212-efde-1523-785feabcd123

D             15:16:35.280      [DFU] gatt.writeCharacteristic(00001532-1212-efde-1523-785feabcd123)

I              15:16:35.282      [DFU] Data written to 00001532-1212-efde-1523-785feabcd123, value (0x): 0A-47-08-01-12-43-08-D0-86-03-10-33-1A-03-FE-FF-03-20-00-28

V             15:16:35.283      [DFU] Writing to characteristic 00001532-1212-efde-1523-785feabcd123

D             15:16:35.283      [DFU] gatt.writeCharacteristic(00001532-1212-efde-1523-785feabcd123)

I              15:16:35.285      [DFU] Data written to 00001532-1212-efde-1523-785feabcd123, value (0x): 00-30-00-38-D4-DD-02-42-24-08-03-12-20-EA-2F-03-6B-B1-8A-D3

V             15:16:35.285      [DFU] Writing to characteristic 00001532-1212-efde-1523-785feabcd123

D             15:16:35.286      [DFU] gatt.writeCharacteristic(00001532-1212-efde-1523-785feabcd123)

I              15:16:35.288      [DFU] Data written to 00001532-1212-efde-1523-785feabcd123, value (0x): FC-E5-E7-07-75-80-3C-1F-1D-A7-86-59-53-8D-A3-5B-15-0F-7B-46

V             15:16:35.291      [DFU] Writing to characteristic 00001532-1212-efde-1523-785feabcd123

D             15:16:35.291      [DFU] gatt.writeCharacteristic(00001532-1212-efde-1523-785feabcd123)

I              15:16:35.292      [DFU] Data written to 00001532-1212-efde-1523-785feabcd123, value (0x): 17-0E-EF-8C-89-48-01-52-04-08-01-12-00

V             15:16:35.292      [DFU] Writing to characteristic 00001531-1212-efde-1523-785feabcd123

D             15:16:35.292      [DFU] gatt.writeCharacteristic(00001531-1212-efde-1523-785feabcd123)

I              15:16:35.340      [DFU] Notification received from 00001531-1212-efde-1523-785feabcd123, value (0x): 10-02-01

I              15:16:35.341      [DFU] Notification received from 00001531-1212-efde-1523-785feabcd123, value (0x): 10-02-01

I              15:16:35.342      [DFU] Notification received from 00001531-1212-efde-1523-785feabcd123, value (0x): 10-02-01

I              15:16:35.342      [DFU] Notification received from 00001531-1212-efde-1523-785feabcd123, value (0x): 10-02-01

I              15:16:35.343      [DFU] Data written to 00001531-1212-efde-1523-785feabcd123, value (0x): 10-02-01

A             15:16:35.343      [DFU] Initialize DFU Parameters completed

Related