Page 1 of 1

Link error, undefined symbol __main_thread_stack_base__ and __main_thread_stack_end__

Posted: Mon Jul 27, 2020 12:19 am
by swimmingdog
Hi All,

I am doing an implementation on TI LaunchPad: MSP-EXP430F5529LP, with CCS v10 and TI compiler.

At the last link step, it reports that
undefined first referenced
symbol in file
--------- ----------------
__main_thread_stack_base__ <whole-program>
__main_thread_stack_end__ <whole-program>

Where should I define these two symbols? Thanks a lot.

Re: Link error, undefined symbol __main_thread_stack_base__ and __main_thread_stack_end__

Posted: Mon Jul 27, 2020 6:51 am
by Giovanni
Hi,

Those needs to be exported by linker scripts, see "rules.ld" in the ARMCMx port.

Giovanni