How to invoke flexcan event callback

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to invoke flexcan event callback

跳至解决方案
999 次查看
chris_010
Contributor III

I use flexcan_1 of S32K312  to communicate with PCANpro,the communication seems well, mcu can receive and send data.  However, the callback function fails to work properly. What is the reason for this? Is there any need to register or monitor the callback function? No relevant APIs were found.

here are my code and configuration.

---- DMA is used for SPI,it does no matter with can.

chris_010_0-1766912460665.png

chris_010_1-1766912489091.png

chris_010_2-1766912692115.png

chris_010_3-1766912722883.png

 

chris_010_4-1766912734801.png

 

 

 

 

标记 (2)
0 项奖励
回复
1 解答
956 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@chris_010

Please refer to the demo in the attachments, the RTD is 5.0.0.

在原帖中查看解决方案

0 项奖励
回复
1 回复
957 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@chris_010

Please refer to the demo in the attachments, the RTD is 5.0.0.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2269368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E8%B0%83%E7%94%A8%20flexcan%20%E4%BA%8B%E4%BB%B6%E5%9B%9E%E8%B0%83%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269368%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%BD%BF%E7%94%A8%20S32K312%20%E7%9A%84%20flexcan_1%20%E4%B8%8E%20PCANpro%20%E9%80%9A%E4%BF%A1%EF%BC%8C%E9%80%9A%E4%BF%A1%E4%BC%BC%E4%B9%8E%E8%89%AF%E5%A5%BD%EF%BC%8C%E5%8D%95%E7%89%87%E6%9C%BA%E5%8F%AF%E4%BB%A5%E6%8E%A5%E6%94%B6%E5%92%8C%E5%8F%91%E9%80%81%E6%95%B0%E6%8D%AE%E3%80%82%20%20%E4%BD%86%E6%98%AF%EF%BC%8C%E5%9B%9E%E8%B0%83%E5%87%BD%E6%95%B0%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%E3%80%82%E5%8E%9F%E5%9B%A0%E4%BD%95%E5%9C%A8%EF%BC%9F%20%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E6%B3%A8%E5%86%8C%E6%88%96%E7%9B%91%E6%B5%8B%E5%9B%9E%E8%B0%83%E5%87%BD%E6%95%B0%EF%BC%9F%E6%9C%AA%E6%89%BE%E5%88%B0%E7%9B%B8%E5%85%B3%E7%9A%84%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%8E%A5%E5%8F%A3%E3%80%82%3C%2FP%3E%3CP%3E%E4%BB%A5%E4%B8%8B%E6%98%AF%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E5%92%8C%E9%85%8D%E7%BD%AE%E3%80%82%3C%2FP%3E%3CP%3E----%20DMA%20%E7%94%A8%E4%BA%8E%20SPI%EF%BC%8C%E4%B8%8E%20can%20%E6%97%A0%E5%85%B3%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chris_010_0-1766912460665.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chris_010_0-1766912460665.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371258iB65A9A6B4309E35A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chris_010_0-1766912460665.png%22%20alt%3D%22chris_010_0-1766912460665.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chris_010_1-1766912489091.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chris_010_1-1766912489091.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371259iB5DFA5FC90589FB9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chris_010_1-1766912489091.png%22%20alt%3D%22chris_010_1-1766912489091.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chris_010_2-1766912692115.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chris_010_2-1766912692115.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371260i4477A6D4D37214E9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chris_010_2-1766912692115.png%22%20alt%3D%22chris_010_2-1766912692115.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chris_010_3-1766912722883.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chris_010_3-1766912722883.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371261i66F7CC236D193B40%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chris_010_3-1766912722883.png%22%20alt%3D%22chris_010_3-1766912722883.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22chris_010_4-1766912734801.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22chris_010_4-1766912734801.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371262i155F15E917659DA4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22chris_010_4-1766912734801.png%22%20alt%3D%22chris_010_4-1766912734801.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20invoke%20flexcan%20event%20callback%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269429%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%40%3CSPAN%3Echris%3C%2FSPAN%3E_010%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%E8%AF%B7%E5%8F%82%E9%98%85%E9%99%84%E4%BB%B6%E4%B8%AD%E7%9A%84%E6%BC%94%E7%A4%BA%EF%BC%8CRTD%20%E4%B8%BA%205.0.0%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E