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

How to enter the SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF case in on_packet_received ?

Hi, I want to transfer the firmware to 52832 and enter the bootloader mode successfully.
and the I send {0x02,00,00},it can't not enter the case of on_packet_received: SERIAL_DFU_OP_CODE_SET_RECEIPT_NOTIF case
in nrf_serial_dfu.c.
I debugged as follow:

static __INLINE void on_rx_complete(serial_dfu_t * p_dfu, uint8_t * p_data, uint8_t len)
{
ret_code_t ret_code;

ret_code = slip_decode_add_byte(&p_dfu->slip, p_data[0]);

if (ret_code == NRF_SUCCESS)
{
on_packet_received(p_dfu);
the ret_code value always return 17 whatever the bytes slip_encoded I sent;

Thanks

Related