cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_GetTick() always return 0 when i use UART

slope.1
Associate

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.

3 REPLIES 3
Javier1
Principal

Are you using UART in interrupt mode?

Where are you placing those HAL_GetTick()?

also, quick google

we dont need to firmware by ourselves, lets talk
slope.1
Associate

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

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
Up vote any posts that you find helpful, it shows what's working..