Trice use on RTOS based application #276
-
Hello Thomas, Thank you very much for making this very interesting project available to public! I would like to use your trace project on a RTOS based application where the trace is saved into a file for later analysis. On the test scenario I have 2 threads:
`void triceRTOSDataTransmit(void) {
}` Questions: On a hypothetical scenario where trace is generated faster than is consumed
Thank you very much for your time! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
2nd Question: The internal 8-bit cycle counter is usually enabled. If trices are lost, the receiver side will detect that because the cycle counter is not as expected. There is a chance of 1/256 that the detection does not work. You can check the detection by unplugging the trice UART cable for a time. |
Beta Was this translation helpful? Give feedback.
-
1st Question: It is your responsibility to produce less data than transmittable. If this is not guarantied a data loss is not avoidable or you have to slow down the program. The double buffer as fastest solution has no overflow check. My recommendation: Make the buffer big and emit the maxDepth cyclically, every 10 or 1000 seconds. Then you know the needed size. It is influenced by the max trice burst and the buffer switch interval. |
Beta Was this translation helpful? Give feedback.
1st Question: It is your responsibility to produce less data than transmittable. If this is not guarantied a data loss is not avoidable or you have to slow down the program. The double buffer as fastest solution has no overflow check. My recommendation: Make the buffer big and emit the maxDepth cyclically, every 10 or 1000 seconds. Then you know the needed size. It is influenced by the max trice burst and the buffer switch interval.