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 Children
  • 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

  • Hi,

    This error is expected as you have set FLASH_START=0x25000, but the size of S140 7.0.1 is 0x27000 (you can see this from the SoftDevice release notes). So using that SoftDevice your FLASH_START must be set to 0x27000, and the size adjusted accordingly. Note that you will not have much room for other data using this SoftDevice on the nRF52811 so it may be a good idea to consider migrating to anther SoftDevice unless you need some S140 features and have a very small application.

  • Thanks for your suggestion. 

    The main issue now is with these FLASH and RAM configurations (should be correct according to the Soft device specifications and tutorial), I can't build my project:

    FLASH_PH_START=0x0
    FLASH_PH_SIZE=0x30000
    RAM_PH_START=0x20000000
    RAM_PH_SIZE=0x6000
    FLASH_START=0x27000
    FLASH_SIZE=0x9000
    RAM_START=0x20001678
    RAM_SIZE=0x4988

    Is there any way for me to still using S140 7.0.1 on nRF52811? Or any suggestion on other Soft device that u think that will provide more room for my project?

  • No, not unless you can shrink your application to make it fit. But do you really need S140 for a beacon? Can't you use S112 or S113?

  • Hi, I now moved to the emulated version of my project, pca10056e (I have this together with pca10056).

    However I have the build error as shown here:

    I did try to enbale SPIS from sdkconfig.h but it does not solve the issue. any suggestion of the root cause here? 

Related