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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
466 Views
WYC
Contributor I

WYC_0-1746688594550.png

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

0 Kudos
Reply
1 Solution
430 Views
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 

View solution in original post

0 Kudos
Reply
3 Replies
431 Views
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 Kudos
Reply
395 Views
WYC
Contributor I

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

0 Kudos
Reply
329 Views
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 Kudos
Reply