cancel
Showing results for 
Search instead for 
Did you mean: 

The FDCAN.c file doesn't automatically generated

TLin.6
Associate II

Hello,

I am doing a project related to using FDCAN to transfer data. The project is based on stm32h745 dual-core. First, I created a project on TouchGFX and then imported the project on stm32CubeIDE. I set the FDCAN1 (video: 00:01) on the Pinout&Configuration.

I need to manually include ' stm32h7xx_hal_fdcan.h ' (video: 00:07) on main.c file, otherwise the fdcan functions on main.c will be undefinded.

Also, the project does not automatically generate the ' stm32h7xx_hal_fdcan.c ' file. So, I add the source file manually to the 'STM32H7XX_HAL_Driver' folder (video: 00:15). But it seen like the file does not link to the folder.

Does anyone have an idea? Please give me some advice, thank you!0693W00000QKckcQAD.png 

2 REPLIES 2
TLin.6
Associate II
KDJEM.1
ST Employee

Hi @TLin.6​ ,

I recommend that you use the STM32CubeMx to create the TouchGFX project.

For that, I advise you to take a look at this MOOC.

Then, you can configure the FDCAN1.

 Maybe this discussion can help you.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Kaouthar  

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.