CAN_PAL returns STATUS_BUSY

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

CAN_PAL returns STATUS_BUSY

ソリューションへジャンプ
2,883件の閲覧回数
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 解決策
2,721件の閲覧回数
samvidh
Contributor II

its working now thankyou..

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,722件の閲覧回数
samvidh
Contributor II

its working now thankyou..

0 件の賞賛
返信
2,866件の閲覧回数
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 件の賞賛
返信
2,847件の閲覧回数
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 件の賞賛
返信
2,799件の閲覧回数
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 件の賞賛
返信