cancel
Showing results for 
Search instead for 
Did you mean: 

USART driver files are not added to HAL Drivers folder in the example for even after enabling the USART driver and enabling the USART peripheral

rdevisetti
Associate III

Hi all,

 

I had created an example project Tx_Thread_Creation for NUCLEO-F767ZI board and enabled Threadx.

I had also enabled the USART 2 peripheral and also enabled the USART driver under HAL Drivers under the software packages, but the USART Driver files are not added to the "Drivers/STM32F7xx_HAL_Driver/" folder. Attached the project for your reference as a zip file.

Please check it once and let me know how to fix the issue.

 

Thanks,

1 REPLY 1
Karl Yamashita
Principal

I opened you project and took a look at your config file and the #define HAL_UART_MODULE_ENABLED was commented out.

I disabled USART2 and generated code. I then enabled USART2 and NVIC, then generated code. The #define HAL_UART_MODULE_ENABLED now shows correctly. This is with STM32CubeIDE 1.18.1

 

KarlYamashita_0-1748103043475.png

 

Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.