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

cyclic memory section dependency with section .fs_data_run

Hello:

I am setting up my nRF52840 development board to work with the S140 softdevice on Segger Embedded Studio; however, I am running into issues with the flash_placement.xml file.

I was previously running into issues with the general flash_placement.xml file provided in the Segger Embedded Studio blog tutorial with the following errors in build output:

image description

Even before that, I was receiving errors referring to "variably modified 'do_assert' at file scope" as is similarly described here by another devzone user, however I commented our erroneous declaractions (a compiler assert definition): (devzone.nordicsemi.com/.../

My latest attempt at flash_placement.xml: flash_placement.xml

To provide help for others with the aforementioned issues, with this latest flash_placement.xml, while seemingly solving the 'UNPLACED_SECTIONS' and 'variably modified' erros, I now only get the build error: Cannot find run section .fast_run referenced in fast


UPDATE 1:

Using an updated flash_placement.xml (a dynamic one without manual size and start attributes), I have gotten rid of the sections and cannot find run section issues; however, now I am receiving six 'undefined reference to...' errors in nrf.sdh.o (output of nrf_sdh.c ....):

Errors: image description

UPDATE 2:

I am now facing just a 'cyclic memory section dependency with section .fs_data_run' error with the linker.

Building ‘ble_app_template_pca10056_s140’ from solution 
‘ble_app_template_pca10056_s140’ in configuration ‘nrf52840_xxaa’
Generating linker script ‘ble_app_template_pca10056_s140.ld’
cyclic memory section dependency with section .fs_data_run
Build failed

flash_placement.xml with 'cyclic memory error' flash_placement.xml

with section placement macros (nRF52840 + S140): FLASH_START=0x22000 SRAM_START=0x20002A08

How do I resolve the flash_placement.xml to get my NRF52840 + S140 working on Segger Embedded Studio?

Related