Change the RAM start location to lower than the minimun allowed.

Hi all.

I am working with the NRF52840 and I am using the ble_app_multilink_central as start point. I want to enable the maximun aviable connections (20 for the s140), but I am testing with 18 connections,therefore the NRF_SDH_BLE_CENTRAL_LINK_COUNT is 18   and NRF_SDH_BLE_TOTAL_LINK_COUNT is 18. The code compiles, but when i downloand and run the code in the board, in the serial terminal It is printed the  below message:

           nrf_sdh_ble: Insufficient RAM allocated for the SoftDevice

          nrf_sdh_ble: Change the RAM start location from 0x200043A8 to 0x20010C

          nrf_sdh_ble: Maximum RAM size for application is 0x2F378.

          nrf_sdh_ble: sd_ble_enable() returned NRF_ERROR_NO_MEM

I change the RAM START but the Segger produces the following error:

           Cannot move location counter backwards (from 0000000020000000 to 000000000020010c).

Attach the default section placement macros:

           FLASH_PH_START=0x0

           FLASH_PH_SIZE=0x100000

           RAM_PH_START=0x20000000

           RAM_PH_SIZE=0x40000

           FLASH_START=0x27000

           FLASH_SIZE=0xd9000

           RAM_START=0x20010C

           RAM_SIZE=0x3bc58

How can I solove this problem?

Parents
  • Hello,

    0x20010C is in the FLASH memory range, so it does not make sense that it is being suggested as the new app RAM start address. I was not able to replicate it here either:

    But the reported max. RAM size indicates that RAM_START should have been 0x20040000 − 0x2f378 = 0x20010C88.

    Can you try to set RAM_START=0x20010C88 and see if it works?

    Best regards,

    Vidar

Reply
  • Hello,

    0x20010C is in the FLASH memory range, so it does not make sense that it is being suggested as the new app RAM start address. I was not able to replicate it here either:

    But the reported max. RAM size indicates that RAM_START should have been 0x20040000 − 0x2f378 = 0x20010C88.

    Can you try to set RAM_START=0x20010C88 and see if it works?

    Best regards,

    Vidar

Children
Related