• AVR Freaks

MCP2515 blocks tx/rx after receives can frame during trasmission

Author
vinnie92
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2019/06/17 00:42:04
  • Location: 0
  • Status: offline
2019/06/29 14:02:07 (permalink)
0

MCP2515 blocks tx/rx after receives can frame during trasmission

Hi,
I'm using MCP2515 with linux kernel driver. I discovered that if I'm trasmitting CAN frames at certain rate (in my case 2ms) and I start to receive CAN frames at the same rate (or maybe slower, I noticed that it does not really matter) the can communication stucks. Using the oscilloscope I noticed that the interrupt seems to remaining unmanaged. 
After some investigation I found this: https://community.nxp.com/thread/456907
I applied the modification suggested at the end of the thread (change the driver using IRQF_TRIGGER_LOW | IRQF_ONESHOT for interrupt registration) and I solved my issue. Now i think it is interesting to understand why this change fixes this issue. Is there any who can help me?
 
Thank you
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5