Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COTmrService stops all timers on failed CO_IF_CAN_DRV.Send? #148

Open
Jef-GB opened this issue Oct 10, 2023 · 0 comments
Open

COTmrService stops all timers on failed CO_IF_CAN_DRV.Send? #148

Jef-GB opened this issue Oct 10, 2023 · 0 comments
Labels
question Further information is requested

Comments

@Jef-GB
Copy link

Jef-GB commented Oct 10, 2023

Setup desc.

I am running a FreeRtos setup with an ISR handling the COTmrService function call and a FreeRtos task handling the COTmrProcess.

Problem behavior

When the Can Interface driver send method (CO_IF_CAN_DRV.Send) returns -1, what means that it failed to send, all timers are stopped. The CO_IF_TIMER_DRV.Stop function is invoked, resulting in the COTmrProcess blocking execution. This also results in the HBConsumer not being triggered anymore if the communication is lost for longer than the consuming time.

Question

What is the reason for all timers stopping when there is no CAN data being send or received anymore? Is there a way to work around this? And how do I still have the HB consumer active even when I am not connected to the bus anymore? (With spinning motors, this can result in a dangerous situation).

@michael-hillmann michael-hillmann added the question Further information is requested label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants