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

Segger linker script

Hello,

I have the following statement in flash_placement.xml:

 <ProgramSection alignment="4" keep="Yes" load="Yes" name=".nrf_queue" inputsections="*(.nrf_queue*)" address_symbol="__start_nrf_queue" end_symbol="__stop_nrf_queue" />

Any idea about its equivalent in Segger linker script?

Thanks,

Sam

  • Hi Sam,

    Any idea about its equivalent in Segger linker script?

    The file called flash_placement.xml in SDK projects is (sort of) the Segger linker script (or linker section placement file to be exact). The other parts of the linker configuration in SES projects is the linker section placement segments and the linker section placement macros, which you can configure here:

    Is this what you were looking for?

    Einar

  • Hi Einar,

    No, that's not what I am looking for.

    The issue is that when I create a new project under Segger Embedded Studio, the created project uses the new Segger linker and associated linker script (.icf file). However, most project examples provided by Nordic use the GNU linker with the flash_palcement.xml file. When I want to use the code provided by those examples and if those examples use 'section variables', I have to modify the Segger icf file to place to those sections variable and so far I have not found an example explaining that. Also, I didn't find any way to tell Segger Embedded Studio not to use their linker and generate the new project for GNU linker.

    Thanks,

    Sam

  • Hi Sam,

    Ah, now I see. I don't have any experience with the Segger linker, to be honest. Segger has some information here, which I am sure you have seen. Have you tried asking in the Segger forum?

Related