-
Notifications
You must be signed in to change notification settings - Fork 122
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
Overflow flag in STM32L4xx #43
Comments
Buffer overflow in canopen is not the same as can overflow on a hardqare level. |
Two questions:
|
|
It actually does care. Look here : https://github.com/CANopenNode/CANopenNode/blob/8c7d852902b2d307e8b91a43332c14e366641e00/301/CO_Emergency.c#L580 I will mark this as enhancement to consider for next release. |
I found an issue that looks related to this ticket. Here's my use case where I detected this problem: I have a single ST device connected to my laptop via a CANbox (PCAN-USB). For some reason, I disconnect my CANbox. The device is left alone on the bus and can no longer communicate. The Tx overflow flag is raised. I'll try to figure out how to reset this flag "correctly" and let you know if I succeed. |
CanOpenSTM32/CANopenNode_STM32/CO_driver_STM32.c
Line 407 in c7fb1de
I found this comment. The STM32L4xxb and STM32F4xx sets the FOVR flag in the CAN_RFxR Register when an overrun occurs. I think overrun in STM language is the same as overflow in CanOpen language. This flag exists for each receive fifo.
STM Reference manual manual says:
Not sure if the flag also exists when using the FDCAN driver.
The text was updated successfully, but these errors were encountered: