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

nrf52 serial DFU is not providing CRC

Hi,

I have implemented to the Master serial DFU. I able to send .dat file and i'm reading correct CRC .

I'm sending .bin 4096bytes and making 64bytes in a each packet Sending  it, later asking for crc (0x03 0xc0 ), but device is not sending any reply.

How to trace it? 

how much time gap need to be provide for each packet transmit?

Thanks,

basava

Parents
  • A reason that the DFU controller doesn't receive a response might be because the communication is going too fast for the DFU target (no hardware flow).

    Try sending a CRC request after each packet, which will check the validity of the data and make the transfer more robust.

    Best regards,

    Simon

  • Hi,

    Thank you for the reply,

    I tried with 64 bytes with 57600 baud, but I'm getting Hardfault error.

    then i tried with  32 bytes with 57600 baud and 1 sec delay in between each packet. Now its working fine.

    I was tested it with 500msec and it is going for hardware fault. It didnt write it flash.

    I really don't know why it need 1sec to write Flash memory. I'm not trace out where its going wrong. 

    i'm sending 32k bytes of data. It will take lot of time to send. So is there any solution for this?

    Thanks and regards,

    Basava

Reply
  • Hi,

    Thank you for the reply,

    I tried with 64 bytes with 57600 baud, but I'm getting Hardfault error.

    then i tried with  32 bytes with 57600 baud and 1 sec delay in between each packet. Now its working fine.

    I was tested it with 500msec and it is going for hardware fault. It didnt write it flash.

    I really don't know why it need 1sec to write Flash memory. I'm not trace out where its going wrong. 

    i'm sending 32k bytes of data. It will take lot of time to send. So is there any solution for this?

    Thanks and regards,

    Basava

Children
Related