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
  • Updating few more observation from the debugging done after this post:- When I put a break point on on_rx_complete in the uart_event_handler, I see that the number of bytes received is 1 and its value is 'C0' which as per Serial (HCI) should be SLIP start/stop. But I dont see the remaining bytes of the Start packet coming. I am sure DFU serial works for other so could this be an issue with the nrfUtil tool? I followed the steps in this link [link text] (infocenter.nordicsemi.com/index.jsp for its installation.

Reply
  • Updating few more observation from the debugging done after this post:- When I put a break point on on_rx_complete in the uart_event_handler, I see that the number of bytes received is 1 and its value is 'C0' which as per Serial (HCI) should be SLIP start/stop. But I dont see the remaining bytes of the Start packet coming. I am sure DFU serial works for other so could this be an issue with the nrfUtil tool? I followed the steps in this link [link text] (infocenter.nordicsemi.com/index.jsp for its installation.

Children
No Data
Related