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.

TMS320F28379D: How to enable floating value print?

Part Number: TMS320F28379D


Hello Everyone,

I am trying to do some floating-point calculations and then print out the result using the UARTprintf function. But I noticed that the floating-point value is not working for my TMS320F28379D control card. Can anyone please tell me how can I enable floating-point support?

Kind regards

Mukesh Ghosh

  • Hi,

    Are the correct values being shown in the expressions and memory window?

    -Shantanu

  • Hello Shantanu,

    I am just trying to printout simple value like,

    float val = 3.1416f;

    UARTprintf("The value = %.4f\n");

    In the SCI terminal screen its printing out "The value =  ERROR4F". 

    Also I tried to write down float value to SD card but it didn't works also

    for(b=0; b<9; b++)
    {
          k += sprintf(str+k , "%.4f\t", val);
    }

    fresult = f_write(&g_sFileObject, str, sizeof(str)-1, &br);
    if(fresult == FR_OK)
    {
         UARTprintf("f_write success\n");
    }

    I searched some old forum question I found that some other people had similar problem but I dont know How they solve this problem. If you can suggest me any appropriate solution it would be nice. 

    Kind regards

    Mukesh Ghosh