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/TMS570LS3137: __TI_auto_init assembly routines

Part Number: TMS570LS3137


Tool/software: TI C/C++ Compiler

I understand from the responses of other queries raised in E2E forum related to __TI_auto_init that this library function initialize the C environment such as, global variables, static variables, RAM space. To check the functionality I invoked __TI_auto_init function and on analyzing the disassembly coverage in CCS  I found that the assembly instructions under PROCESS INITIALIZATION TABLE (Line No. - 457 to 514 ) after AUTO INIT ROUTINE never get covered. [NOTE: To verify if I am correct in this entire process I generated .lst file for __TI_auto_init and compared my coverage with .lst file]. If anyone can help me in understanding the functionality and how to cover these assembly routines under PROCESS INITIALIZATION TABLE it will be helpful to me. Also, If anyone can suggest any design document from TI regarding these library files (in "\ti\ccsv5\tools\compiler\arm_5.0.4\lib\rtssrc.zip") I will be grateful. 

For your reference, I am attaching the .lst file report of the assembly instructions which is not getting covered when I invoked __TI_auto_init.

Thanks.

  • PREETISH SANKHUA said:
    I found that the assembly instructions under PROCESS INITIALIZATION TABLE (Line No. - 457 to 514 ) after AUTO INIT ROUTINE never get covered.

    I presume you mean none of the instructions in the function perform_cinit execute.  For this code to run, you must build for the older TIABI or TI_ARM9_ABI, and you must have global or static variables that are explicitly initialized.

    PREETISH SANKHUA said:
    If anyone can suggest any design document from TI regarding these library files (in "\ti\ccsv5\tools\compiler\arm_5.0.4\lib\rtssrc.zip") I will be grateful. 

    The compiler installation directory contains a sub-directory named docs.  This directory contains a file with a name similar to spnu151g.pdf.  This is the TI ARM compiler manual, in PDF format.  For more background on the code discussed here, search for the section titled System Initialization.

    Thanks and regards,

    -George