cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4xx CAN (controller area network) HAL_CAN_IsTxMessagePending

RFuji.2
Associate

Hello

I am working with STM32F446ZET7.

I can't transmit data.

When I debugged it, it was looping with​ HAL_CAN_IsTxMessagePending.

Status was 1:Pending transmission request on at least one of the selected Tx Mailbox.

Can you think of any reasons?

2 REPLIES 2
SofLit
ST Employee

Hello,

1- Check your hardware:

Are you using a complete CAN bus: your STM32F4xx + CAN transceiver + another node connected to the bus (+ termination resistors) that will receive your messages?

2- Check your CAN bitrate configuration.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
RFuji.2
Associate

I have found the cause.

It was caused by CAN transceiver(MCP2551) mode select pin.

Thank you.