Link error, undefined symbol __main_thread_stack_base__ and __main_thread_stack_end__

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
swimmingdog
Posts: 1
Joined: Mon Jul 27, 2020 12:06 am

Link error, undefined symbol __main_thread_stack_base__ and __main_thread_stack_end__

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Link error, undefined symbol __main_thread_stack_base__ and __main_thread_stack_end__

Post by Giovanni »

Hi,

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

Giovanni
Post Reply