2024-10-07 11:08 PM
I have an STM32F407G discovery development kit. I activate CANBUS while doing pin configuration via CubeMX. Then in project manager > advanced settings > driver selector tab, I can select both LL library and HAL library in all options such as GPIO, DMA, USART, ADC. But when I want to select LL library for CANBUS, I see that only HAL library is available. Why is there no LL support for CANBUS in CubeMX? Is there any way to add it? I would appreciate if you can help me.
Solved! Go to Solution.
2024-10-08 03:58 AM - edited 2024-10-08 04:01 AM
@embeddedguy1 wrote:Why is there no LL support for CANBUS in CubeMX? .
Because there is no support for CAN in LL at all - CubeMX cannot add support that does not exist!
The available HAL & LL support is documented in UM1725, Description of STM32F4 HAL and low-layer drivers:
via: https://www.st.com/en/embedded-software/stm32cubef4.html#documentation
You can see that there is no LL CAN support
@embeddedguy1 wrote:Is there any way to add it?
No - because it does not exist.
See also:
2024-10-07 11:46 PM
Hello,
Not all peripherals have LL driver including CAN.
2024-10-08 03:50 AM
That's what I'm talking about, why do you answer just to answer?
2024-10-08 03:58 AM - edited 2024-10-08 04:01 AM
@embeddedguy1 wrote:Why is there no LL support for CANBUS in CubeMX? .
Because there is no support for CAN in LL at all - CubeMX cannot add support that does not exist!
The available HAL & LL support is documented in UM1725, Description of STM32F4 HAL and low-layer drivers:
via: https://www.st.com/en/embedded-software/stm32cubef4.html#documentation
You can see that there is no LL CAN support
@embeddedguy1 wrote:Is there any way to add it?
No - because it does not exist.
See also:
2024-10-08 04:15 AM
Because there is no LL driver for CAN. See this thread: https://community.st.com/t5/stm32-mcus-products/simulink-code-generation-support-for-stm32f407g-disc1-can-bus/m-p/728438/highlight/true#M262690