CAN_PAL returns STATUS_BUSY

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

CAN_PAL returns STATUS_BUSY

跳至解决方案
3,174 次查看
samvidh
Contributor II

Hi,

I have successfully initialized CAN with 500kbps and CAN_ConfigTxBuff using CAN_PAL and when i tried to send a message using CAN_SEND its not working, while debugging got to know FLEXCAN_StartSendData returning STATUS_BUSY and exiting. why its happening and how to rectify this problem?

0 项奖励
回复
1 解答
3,012 次查看
samvidh
Contributor II

its working now thankyou..

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,013 次查看
samvidh
Contributor II

its working now thankyou..

0 项奖励
回复
3,157 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what is the board you are using? Do you have CAN transceiver active? What is the other node connected to your CAN bus? Do you see any signal on CAN lines? Does the module detect any kind of error (see ECR, ESR1 registers)?
There is can_pal demo example within SDK installation so you can refer to it. 

BR, Petr

0 项奖励
回复
3,138 次查看
samvidh
Contributor II

Hi,

I'm using s32k144 microcontroller with custom board, have an can transceiver and using bus master to check for CAN messages on the bus, and can see only a error message on the bus and not sure About ECR and ESR1 registers.

Hope this helps you to answer!!

0 项奖励
回复
3,090 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

FlexCAN's ECR and ESR1 registers can give you info about type of error detected by FlexCAN module.
Check it within debugger or read within code. If you see message transmitted by your MCU on the bus, but terminated by error frame, it could be simply wrong CAN bit timing setting, be sure it is set similarly for each node connected.

BR, Petr

0 项奖励
回复