AnsweredAssumed Answered

STM32F072 CAN bus issue

Question asked by Hugo Lin on May 3, 2017
Latest reply on May 3, 2017 by Clive One

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.

Outcomes