2014-04-14 05:23 AM
Hi all,
STM32Cube generated me USART code which use HAL_UART_Transmit()/UART_WaitOnFlagUntilTimeout() with uwTick variable. But this one is never incremented with HAL_IncTick() function. This function must be called by systick interrupt but never in my code !!! How can I validate this IT ? Thanks Thierry #clive #systick2014-04-14 06:55 AM
I thinck it's not possible to configure IT with another OS than FreeRTOS proposal ?
2014-04-14 11:54 PM
Var uwTick is never incermented.
I launch HAL_Init(), which enable systick IT : HAL_SYSTICK_Config(HSI_VALUE/ 1000); SystemClock_Config() is good launched .... But systick IT never occured ?????2014-06-25 12:19 PM
Hi,
I observe the same problem. Did you find any solution, or is it a bug in ''stm32cube'' ? You can contribute to tha actual thread here:[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/stm32cube%20HAL_IncTick%28%29%20never%20called¤tviews=6]Thread2016-01-06 03:00 AM
2016-01-06 04:43 AM
Hi kecskes.gergely,
Could you please confirm if you are using FreeRTOS? If yes, refer to this [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/stm32f4%20usb%20cdc%20problem¤tviews=28]discussion where you find a suggested solution. The issue is already tracked and reported internally.-Syrine-2016-01-09 07:46 PM
2016-01-15 09:38 AM
Hi, I found I had to add the call to HAL_IncTick() to the SysTick Handler() function in the stm32l1xx_it.c module, like so:
void SysTick_Handler(void)
{ /* USER CODE BEGIN SysTick_IRQn 0 */ HAL_IncTick(); /* USER CODE END SysTick_IRQn 0 */ osSystickHandler(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */}You will need to add it to the interrupt handler module corresponding to your specific device.