AnsweredAssumed Answered

Dealing with error and overload CAN frames using HAL_CAN drivers.

Question asked by Eugenia Suarez on Mar 16, 2017
Latest reply on Mar 23, 2017 by Eugenia Suarez

Ithink this could be a silly question, but I would like to clarify with any doubt type. 

I'm working with HAL_CAN for the stm32L4. I'm developing a fw in a sw layer where I can configure CAN controller, filter banks, reset, send and receive, etc.. I'm configuring can data and remote frames format and I would like to know

  • if error frames and overhead frames must be also generated from user code or if it's a job for the STM32 under layers level (low level drivers)?
  • It's said, if my node has recived and error frame or if it has detected an error, the answer error frames from my node are they generated automatically, or must I do some code a part in order to generate an error frame?
  • How must my code deal with can error frames?
  • are these error frames keeping under HAL_CAN drivers? Does this layer some treatment of error/overload frames?

Thanks in advance.

Outcomes