基于S32M244芯片使用S32 Design Studio for S32 Platform 3.5 IDE的CAN组件配置

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

基于S32M244芯片使用S32 Design Studio for S32 Platform 3.5 IDE的CAN组件配置

跳至解决方案
638 次查看
WYC
Contributor I

WYC_0-1746688594550.png

想了解有关FlexCAN的配置教程,现在想把CAN通讯模块加入到BLDC的六步换向代码中,需要的组件配置以及回调函数等等问题,之前在S32DS for ARM v2.2使用过过CAN_pal组件配置,但是在这里IDE没有pal组件,这些问题是为什么呢?

0 项奖励
回复
1 解答
602 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CAN_pal was part of SDK driver, there is no such in RTD driver. Use FlexCAN_Ip driver instead.
I will send you some project done by Apps team.

BR, Petr 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
603 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

CAN_pal was part of SDK driver, there is no such in RTD driver. Use FlexCAN_Ip driver instead.
I will send you some project done by Apps team.

BR, Petr 

0 项奖励
回复
567 次查看
WYC
Contributor I

我在使用您推荐的demo仍然出现问题,可以适配我的代码帮我做一下吗?

0 项奖励
回复
501 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

have you enable CANPHY and its supply via Aec as was shown in the example I shared?
Generally for testing CAN; check in debugger MCR, ECR,ESR1 registers to know module status and if any errors are detected after sending messages. Measuring CAN lines with scope/analyzer is also advisable.

BR, Petr

0 项奖励
回复