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.

CCS/TMS320F28379D: Illegal Operation Trap using sprintf

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

My code falls in a 'Illegal Operation Trap' when executing the following code:

char  fltTxt[20];

sprintf(fltTxt, "%.03f", 0.93);

I also tried with diferent format strings but got the same result.

Part : F28379D

Compiler version : TI v6.4.11

Level of printf support required (--printf_support) set to full.

  • Hi,

    I can't reproduce this here, but I am using a newer compiler: TI Compiler 16.9.1LTS on my F28M36 board (I don't have a F28379D).

    I am using the same printf_support level as you and both stack and heap set to 0x400. Perhaps this makes a difference? 

    Otherwise it may be possible that other code is influencing the sprintf() functionality - as you can tell from the picture my example test case is very simple.

    Hope this helps,

    Rafael

  • Rafael,

    Setting both stack and heap to 0x400 did not solve the problem.

    I have compiler TI v16.9.1.LTS installed but I cannot use it; when built for Flash, I get the following warning : absolute symbol "_RamfuncsLoadEnd" being redefined, and the application does not run. You can see details in the following post :

    e2e.ti.com/.../561983

    Thank you,

    Yves Belanger

    Gentec Inc.