Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
STM32 - CAN - Fix RTR position bit in TX mailbox register #5610
The RTR bit that defines the type of CAN message (Data or Remote) was written as bit0 in CAN_TIxR (the CAN TX mailbox).
Bit 0 TXRQ: Transmit mailbox request
Bit 1 RTR: Remote transmission request
The RTR bit has been shifted by 1 to the left in order to put it in the right place.
Bad behavior observed : Only Data message were sent, even if CAN::write(CANMessage msg) was called with a Remote-type message as argument.
After fix : Remote messages are correctly sent.
Build number : 636
Build number : 266
Build number : 294