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

RX0OVR bit gets stuck #29

Closed
obdevel opened this issue Jun 24, 2021 · 2 comments
Closed

RX0OVR bit gets stuck #29

obdevel opened this issue Jun 24, 2021 · 2 comments

Comments

@obdevel
Copy link

obdevel commented Jun 24, 2021

Sometimes, under heavy receive load, the RX0OVR bit in the error flag register get 'stuck' on. The errorFlagRegister() method returns 64. It's difficult to reproduce reliably.

RX0OVR: Receive Buffer 0 Overflow Flag bit
Sets when a valid message is received for RXB0 and RX0IF (CANINTF[0]) = 1 - Must be reset by MCU

It does coincide with a 'lost' message at the application level (I track a message sequence number in my code). Only a power cycle or grounding the reset pin will resolve it.

I am not using interrupts and am polling frequently for new messages. Receive buffers = 8 but the high watermark is never above 2.

Any thoughts ? Thanks.

MCU is an AVR (1284P).

@pierremolinaro
Copy link
Owner

pierremolinaro commented Jun 26, 2021 via email

@obdevel
Copy link
Author

obdevel commented Jun 28, 2021

Thanks Pierre. That makes sense.

I have a shortage of interrupts, which is why I was using the poll method instead.

I'll close this issue.

@obdevel obdevel closed this as completed Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants