CAN_PAL returns STATUS_BUSY

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

CAN_PAL returns STATUS_BUSY

Jump to solution
2,348 Views
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 Kudos
Reply
1 Solution
2,186 Views
samvidh
Contributor II

its working now thankyou..

View solution in original post

0 Kudos
Reply
4 Replies
2,187 Views
samvidh
Contributor II

its working now thankyou..

0 Kudos
Reply
2,331 Views
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 Kudos
Reply
2,312 Views
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 Kudos
Reply
2,264 Views
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 Kudos
Reply