nRF52833: CDC ACM USB Bootloader example is not available.

Using windows 10 OS, and SES v5.40.

I am using nRF52833 device in my project along with nRF5_SDK_for_Thread_and Zigbee_v4.1.0_32ce5f8 SDK.

As we can see that there is an example of CDC ACM USB Bootloader available for nRF52840 only https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/sdk_app_serial_dfu_bootloader.html but we need for nRF52833.

so is there any example of CDC ACM USB Bootloader available for nRF52833 or supports nRF52833?

Parents
  • Hi Einar,

    Thanks for the link.

    I have followed the the steps and changed Preprocessor definitions BOARD_PCA10056 to PCA10100 and NRF52840_XXAA to NRF52833_XXAA. Then i am getting some error related to cc310_bl_backend.

     

    BR,

    Akib

  • Hi Akib,

    The nRF52833 does not  have the CryptoCell peripheral, so you must modify sdk_config.h so that it uses a different crypto backend. See Configuring nrf_crypto frontend and backends.

  • Hi Einar,

    I have disable the nrf_crypto frontend and enable crypto backend.

    Then got some error related nrf_crypto function witch is available in nrf_dfu_validation.c.

    As of now i have commented those functions just for error removal and i am trying to flash the code in nrf52833 but while flashing we getting some error too.

       

    This error is related to flash and RAM?

  • Hi,

    Akib said:
    I have disable the nrf_crypto frontend and enable crypto backend.

    This is not exactly right. You still need nrf_crypto as this is used by the bootloader to validate upgrade images, so NRF_CRYPTO_ENABLED must be 1. However, you need to disable the CC310 BL backend which is used by the bootloader projects for nRF52840, so set NRF_CRYPTO_BACKEND_CC310_BL_ENABLED to 0 in sdk_config.h. Now, you need to enable other backends. I suggest you refer to an example bootloader project for any non-nRF52840 device. There you can see that you need to set NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED to 1 and NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED to 1. You also need to set NRF_CRYPTO_BACKEND_NRF_SW_ENABLED to 1 and NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED to 1.

    Akib said:
    Then got some error related nrf_crypto function witch is available in nrf_dfu_validation.c.

    That is because you disabled nrf_crypto in sdk_config.h, and that way these functions that yuo rely on are removed by the preprocessor. This should be OK after you fix your sdk_config.h as described.

    Akib said:
    As of now i have commented those functions just for error removal and i am trying to flash the code in nrf52833 but while flashing we getting some error too.

    We need to look at your memory layout in order to understand this. Perhaps the bootloader start address is wrong and overlaps with the SoftDevice? Which start address have you specified for the bootloader?

    Akib said:
    This error is related to flash and RAM?

    This is related to flash.

Reply
  • Hi,

    Akib said:
    I have disable the nrf_crypto frontend and enable crypto backend.

    This is not exactly right. You still need nrf_crypto as this is used by the bootloader to validate upgrade images, so NRF_CRYPTO_ENABLED must be 1. However, you need to disable the CC310 BL backend which is used by the bootloader projects for nRF52840, so set NRF_CRYPTO_BACKEND_CC310_BL_ENABLED to 0 in sdk_config.h. Now, you need to enable other backends. I suggest you refer to an example bootloader project for any non-nRF52840 device. There you can see that you need to set NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED to 1 and NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED to 1. You also need to set NRF_CRYPTO_BACKEND_NRF_SW_ENABLED to 1 and NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED to 1.

    Akib said:
    Then got some error related nrf_crypto function witch is available in nrf_dfu_validation.c.

    That is because you disabled nrf_crypto in sdk_config.h, and that way these functions that yuo rely on are removed by the preprocessor. This should be OK after you fix your sdk_config.h as described.

    Akib said:
    As of now i have commented those functions just for error removal and i am trying to flash the code in nrf52833 but while flashing we getting some error too.

    We need to look at your memory layout in order to understand this. Perhaps the bootloader start address is wrong and overlaps with the SoftDevice? Which start address have you specified for the bootloader?

    Akib said:
    This error is related to flash and RAM?

    This is related to flash.

Children
No Data
Related