[SOLVED] Segger linker script

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Segger linker script

    Hello,

    I have the following statements in flash_placement.xml for in project Nordic nRF52833:

    <MemorySegment name="FLASH" start="$(FLASH_PH_START)" size="$(FLASH_PH_SIZE)">
    <ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_queue" inputsections="*(.nrf_queue*)" address_symbol="__start_nrf_queue" end_symbol="__stop_nrf_queue" />
    <ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections" address_symbol="__start_nrf_sections" />
    </MemorySegment>

    <MemorySegment name="RAM" start="$(RAM_PH_START)" size="$(RAM_PH_SIZE)">
    <ProgramSection alignment="0x100" load="No" name=".vectors_ram" start="$(RAM_START)" address_symbol="__app_ram_start__"/>
    <ProgramSection alignment="4" keep="Yes" load="No" name=".nrf_sections_run" address_symbol="__start_nrf_sections_run" />
    <ProgramSection alignment="4" keep="Yes" load="No" name=".log_dynamic_data_run" address_symbol="__start_log_dynamic_data" end_symbol="__stop_log_dynamic_data" />
    </MemorySegment>

    My project uses Segger linker script. What are the equivalent expressions for Segger Linker Script? I have found Segger linker user guide but didn't find exactly the equivalent for these expressions.

    Generally, is there any tool that converts flash_placement.xml to an equivalent Segger linker script (.icf) file?

    Thank you very much for your help,

    Sam
  • Hello Sam,

    Thank you for your inquiry.
    There is no conversion tool for the different script types available.
    For reference we recommend to create a new nrF52 project using CPU support package: segger.com/products/developmen…o/technology/cpu-support/

    This will create a simple hello world example with a memory map and a SEGGER Linker script that can be used for reference.

    For more information see the linker documentation:
    studio.segger.com/segger/UM20005_Linker.pdf

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.