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,

2 REPLIES 2
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

 

I was told that if a devices starts to smoke, put the smoke back in. I guess I never got all the smoke because the device never worked afterwards.
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.

Thanks for having a look at my project and fixing it. Can you please send the corrected project for me to use? So, adding USART2 to the existing TCP Client example code is allowed, good to know that. My STM32CubeIDE version is 1.18.0.

 

Thanks & Regards,

Raghu Devisetti