Skip to main content
YElsh.1
Visitor II
March 26, 2022
Question

can't find CanMsgTypedef in the stm32l4xx_hal_can.h

  • March 26, 2022
  • 2 replies
  • 691 views

I am trying to init the can tx and rx, what i see from the tutorial there should be a CanMsgTypedef in the stm32 driver for the specific mcu. now I am using the stm32l4xx_hal_can.h since I am using the stm32l4a6zg mcu that comes with the nucluos 144 board. help

i am using stm32cubeIDE to program

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 27, 2022

Make sure the CAN module is enabled in stm32l4xx_hal_conf.h

What is using CanMsgTypedef, where did that code come from?

What tutorial? Provide an actual cite.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
Super User
March 27, 2022

> can't find CanMsgTypedef in the stm32l4xx_hal_can.h

Why do you think it should be in there?

What tutorial?

Edit:

Only place I can find it is here, which is certainly not part of HAL:

https://github.com/jiauka/STM32F1_CAN/blob/master/STM32F1_CAN.h

"If you feel a post has answered your question, please click ""Accept as Solution""."