2025-07-20 1:33 PM - edited 2025-07-20 1:34 PM
Hi everyone,
I'm working on an STM32H7RS project (NUCLEO-H7S3L8) with the following setup:
Bootloader in internal flash (0x08000000)
Application in external OSPI flash (XIP) at 0x70000000
Using FreeRTOS
Using TIM6 as the HAL time base (not SysTick)
Configured using latest STM32CubeMX and STM32CubeIDE (v1.18.1)
My current issue is that while HAL_Delay and TIM6 is working, SysTick seems not to work inside of the RTOS as soon as the scheduler starts.
I noticed that because ther CPU got caught inside osDelay without throwing an error.
I also already checked the NVIC, but it seems pretty fine to me. Did i otherwise miss something what i configured wrong inside my IOC file?
Solved! Go to Solution.
2025-08-05 12:42 AM - edited 2025-08-05 2:10 AM
It seems to be that SysTick_Handler() is not beeing called by the FreeRTOS.Is that a problem with the NVIC?
EDIT: This is the solution, to set all the interrupts which are not 0 or 15 to something above 5 in my case, it may vary depending on your FreeRTOS configuration.
2025-07-21 3:09 AM
Hello @htxy
Is the systick interrupt happen?
2025-07-21 4:39 PM
Yes, when in debugging, i inspected the SFRs. After every step the value of STCVR changes, which would indicate for me that SysTick is behaiving normal and the interrupt happens.
But i dont know if that still is the case when the Scheduler starts, as CubeIDE doesnt allow you to live debug the RTOS app.
2025-07-29 7:13 AM
Hello @htxy
Could you please check if the SysTick_Handler() is being called by setting a breakpoint when Scheduler starts ?
2025-08-05 12:42 AM - edited 2025-08-05 2:10 AM
It seems to be that SysTick_Handler() is not beeing called by the FreeRTOS.Is that a problem with the NVIC?
EDIT: This is the solution, to set all the interrupts which are not 0 or 15 to something above 5 in my case, it may vary depending on your FreeRTOS configuration.