2022-07-08 06:35 AM
Hello Community,
I am using STM32h745 dual-core to display the value of the data received based on FDCAN. First, I created a project on TouchGFX and then imported the project on stm32CubeIDE.
I set the FDCAN1 and ADC1 both on CubeMX.
But the workspace does not include 'stm32h7xx_hal_fdcan.c' and 'stm32h7xx_hal_adc.c' file. So, I add these the source.c files to the workspace under 'STM32H7XX_HAL_Driver' folder. and Actually, In the Project Folder, it has been generated automatically, but does not show up in the CubeIDE workspace.
I try the ADC functionality to display the potentiometer's values, to see if this ADC function working successfully.However, the functionality does not work.
I do not know why the symbols are shown below, and the functionality does not work properly...
Does anyone have the same problem when importing the project from TouchGFX? Please let me know, Thank you!
2022-07-08 07:44 AM
Way TGFX -- IDE -- extMX -- IDE ... i dont like this, but maybe it works.
Simply for show new files in workspace you need right click on project root and Refresh.
2022-07-08 08:34 AM
Find in your project file stm32h7xx_hal_conf.h
In this file, make sure that these lines are NOT commented out:
#define HAL_ADC_MODULE_ENABLED
#define HAL_FDCAN_MODULE_ENABLED
2022-07-08 09:19 AM
Hallo Pavel A.,
Thank you for the suggestion, but it does not comment out....
2022-07-08 09:20 AM
Hello,
Yes, I did refresh many time.
2022-07-08 09:44 AM
Seems as your steps create project in TouchGFX and then import into IDE have some issue in created project . Try repeat this other way. After create and test in TouchGFX locate in application folder file name .project placed in ....IDE subfolder. Before double click on it you need remove old project from workspace or create new empty workspace.
2022-07-08 09:53 AM
Yes, I did what you did in the past few days....(create the file and deleted it again and again, also in IDE workspace)
I also try 3 different boards, stm32F769I, stm32h745, and stm32h750. The stm32F769I work very well. But, the FDCAN and ADC do not work for stm32h745 and stm32h750.