Timing Issues When Writing to Disconnected CAN channel
Posted: Tue 17. Oct 2023, 22:18
Hello,
I am running an application based on the 31_SIMPLE_TCP_SERVER example.
My modification involves sending a test CAN message out of a port periodically from a RTX thread.
If I have a CAN device connected, I can transmit as fast as I like (say every one millisecond)
However, if I disconnect the CAN port, it seems to create an additional load on the RTOS and causing error. Specifically, I'm receiving the osRtxErrorTimerQueueOverflow error.
I expect the CAN_Write function to return the CAN_ERR_TX_FULL, but I didn't expect it to cause any additional timing issues with my system.
I checked the delta time to the call to CAN_Write, and it is consistent regardless of if another CAN device is connected or not. This makes sense as there are no while loops in the function.
Is there any added interrupt load that the FPGA introduces when sending to a disconnected CAN network?
Thanks,
Dominic
I am running an application based on the 31_SIMPLE_TCP_SERVER example.
My modification involves sending a test CAN message out of a port periodically from a RTX thread.
If I have a CAN device connected, I can transmit as fast as I like (say every one millisecond)
However, if I disconnect the CAN port, it seems to create an additional load on the RTOS and causing error. Specifically, I'm receiving the osRtxErrorTimerQueueOverflow error.
I expect the CAN_Write function to return the CAN_ERR_TX_FULL, but I didn't expect it to cause any additional timing issues with my system.
I checked the delta time to the call to CAN_Write, and it is consistent regardless of if another CAN device is connected or not. This makes sense as there are no while loops in the function.
Is there any added interrupt load that the FPGA introduces when sending to a disconnected CAN network?
Thanks,
Dominic