This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[BUG] dfu using serial with nRFgo Studio v1.18.0.9

Hi,

I have recently discovered a bug that prevents dfu over serial, using the latest nRFgo Studio v1.18.0.9. I am using SDK S110v8 and the dev kit PCA10028. I was having trouble updating the app on the target device. The device would just reset everytime I run the hci_dfu_send_hex.exe file from nRFgo Studio.

Upon some debugging, I noticed that:

According to nRF51 SDK, when starting a dfu update, the serial flash program (hci_dfu_send_hex.exe) needs to send the sizes of the sd/bl/app in the "START PACKET". Using a serial sniffer, I noticed that the information is send incorrectly, the order should be the size of sd/bl/app. However, the actual data sent is in this order: bl/app/sd. As a result, the target device just resets upon receiving invalid sizes.

I did some modification to the bootloader firmware, reshuffling the received data for the START PACKET, this immediately solved the issues, and I was able to flash the device successfully.

My question is, I am not sure if the problem is caused by the .exe file mapping the sizes incorrectly, or the generated .zip file has incorrect data. It would be great if someone from Nordic could clarify this. Cheers.

Warm regards, Michael

Parents Reply Children
Related