cancel
Showing results for 
Search instead for 
Did you mean: 

Making changes in CubeMX does not import necessary files in Drivers folder

Krautermann
Senior II

I created a project in TouchGFX Designer and then I opened the project in CubeMX. It compiles successfully. But then I want to add UART function to my project. So I go to CubeMX and add UART function but when compiling it gives an error because the stm32h7xx_hal_uart.c and stm32h7xx_hal_uart_ex.c files were not added to Drivers\STM32H7xx_HAL_Driver folder. So I had to manually import them and it compiles fine.

CubeMX should have a functionality to automatically add the corresponding files for each functionality.

Now I have added FreeRTOS functionality and it's giving me the same type of error message, except I do not know what files to add since I am not too familiar with RTOS.


_legacyfs_online_stmicro_images_0693W00000bitK7QAI.png
_legacyfs_online_stmicro_images_0693W00000bitJsQAI.pngThe error message is so long that I had to take 2 separate screenshots, I hope you guys can read it and help me out.

I suspect the problem have to do with missing files for FreeRTOS.

1 ACCEPTED SOLUTION

Accepted Solutions
Krautermann
Senior II

Problem fixed. I disable RTOS on CubeMX and regenerated the code and it worked fine.

https://support.touchgfx.com/4.17/docs/development/scenarios/running-without-rtos

View solution in original post

1 REPLY 1
Krautermann
Senior II

Problem fixed. I disable RTOS on CubeMX and regenerated the code and it worked fine.

https://support.touchgfx.com/4.17/docs/development/scenarios/running-without-rtos