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

Linker error when upgrading to SDK 17.0 from 15.2

I have moved my project over to SDK 17.0.  So far I have changed very little.

On compiling I straight away get a liner error: "Undefined reference to '__RAM1_segment_end__'"

This is on line117 of ses_startup_nrf_common.s

Code looks like this:

#ifndef STACK_INIT_VAL
#define STACK_INIT_VAL __RAM1_segment_end__
#endif

Reset_Handler:

  /* Perform prestart tasks. */
  b nRFInitialize

.thumb_func
afterInitialize:
  
#ifndef NO_STACK_INIT
  /* Initialise main stack */
  ldr r0, =STACK_INIT_VAL

Error is on last line of this code.

in my SDK15.2 I don't know how to see if STACK_INIT_VAL is defined, or where "__RAM1_segment_end__", so am a bit stuck.  Any ideas?

Parents Reply Children
No Data
Related