2021-12-02 07:36 AM
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?
and interrupt handling
Best regards
Pawel
2021-12-02 10:37 AM
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.
2021-12-03 06:42 AM
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))
{
//......