cancel
Showing results for 
Search instead for 
Did you mean: 

How to include FDCAN and UART libraries without generating in CubeMX basic initialization code for them?

KBied.1
Associate

Dear Sirs,

I have developed FDCAN and UART code that is going to be common for several projects I build for the same microcontroller - stm32H7 series one.

I have exported hardware configuration to separate files and that will be included over other projects.

Problem is that CubeMX do not inslude uart and fdcan drivers when you do not select it in GUI. But when I selec then it includes all basic GUI configuration that I do not want to have in my main. c file. Simply I delete it every time I edit something in .ioc file.

Maybe there is a way to configure project that it will inculde all needed stuff for Uart and FDCAN without geerating GUI configured initialization?

Regards,

Chris

1 REPLY 1
TDK
Guru

There's no way to do this for STM32CubeIDE that I know of. You can do it for other toolchains.

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