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.

LOG_printf in CCSv6

Dear all,

I am using CCS V6 with DSP BIOS V5.4.2 and I'm trying to do some diagnostic outputs either with LOG_printf or with printf.


I created a LOG-object called prokatimLOG in DSP-BIOS. The code line:

LOG_printf(&prokatimLOG, "%5.3f", a);

just produces

f

at the output. i.e. it ignores the % and doesn't print me the variable a.

As with the output of printf: I don't find it anywhere in CCS, it doesn't appear in the Console-window.

I'm sure it worked with CCSv5.

Can anyone please help me?

Here is the code:

/*
 * main.c
 */

#include <csl.h>
#include <pokatim2015cfg.h>
#include <stdio.h>

int main(void) {
    
    float a=123.456;

    printf("%5.3f",a);

    LOG_printf(&prokatimLOG, "%5.3f", a);
    return 0;
}

Thanks for your help

GT