Skip to main content
slope.1
Associate
August 22, 2022
Question

HAL_GetTick() always return 0 when i use UART

  • August 22, 2022
  • 3 replies
  • 2143 views

Hi, I work with STM32L562VET6Q, and when i try to comunicate with uart HAL_GetTick() fuction doesn't work because always return 0, but if i don't use uart work perfectly, What could it be due to?

I try to change prioritys in NVIC interrput table but still does not work.

This topic has been closed for replies.

3 replies

Javier1
Principal
August 22, 2022

Are you using UART in interrupt mode?

Where are you placing those HAL_GetTick()?

also, quick google

hit me up in https://www.linkedin.com/in/javiermuñoz/
slope.1
slope.1Author
Associate
August 24, 2022

Yes, it is in interrupt mode, but I have tried to not use interrupt mode and uwTick is always 0 too.

it's in main.c

Tesla DeLorean
Guru
August 24, 2022

Is SysTick running? What's the Handler calling.

You call HAL_Init() before using the USART?​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..