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

Issue with serial DFU on NRF52

Hi All,

I am trying to get the serial DFU working with nRF52832 development kit with SDK 13. I am able to get the bootloader flashed and have installed the nrfUtil tool. I followed the exact sequence of the steps mentioned here and got it right until the final step where I am trying to sent the application image to the device. The image transfer doesn't progress from 0% and it finally fails with the below logs: image description

I did some debugging and found that in the "on_packet_received" function, the device is getting an invalid opcode and so its responding with an error. I also tried disabling the HFC in device and the nrfutil tool as mentioned in this thread with no success. Finally I also tried changing the UART Tx/Rx pins to to P[0].3 and P[0].4 with no improvements.

Please let me know if you have some pointers which would help me in debugging this.

Parents
  • Hi Hung,

    I have tried with the latest version of the nrfutil-3.2 . But still its the same result. I have not done any code changes in the bootloader. I just compiled the micro-ecc and created a new publickey.c file. I am able to flash and the bootloader is waiting in the wait_for_event function. As I have mentioned, it doesn't seem to sent the full dfu packet from the host.

    I am able to get the UART logs and I got most of the example applications working in my setup except this serial bootloader. Please let me know if you need any further information.

Reply
  • Hi Hung,

    I have tried with the latest version of the nrfutil-3.2 . But still its the same result. I have not done any code changes in the bootloader. I just compiled the micro-ecc and created a new publickey.c file. I am able to flash and the bootloader is waiting in the wait_for_event function. As I have mentioned, it doesn't seem to sent the full dfu packet from the host.

    I am able to get the UART logs and I got most of the example applications working in my setup except this serial bootloader. Please let me know if you need any further information.

Children
No Data
Related