Skip to main content
PDusz.1
Visitor II
December 2, 2021
Question

How easy run to UART idle interrupt on STM32H723

Hello,

I have some problem with enable idle line interrupt in STM32H723. Previously i tested on stm32f7 and worked great. I use only HAL function.

Below i show my code responsible for idle line on F7, the same code dont work on H7.

Does anyone have an easy solution to this problem?

0693W00000GZofcQAD.png 

and interrupt handling

0693W00000GZoepQAD.png 

Best regards

Pawel

This topic has been closed for replies.

2 replies

TDK
December 2, 2021

The concept is the same, but the H7 is significantly different that the F7. Don't expect code to run without modification. For example, the vector table will be different.

Since you are still including "stm32f7xx_hal.h", I'm guessing you haven't done much translation.

If you generate the H7 code using CubeMX, it should work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Muhammed Güler
Senior III
December 3, 2021

i think these codes will work on any STM32

//in init
__HAL_UART_ENABLE_IT(&huart3, UART_IT_IDLE);
 
// in *_it.c
void USART3_IRQHandler(void)
{
	/* USER CODE BEGIN USART3_IRQn 0 */
	if(__HAL_UART_GET_FLAG(&huart3,UART_FLAG_IDLE))
	{
		//......