-
Notifications
You must be signed in to change notification settings - Fork 65
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
Issue with mailbox interrupts #58
Comments
try setting enableMBInterrupts last, after the mailbox configurations (including filters) |
Sorry, that did not solve the problem. Here are the frames that are sent on the bus if it can help :
|
Filtering the frame with ID I still wonder what could be causing this issue though. |
I have had the same issue with the CAN2 interface. I had to filter out 3 different frames on 3 different mailboxes which called 3 different interrupts . The interrupts only worked when the frame IDs where placed in the mailboxes in decreasing order:
Has anyone experienced the same behavior ? It is not really a problem as long as it is written somewhere I guess. |
I ran code from your first post, and it works fine (at least on the github version tested today). The only thing is the filter for the MB, you don't designate EXT for it. The mailbox setMB is already set as EXT(ended), the Filter is implied to be extended and the EXT you put in the filter counts as a secondary ID (as if you did a dual ID filter). So simply remove EXT when setting a mailbox filter, a filter is automatically set based on the mailbox's EXT/STD state from setMB. the only time EXT/STD is used in a filter is only when using the FIFO filter system. |
Output from code in first post with EXT removed from setMBFilter using github's current release.
|
Also the ENUM value for EXT is 1, so essentially you were doing dual filter for example: |
Hello,
I am trying to listen to 3 different extended CAN frames with IDs
0x0CF02984
,0x0CF02983
and0x0CF02985
.Here is the code I am using in setup() :
Here is the result of mailboxStatus() :
The interrupt_1 and interrupt_2 are triggered as expected when a message is sent but the interrupt_3 function is not triggered using this code.
If I comment out everything related to Mailbox 1 and Mailbox 2 however, interrupt_3 is triggered.
Any help understanding what I am doing wrong would be much appreciated !
The text was updated successfully, but these errors were encountered: