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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
636件の閲覧回数
WYC
Contributor I

WYC_0-1746688594550.png

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

0 件の賞賛
返信
1 解決策
600件の閲覧回数
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 返答(返信)
601件の閲覧回数
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 件の賞賛
返信
565件の閲覧回数
WYC
Contributor I

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

0 件の賞賛
返信
499件の閲覧回数
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 件の賞賛
返信