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/TMS320F28377D: About the linking of rts2800_fpu32.lib, tricky stack pointer over flow

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

Hi expert,

Recently, my customer met a problem seems related to unwanted linking of rts2800_fpu32.lib in CMD file. The phenomenon is stack pointer (SP) sometimes run into error address like 0xFE00 and program stuck. (stack area start at 0x400 with a length of 0x100)

They limited the problem with a possible error linking command in CMD file like below:

They put rts2800_fpu32.lib into FLASH sector E in F28377D cpu1, I have never heard a practice like this, could you confirm this for me?

Additional questions in this problem:

1. Where can I find the linking rule of this library? (I saw some objective files in this library linked to .ebss some else to .text in example project)

2. If rts2800_fpu32.lib should not be linked into non-volatile memory like a flash, how does it case the SP overflow? Could you give a brief explanation on this?

Thanks

Sheldon He