Skip to main content
PNaro.1
Associate
February 22, 2023
Solved

UART Rx Interrupt never get in to a HAL_UART_RxCpltCallback for CM4

  • February 22, 2023
  • 1 reply
  • 3435 views

Dear all,

I am using NUCLEO-H745ZIQ for the UART communication.

I try to use the UART RX Interrupt to get the data from PC. I set the UART parameters as same as I was use for the STM32F4 which work fine. Currently, I would like to use both of CM4 and CM7, CM4 used UART1 and CM7 used UART3.

My problem is the UART Rx interrupt is go to HAL_UART_RxCpltCallback only in the CM7, but for the CM4, it never go to the HAL_UART_RxCpltCallback function.

However, for the other interrupts are work find for both CM4 and CM7 such as timer interrupts.

Could you please help me, may be I did some miss configuration.

Thanks in advance

This topic has been closed for replies.
Best answer by FBL

Thank you for reporting this issue. I escalated the issue internally about UART1 as it fails. Could you please try other instances of UART? We will get back to you as soon as possible.

Internal ticket number: 146554 (This is an internal tracking number and is not accessible or usable by customers).

1 reply

Technical Moderator
February 23, 2023

Hello @PNaro.1​ ,

Would you share your UART1 configuration please?

This issue may occur if the Interrupt is disabled. Could you ensure that the UART1 interrupt is enabled on the CM4 core. Also, you may need to check the UART1 interrupt priority. You may need to check the NVIC configuration.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
PNaro.1
PNaro.1Author
Associate
February 23, 2023

Hi @F.Belaid​ 

Thanks for replying me.

This is my UART1 configuration.

I tried both enable and disable the UART1 global interrupt but it is not work.

I already checked the NVIC2 which control the interrupt for CM4 to make sure that the UART1 global interrupt and DMA interrupt are enabled.

What about the interrupt priority? Which priority should I set?

Thank you

0693W00000aHWscQAG.png 

Technical Moderator
February 23, 2023

You should enable USART1 global interrupt.

It is important to consider the priorities of the interrupts. Depending on your application, while the processor running in the handler mode multiple interrupts, you can set the priority of each peripheral to preempt or be preempted.

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL