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/TMS570LC4357: TMS570LC4357

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

Hello,

I want to run a small program on TMS570LC board. The main function is as follow: 

int main(void)
{
  unsigned int i, j;
  unsigned char r;
  unsigned long long cycles0[NRUNS], cycles1[NRUNS], cycles2[NRUNS];
  int valid, response;

  printf("\n");
  printf("===========================================================================================\n");
  printf("Testing signature scheme qTESLA, system %s, tests for %d iterations\n", CRYPTO_ALGNAME, NRUNS);
  printf("===========================================================================================\n");

return 0;

}

The debug stops in the first printf instruction. When I suspend it, the code is indicates :

dataEntry
        b   dataEntry
        b   phantomInterrupt
        ldr pc,[pc,#-0x1b0]
        ldr pc,[pc,#-0x1b0]

Best,

Rachel.

  • I presume you do not use the TI ARM compiler, because the symbol name dataEntry does not appear in the TI ARM compiler RTS code.

    It looks like your program ran off in an uncontrolled manner, finally stopping at a spin loop on the label dataEntry. 

    I suspect you ran out of stack space.  Calling printf, among other things, requires lots of stack.  Furthermore, consider this line ...

    Soundes Marzougui said:
    unsigned long long cycles0[NRUNS], cycles1[NRUNS], cycles2[NRUNS];

    If NRUNS is a large constant, these arrays will take up lots of stack space.

    Thanks and regards,

    -George

  • Hello Georg,
    The compiler version I am using is TI v18.1.4.LTS. Is it the right one to use?
    Also the tables I create are of small size. I also make sure that the heap and stack are tuned in the right way.
    How can I change the Compiler under ccs?
    Best,
    Rachel.
  • Actually my problem was that I installed GIO Driver. That data entry message comes from a generated code of GIO Driver (By HalcoGen tool).
    I installed TI ARM Compiler. and used the rtsv7R4_T_be_v3D16_eabi.lib as a runtime library.
    I got a new issue :D
    When I dubeg the code I cannot get the debug arrow. It looks like the code is blocked before starting the debug.

    Best,
    Rachel.
  • Since you have found a resolution, I closed this issue out.

    Soundes Marzougui said:
    When I dubeg the code I cannot get the debug arrow. It looks like the code is blocked before starting the debug.

    Unfortunately, I cannot help with this issue.  I'd appreciate if you would start a new thread in the Hercules device forum.

    Thanks and regards,

    -George