cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX USART generation for STM32G431 doesn't work for Receive Only mode

David Koster
Associate II

STM32CubeMX USART generation for STM32G431 doesn't work for Receive Only mode - it will generate the following lines:

  /* Polling USART2 initialisation */
  while((!(LL_USART_IsActiveFlag_TEACK(USART2))) || (!(LL_USART_IsActiveFlag_REACK(USART2))))
  {
  }

Even though TX isn't enabled, so the entire program will get stuck here. Cost me some time to figure it out, please fix!

1 REPLY 1
Imen.D
ST Employee

Hello @DKo.15ster​ ,

I added the topic "STM32CubeMX" to this post, in order to increase its chance to be reviewed by our experts.

Could you please precise in which STM32CubeMX version you have found the issue ?

Hello @Khouloud OTHMAN​ , @Khouloud ZEMMELI​ ,

Can you please confirm if this issue is reproduced with the latest release of STM32CubeMX v6.2.0 ?

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen