This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: ti-cgt-arm_16.9.2.LTS

Tool/software: TI C/C++ Compiler

Hello Support,

I have enabled "-mo" compilation option in the make file to detect dynamic stack overflow and upon rebuilding my project ended up with the following error:

undefined first referenced
symbol in file
--------- ----------------
handle_stkovf ..\..\..\SOURCE\LIB\Compiler_TDA2EX\Startup_Files_ti_cgt_arm_V525\lib\rtsv7M4_T_le_eabi.lib<stkchk_t2.obj>

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "..\Obj\Application.elf" not
built

>> Compilation failure
make.exe: *** [Application.elf] Error 1

It seems that the definition of "handle_stkovf" is not present in the libraries provided with CCS7 compiler. This error gets resolve if I add a stub definition of the function "handle_stkovf" in my application.  Does "-mo" option support in CCS7 compiler? Or any alternative way to get rid of this issue?

 

CCS version: CCS7

Compiler used: ti-cgt-arm_16.9.2.LTS

Controller: TDA2EX

 

Thanks in advance,

Sandeep Bopche

  • Unfortunately, the stack overflow feature is no longer supported.  It is an error that the documentation still mentions it.  I filed CODEGEN-5496 in the SDOWP system to have this oversight addressed.  I apologize for the trouble.

    I understand TI-RTOS has features for detecting stack overflow.  Perhaps that is a practical alternative.

    Thanks and regards,

    -George