This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hash validation failure when DFU package transferred manually. nrf_dfu_validation: Hash verification failed.

When i use nrfutil to perform DFU it is passed, but when i send it through STM32 dev kit it Hash validation failed. but however i can see the CRC is correct.

Parents Reply
  • Hi,

    The last part of the log is:

    2:NRF_DFU_OP_OBJECT_EXECUTE Complete 60 4 B

    0xB is NRF_DFU_RES_CODE_EXT_ERROR, so we need to look at the next byte, which we see from the log with UART traffic:

    [STM] <-- [ 96, 4, 11, 12,  ]

    This is the same response (though it looks different since the numbers are decimal here), and we see that the fourth byte is 12 = 0xC = NRF_DFU_EXT_ERROR_VERIFICATION_FAILED.

    I am not able to see exactly what happened though, but I will continue to look into it tomorrow.

    In the meantime,

    • Can you provide any more information about this issue?
    • Do you always get this issue when using your DFU master implementation, or just some times?
    • Can you share your DFU master code?
    • Can you upload logs from the bootloader (with RTT debug logging enabled)

    (Updated with more questions since initial posting)

Children
Related