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

Linker error while porting linker from gcc to segger

I am trying to use segger linker instead of gcc and followed the below link to port the changes

https://wiki.segger.com/Porting_from_GCC_to_SEGGER_Linker

I have tried to compile project :blinky_pca10056  using segger linker and I get the following errors

Linking blinky_pca10056.elf
undefined symbol: __end_nrf_sections_run
undefined symbol: __start_nrf_sections
undefined symbol: __start_nrf_sections_run
Build failed

can someone help on this issue? 

Parents
  • For a default project with one FLASH and one RAM region, these steps need to be done:

    1. Copy the SEGGER Linker Script template file from $(StudioDir)/samples/SEGGER_Flash.icf into your project directory.
    2. Copy the matching startup file from $(StudioDir)/samples/SEGGER_THUMB_Startup.s into your project directory.
    3. Set the project option "Linker" to "SEGGER".
    4. Set the project option "Linker Script File" to the linker script in your project directory.
    5. Remove thumb_crt0.s from your project.
    6. Add SEGGER_THUMB_Startup.s to your project. 
Reply
  • For a default project with one FLASH and one RAM region, these steps need to be done:

    1. Copy the SEGGER Linker Script template file from $(StudioDir)/samples/SEGGER_Flash.icf into your project directory.
    2. Copy the matching startup file from $(StudioDir)/samples/SEGGER_THUMB_Startup.s into your project directory.
    3. Set the project option "Linker" to "SEGGER".
    4. Set the project option "Linker Script File" to the linker script in your project directory.
    5. Remove thumb_crt0.s from your project.
    6. Add SEGGER_THUMB_Startup.s to your project. 
Children
No Data
Related