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 doesn't print

Guru 10750 points

Hi,

I'm running on the beagleboard using CCS3.3 / CGT 7.0.4 / BIOS 5.33.06, from time to time the LOG_printf stop printing and I need to restart the CCS any reason for this?

Many Thanks,

HR

  • This is likely a problem in RTDX.  Which type of emulator are you using?  Can you try to "reset" the target before every load of code and see it that improves things?  No more work is planned for RTDX.  We are working to provide alternate transports (ethernet, UART) in future releases of the tools.

    Regards,
    -Karl-

  • Hi Karl,

    I'm using the SpectrumDigital XDS510 USB Plus, Yes, resetting the target helps,

    Many Thanks,

    HR

  • Hi, Karl

    I have the similar question. For example, i try to debug DSP BIOS 5 example "tsk". In this example, 3 tasks with same priority have been created with the Configuration Tool.  Each task has a computation loop consisting of a LOG_printf().

     

    /*

     *  ======== task ========

     */

    Void task(Arg id_arg)

    {

        Int     id = ArgToInt (id_arg);

        Int     i;

     

        for (i = 0; i < NLOOPS ; i++) {

            LOG_printf(&trace, "Loop %d: Task %d Working", i, id);

            TSK_yield();

        }

        LOG_printf(&trace, "Task %d DONE", id);

    }

    But in Printf Logs does not display the first execution of LOG_printf! So, there's no record of "Loop 0: Task 0 Working"

     

    We have the following:

    time, seqID, formattedMsg, logger

    1, 1, Loop 0: Task 1 Working, trace

    2, 2, Loop 0: Task 2 Working, trace

    3, 3, Loop 1: Task 0 Working, trace

    4, 4, Loop 1: Task 1 Working, trace

    5, 5, Loop 1: Task 2 Working, trace

    6, 6, Loop 2: Task 0 Working, trace

    7, 7, Loop 2: Task 1 Working, trace

    8, 8, Loop 2: Task 2 Working, trace

    9, 9, Task 0 DONE, trace

    10, 10, Task 1 DONE, trace

    11, 11, Task 2 DONE, trace

    How to solve this problem?
    Best regards.

     

     

  • Can you check to see what size your logger is? It looks like the logger is wrapping and overwriting the first entry. If you increase the size of the logger, it should show up.

    Todd

  • Hi, Todd

    No, the size of logger does not affect the result. Printf Logs has the same result for all bios5 examples.

    Currently, trace object declared as:

    var trace = bios.LOG.create("trace");

    trace.bufLen = 1024;

    trace.logType = "circular";

     

    But, when i try to debug step-by-step then all messages appear. Please, try create an new bios5 project with any template examples and check it.

    Thanks