2017-05-02 07:59 PM
Dear all,
I using CubeMx(F0_V1.7.0) to generate code for STM32F072. My pin definition are PB8(CAN_Rx) / PB9(CAN_Tx) when i use loopback mode that CAN Tx has signal out, but i use normal mode that CAN Tx has no signal out.
BTW, when normal mode that CAN transmit has not success, code will be hang-up here:
if (HAL_CAN_Transmit(&hcan, 10) != HAL_OK) { /* Transmition Error */ Error_Handler(); }Thanks a lot.
2017-05-02 08:19 PM
You will need a bus transceiver, and it will need a responding device on the bus to acknowledge the message being sent
2017-05-02 10:27 PM
May i short CAN Tx & Rx for self test?
2017-05-03 05:31 AM
Hi Clive,
You are right, the CAN bus is work when i connected transceiver & responding device.
Thanks a lot!