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
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.
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