Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Linker error - Segger embedded studio

I am getting the following errors.

Building ‘1’ from solution ‘1’ in configuration ‘Debug’
Generating linker script ‘1.ld’
Linking 1.elf
Output/1 Debug/Obj/ses_nRF_Startup.o: In function `InitializeUserMemorySections':
undefined reference to `__start_nrf_sections'
undefined reference to `__start_nrf_sections_run'
undefined reference to `__end_nrf_sections_run'
Build failed

I can find the references in - "ses_nRF_Startup.s" file. but couldnt find the declarations. 

Can someone help?

Parents
  • Hi,

    It is probably that you have forgotten to include the path. Click on your project in the project explorer on the left. Then select Project(Tab on top) -> Edit Options -> Select Preprocessor tab(Remember to change the box on top from "Debug" to "Common"). Add the path of the file to User Include Directories field to include the device header files.

    Have a look at the tutorial.

Reply
  • Hi,

    It is probably that you have forgotten to include the path. Click on your project in the project explorer on the left. Then select Project(Tab on top) -> Edit Options -> Select Preprocessor tab(Remember to change the box on top from "Debug" to "Common"). Add the path of the file to User Include Directories field to include the device header files.

    Have a look at the tutorial.

Children
Related