AnsweredAssumed Answered

Stm32f1xx and can problem + bug on CUBEMX library

Question asked by marco on Nov 24, 2016
Latest reply on Nov 29, 2016 by marco
Hi, 

i have a little problem on Can program.

If you call HAL_CAN_Init and after HAL_CAN_Deinit, when you call again HAL_CAN_Init, the function "HAL_CAN_Init" return always Timeout on CAN1.

Its a bug ?


And i found this bug on file 

  * @file    stm32f1xx_hal_can.c
  * @author  MCD Application Team
  * @version V1.0.4
  * @date    29-April-2016


on function HAL_StatusTypeDef HAL_CAN_Transmit_IT(CAN_HandleTypeDef* hcan)

if you enter in this function, and you have CAN_TXSTATUS_NOMAILBOX, 
when you exit from, you will have the state of your can LOCKED.

Is missing the part with else{ unlock// return error// and other }

Sorry for my english

Outcomes