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

nrfutil and dfu - invalid object

Hello. I'm reviving an old project (nrf51 and 12.3.0 SKD with sd130 2.0.1). Unfortunately bootloader is not working properly. It worked just fine at the beginning of the year (last commit is from 10th February of current year). Now when I'm trying to update firmware I'm getting an INVALID OBJECT error. I've tracked it down to line 308 in dfu_req_handling.c from 12.3.0 SDK. To be specific: uECC_vli_equal in uECC_verify returns 0. I suspect that something changed in nrfutil. I'm using: nrfutil settings generate --family NRF51 --application <PATH_TO_APP_HEX> --application-version 0 --bootloader-version 0 --bl-settings-version 1 boot_settings.hex --no-backup to create settings hex file, and nrfutil pkg generate --hw-version 51 --application-version 5 --application --sd-req 0x87 --key-file --app-boot-validation NO_VALIDATION app_dfu_package.zip to generate a package. As i was debugging, signature and public key seemed OK. Maby there is something different in hash calculation? I really can't figure it out. I'm using nrfutil version 5.2.0

Related