cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_InitTick substituted for LoRa

Mattia Poletti
Associate II
Posted on June 14, 2018 at 18:54

Hello,

i see that in the CUBE for lorawan, the HAL_InitTick function has been rewritten, with a simple return and does nothing, replacing the standard in the HAL_drivers, so the timeout function of every other HAL don't work due the HAL_GetTick function that don't work.

What can i do to reintroduce the possibility of reading Ticks without break everything, and why this has been deactivated?

Thanks in Advance

#lora
2 REPLIES 2
Posted on June 14, 2018 at 19:05

>>why this has been deactivated?

Because they are turned off SysTick, not all CM0 have SysTick as I recall, and running it constantly has been deprecated over using the RTC to provide the periodic time base.

Seem to recall making HAL_GetTick() advance based on repetitive calls and available time bases.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 14, 2018 at 19:20

Thanks for the reply, now it's clear.

>>

Seem to recall making HAL_GetTick() advance based on repetitive calls and available time bases.

What do you mean? I have to rewrite the HAL_GetTick() or add a SysTick_Handler ?

Thanks