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

Cannot open linker script file nrf_common.ld

Hello,

we are using SEGGER Embedded Studio for ARM 4.16 to program Nordic chip nRF52832 (SDK is nRF5_SDK_15.3.0).
We would like to have some functions executed in RAM and wanted to use a manual linker script for this (as described in "SEGGER Linker, A linker for Cortex-M Microcontrollers, User Guide & Reference Manual").

We have activated the manual linker script within the linker options. Everytime we select a linker script (for ex. rtc_gcc_nrf52.ld in the rtc exemple case), following error message appears:
C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.16/gcc/arm-none-eabi/bin/ld: cannot open linker script file nrf_common.ld: No such file or directory
Build failed

Any idea why ?

Parents Reply Children
  • My flash_placement.xml file looks like this. Where should I add this term to remove cannot open linker script file nrf_common.ld.

    <!DOCTYPE Linker_Placement_File>
    <Root name="Flash Section Placement">
      <MemorySegment name="$(FLASH_NAME:FLASH)">
        <ProgramSection alignment="0x100" load="Yes" name=".vectors" start="$(FLASH_START:)" />
        <ProgramSection alignment="4" load="Yes" name=".init" />
        <ProgramSection alignment="4" load="Yes" name=".init_rodata" />
        <ProgramSection alignment="4" load="Yes" name=".text" />
        <ProgramSection alignment="4" load="Yes" name=".dtors" />
        <ProgramSection alignment="4" load="Yes" name=".ctors" />
        <ProgramSection alignment="4" load="Yes" name=".rodata" />
        <ProgramSection alignment="4" load="Yes" name=".ARM.exidx" address_symbol="__exidx_start" end_symbol="__exidx_end" />
        <ProgramSection alignment="4" load="Yes" runin=".fast_run" name=".fast" />
        <ProgramSection alignment="4" load="Yes" runin=".data_run" name=".data" />
        <ProgramSection alignment="4" load="Yes" runin=".tdata_run" name=".tdata" />
        <ProgramSection alignment="4" keep="Yes" load="Yes" runin=".fs_data_run" name=".fs_data" />
      </MemorySegment>
      <MemorySegment name="$(RAM_NAME:RAM);SRAM">
        <ProgramSection alignment="0x100" load="No" name=".vectors_ram" start="$(RAM_START:$(SRAM_START:))" />
        <ProgramSection alignment="4" load="No" name=".fast_run" />
        <ProgramSection alignment="4" load="No" name=".data_run" />
        <ProgramSection alignment="4" load="No" name=".tdata_run" />
        <ProgramSection alignment="4" load="No" keep="Yes" name=".fs_data_run" address_symbol="__start_fs_data" end_symbol="__stop_fs_data" />
        <ProgramSection alignment="4" load="No" name=".bss" />
        <ProgramSection alignment="4" load="No" name=".tbss" />
        <ProgramSection alignment="4" load="No" name=".non_init" />
        <ProgramSection alignment="4" size="__HEAPSIZE__" load="No" name=".heap" />
        <ProgramSection alignment="8" size="__STACKSIZE__" load="No" place_from_segment_end="Yes" name=".stack" />
        <ProgramSection alignment="8" size="__STACKSIZE_PROCESS__" load="No" name=".stack_process" />
      </MemorySegment>
      <MemorySegment name="$(FLASH2_NAME:FLASH2)">
        <ProgramSection alignment="4" load="Yes" name=".text2" />
        <ProgramSection alignment="4" load="Yes" name=".rodata2" />
        <ProgramSection alignment="4" load="Yes" runin=".data2_run" name=".data2" />
      </MemorySegment>
      <MemorySegment name="$(RAM2_NAME:RAM2)">
        <ProgramSection alignment="4" load="No" name=".data2_run" />
        <ProgramSection alignment="4" load="No" name=".bss2" />
      </MemorySegment>
    </Root>
    

  • We were not able to open linker script file. We found a different way to place function into RAM without using linker script file.

  • can you tell me how you have resolved? Or can you tell me how to resolve these errors.

     `.bootloaderSettings' will not fit in region `UNPLACED_SECTIONS' region .

       In function `nrf_dfu_transports_init':
         undefined reference to `__stop_dfu_trans'
         undefined reference to `__start_dfu_trans'
       In function `nrf_dfu_bl_continue':
        undefined reference to `__isr_vector'
    Build failed

  • Does anyone resolved it ? I am facing the same issue after adding any section 

  • Hi

    This ticket is more than 3 years old at this point, and we've released multiple SDK versions (and versions of the SEGGER IDE has been released) since this with various bug fixes. I'd strongly recommend opening a new ticket explaining your issue in detail and add what SDK version etc. you're using for development.

    Best regards,

    Simon

Related