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

OTA doesnt work on migrating DFU frimware from sdk15.0.0 to sdk17.0.2

Hello everyone, 

                         I am using NRF52840 development kit. OTA was working fine with SDK VERSION15.0.0. Now I am trying to migrate my developed code from SDK version 15.0.0 to SDK version 17.0.2.

While compiling the DFU firmware I got this error:-

error: #error The configuration NRF_CRYPTO_BACKEND_CC310_BL_ECC_LITTLE_ENDIAN_ENABLED was removed in SDK 15.1.0. Please see release notes for details on removing this error message.

I checked the files of 15.0.0 version, the code is a bit different from that in SDK17.0.2. I am getting the above error while compiling all the .c files from the folder "RF5_SDK_17.0.2_d674dde/components/libraries/crypto/backend/cc310_bl" 

So I removed the following defines from sdk_config.h. 

      NRF_CRYPTO_BACKEND_CC310_BL_HASH_LITTLE_ENDIAN_DIGEST_ENABLED
    - NRF_CRYPTO_BACKEND_CC310_BL_ECC_LITTLE_ENDIAN_ENABLED
    - NRF_CRYPTO_BACKEND_MICRO_ECC_LITTLE_ENDIAN_ENABLED
    - NRF_CRYPTO_BACKEND_NRF_SW_HASH_LITTLE_ENDIAN_DIGEST_ENABLED

after doing this, my code compiled properly. But while testing OTA is not working. I am getting wrong signature error.  

00> <info> nrf_dfu_validation: Calculating init packet hash (init packet len: 64)
00> <info> nrf_dfu_validation: Verify signature
00> <error> nrf_dfu_validation: Signature failed (err_code: 0x8542)

What might be the issue? Please help me on this. I somehow have a feeling that the above disabled defines have to do something with this error.

Related