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

Hello I'm trying to update an NRF52810 over a STM32 via an UART, I've the following error "nrf_dfu_validation: Hash verification failed." at the end of the process when sending the execute command.

Seems to be the same problem than case "Case ID: 231115" but the ticket went private so I couldn't see the final solution. 

I also notice that the data written in flash on the nordic microcontroller is filled with 0xFF in order to be a 256 byte block. So the firmware I'm sending is not written correctly which could explain the hash problem, but why are these 0xFF added ?

Best regards, 

Coralie

Parents
  • Hi. im trying to similar project like you. (dfu master mcu code over ble).
    i stucked in sending init packet problem. everything is fine, but after sending init packet, hash code is in trouble.
    error occur with nrf_crypto_ecdsa_verify_hash (code 5), uECC_verify (code B).

    how to solve it?

Reply
  • Hi. im trying to similar project like you. (dfu master mcu code over ble).
    i stucked in sending init packet problem. everything is fine, but after sending init packet, hash code is in trouble.
    error occur with nrf_crypto_ecdsa_verify_hash (code 5), uECC_verify (code B).

    how to solve it?

Children