review the RTOS operation. please explain everything you see int the picture. me
ID: 3713674 • Letter: R
Question
review the RTOS operation. please explain everything you see int the picture. memo.
Trace started The trace will be dumped to disk if a call to configASSERT() fails. Uncomment the call to kbhit() in this file to also dump trace with a key press No errors - tick count 2501 free heap 1776 min free heap 600 No errors - tick count 5001 free heap 1684 min free heap 600 No errors - tick count 7501 free heap 1776 min free heap 404 No errors - tick count 10001 free heap 1776 - min free heap 404 No errors - tick count 12501 - free heap 1776 - min free heap 404 No errors tick count 15001 - free heap 1880 min free heap 404 No errors tick count 17501 - free heap 1776 min free heap 404 No errors tick count 20001 free heap 1776 min free heap 404 No errors - tick count 22501 free heap 1776 min free heap 404 1 1 0 6 - tree hea - tree heaExplanation / Answer
In this snapshot, user queries a free heap available on every tick trace recording.
configassert() is a macro that is same as Assert macro in C language and it is called through source file.
In this application, call for the interrupt is defined in configassert() and it gets fail if no parameter is given as input (Argument Length=0).
So at the start of trace record, it is printed as below:
"trace started and trace will be dumbed to disk....etc"
when configassert() is called then that recording is written to the file.
kbhit() function calls when the keyboard hits. Here the keyboard hit will not stop the trace recording.
If you wan to stop or interrupt recording by keyboard press then uncomment that code. Here it is commented. That is why it is printed like "Uncomment the kbhit()....etc"
Interrupt is called every 2500 tick counts.
For every interrupt it queries to check any errors, size of available heap is queried by xPortGetFreeHeapSize() API function. This information is then recorded and stored in the file.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.