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

Transferring pca10056 project to nRF52811 hardware build error Output/Release/Exe/xxx_pca10056_s140.elf section `.init' will not fit in region `UNPLACED_SECTIONS'

Hi all,

I'm trying to transfer my custom project pca10056 (which is to broadcast a beacon) to nRF52811 hardware and I'm facing some issues in the last stage of build.

FYI:

1. My pca10056 project can be built and ran sucessfully on nRF52840DK and the beacon can be discovered by using phone with nRF Connect.

2. I'm using SDK nRF5_SDK_16.0.0_98a08e2 with Softdevice  s140_nrf52_7.0.1

2. I'm aware of developing for nRF52811 documetation and some of discussion on this forum on the configurations including: RAM and Flash size

 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fnrf52811_user_guide.html

https://devzone.nordicsemi.com/f/nordic-q-a/48516/transferring-the-project-to-nrf52811-hardware---fpu-error/192748#192748

https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory

Here is the build issues I got:

      

Really appreciate help from all of you. Thank you

Parents Reply
  • Hi, I try to get the FLASH_SIZE and RAM_SIZE according to the tutorial: 

    Edit the values RAM_START and FLASH_START, note that FLASH_SIZE should not be larger than (FLASH_PH_SIZE -  FLASH_START), and that (RAM_SIZE + RAM_START) should not be larger than (RAM_PH_START + RAM_PH_SIZE).

    And Here is my config:

    However I got another error that I suspected it came from FLASH setting:

    I then adjust the FLASH_START and FLASH_SIZE:

    FLASH_PH_START=0x0

    FLASH_PH_SIZE=0x30000

    RAM_PH_START=0x20000000

    RAM_PH_SIZE=0x6000

    FLASH_START=0x25000

    FLASH_SIZE=0xb000

    RAM_START=0x20001678

    RAM_SIZE=0x4988

    The project can be built successfully but the moment when I download it to the chip, another error pop up:

    Can u help me on this? So sorry but this is my first time working with Nordic and Segger

Children
Related