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

ErrorS

HELLO,All:
When using SDK5 From 52840 change to 52833 ,There are some errors,as below:
1.Output/Release/Exe/ble_app_hids_mouse_pca10056_s140.elf section `.init' will not fit in region `UNPLACED_SECTIONS'
2.region `UNPLACED_SECTIONS' overflowed by 56182 bytes
and more errors.............

en,Under SDK 16.0

Parents
  • Hi

    The biggest difference between the two is that the nRF52840 has the CryptoCell feature for a crypto backend, unlike the nRF52833 which is using OBERON for this purpose. Other than that the RAM and Flash memory of the nRF52833 is halved compared to the nRF52840. 

    The changes you would need to make in a pca10056 project are, therefore:

    • As the nrf_crypto library provides a unified API. The only thing you need to do is to disable the CC310 backend in sdk_config.h by setting NRF_CRYPTO_BACKEND_CC310_ENABLED to 0, and enable the Oberon backend by setting NRF_CRYPTO_BACKEND_OBERON_ENABLED to 1, as well as setting the NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED to 1. You can compare with the sdk_config.h of the pca10040 project to see how this should be done, and they should be identical with regard to crypto configuration.
    • Next, you will also have to do these changes to your project settings. Change to device "NordicSemiconductor->nRF52833_xxaa". In the C/C++ preprocessor settings, remove the defines "NRF52" and "NRF52840_XXAA" and add the preprocessor define "NRF52833_XXAA". In the linker script settings, adjust the linker script to match the maximum RAM and Flash size of nRF52833. Remove the following files from the project: <compiler>_startup_nrf52.s and system_nrf52.c and add the following files to the project: <compiler>_startup_nrf52833.s and system_nrf52833.c.

    The flash_placement.xml file should be located in the same folder as your SES .emProject file, for example <YOUR SDK FOLDER>\examples\ble_peripheral\ble_app_hrs\pca10056\s140\ses.

    Best regards,

    Simon

Reply Children
No Data
Related