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.

TMS320F28335 Simulator - Printing to the console window

Guru 20045 points

Hello,

printf() takes up too much memory.  Is there any other way to have the program print to the console window, e.g. special calls to the simulator?

Stephen

  • Unfortunately I don't believe there is any other way to print to the console window, but I can confirm this with the simular experts.

  • Stephen,

             Can you please let us know informations you are print in the console. I am trying to see if we can provide alternate way to dump the message from the simulator without using the print message.

     

    BR/Abhilash

  • Hello Abhilash,

    Thanks for the reply.

    I will be using it to output Unit Test Status, i.e. "Unit Test 1 Completed", "Unit Test 1 Failed" and so forth.  There are multiple unit tests in a project.

    Also, I might output the value of some variables, but that's not so important as the unit test status.

    Stephen

  • As mentioned by Aarti in the early response there is no other way to get the print message in the console.

     

    For the above case, Would it not be possible use memory location to keep track of all test pass and failed. The code would be something like below

    if(passed){

        memory_location = memory_location | (1 << test_id)

    }else{

    memory_location = memory_location | (0 << test_id)

    }

    So would use one bit in a specific memory location to keep track on the test result.

    BR/Abhilash

  • Ok.  I could watch the variable in the variable window while it continuously updates.

    Thanks,
    Stephen