cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Transmit Loopback Mode

MZimm.3
Associate II

Hello all,

I would like to put the CAN2 interface into operation on a NUCLEO STM32F466RE board. For this purpose I have programmed an example in which a BYTE array HELLO is to be sent in the loopback.

If I now pass the TxHeader Struct to the HAL_CAN_AddTxMessage() method, this method is executed without error. The signal recording on the TX pin also shows a data transmission. It's just not the data I expected.

My data from the TxHeader cannot be entered in the mailbox register. It looks like the registers are locked, although all mailboxes report that they are free.

What else can I do wrong at this point?

What else could be the reason that the mailbox cannot be written to?

Greetings

Michael0693W00000Y9cC4QAJ.png

10 REPLIES 10

Hello,

Thank you for the feedback. Indeed SRAM2 is a slave and it was the reason why it was not working.

As it was solved please "Select as best" the comment that answered your question. This will help other users to find that answer faster.

Thanks

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.