2021-05-29 01:26 AM
Dear Guys
I get the "bit dominant error" when programming for can with STM32F302.
even i set CAN_MODE_SILENT_LOOPBACK mode , also get this error after exec the statement "SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ);"
anyone can help me thank you very much
2021-05-29 02:20 AM
Observe waveform on the CAN_Tx and CAN_Rx pins, using logic analyzer/oscilloscope.
For the CAN pins, read out the relevant GPIO registers content and check if they are properly set.
JW
2021-05-29 02:30 AM
hi Jan
thank you for you sending messages. I use STM32cubmax to generate code for can settings. actually, I set the CAN_MODE_SILENT_LOOPBACK mode also same problem. so i think do not need to check the one "CAN_Tx and CAN_Rx pins, using logic analyzer/oscilloscope. is correct? thank you.