cancel
Showing results for 
Search instead for 
Did you mean: 

How easy run to UART idle interrupt on STM32H723

PDusz.1
Associate

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

2 REPLIES 2
TDK
Guru

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

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))
	{
		//......