STM32H523CET6 Debugging stops when calling HAL_InitTick()
Hello!
I have a problem when trying to debug in VSCode using Cortex Debug extension. The flashing process is working, but I cannot go further than HAL_Init. The exact problem is with the HAL_InitTick function, to be more precise, after the HAL_NVIC_EnableIRQ function is called and when trying to enable the interrupt, the debugging process just stops and I get this in the debug console:
warning: Exception condition detected on fd 656
Remote communication error. Target disconnected: No error.
GDB session ended. exit-code: 0
GDB never responded to an interrupt request. Trying to end session anywaysI tried the solutions from this thread, but those did not work. I also tried to change the HAL_InitTick function as it is for STM32WB55, but that also did not solve the issue. Note that both of the codes were generated by CubeMX for CMake projects. For the STM32H5, I am using STM32CubeH5's latest version - 1.5.0. Using ST-Link V2 for debugging and flashing.
I did configure the SYS Timebase Source from CubeMX to use the TIM15 timer as CubeMX issued a warning about using the SysTick, when enabling X-Cube FreeRTOS.
It seems that the problem comes from the initialization of the interrupt, but I am not 100% sure. Also worth noting is that we are using a custom made board that uses the STM32H523CET6 chip. Also to note is that TrustZone is disabled, if that makes any difference. Attaching Option Bytes if it even helps a bit.
Any help discovering the problem would be most welcomed!
