System Timebase Source problem with STM32WLE5C8Ux
I have a custom hardware with an STM32WLE5C8Ux and I want to add functionality to it step by step. I'm using CubeMx to generate a project with success ,toggeling a GPIO works.
I have not initalized external TCXO or LSE, they are populated but I want to first run a very simple program without LoRa or anything. I want to add FreeRTOS in the long run so I wanted to add an alternate Sys timer, I selected TIM17 as a Timebase Source.
Then I generate the project and debug over the ST-Link V3 an, adapter and a J-Link 10 Pin debug probe. I power the hardware externally. I'm running the internal clock at 48Mhz.
When I step through the debugger I stop at Function "HAL_NVIC_EnableIRQ(TIM17_IRQn);" inside of "stm32wlxx_hal_tim.c" Here is the output of my debugging
Temporary breakpoint 4, main () at ../Core/Src/main.c:72
72 HAL_Init();
Breakpoint 3, HAL_Init () at ../Drivers/STM32WLxx_HAL_Driver/Src/stm32wlxx_hal.c:178
178 if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
Program stopped.
0x1fff2c08 in ?? ()What I also noticed was that when I use SysTicks as time base I am also not triggering any interrupts but at least I am not hanging in debugging.
I'm lost how to debug this issue. Any help appreciated.
Any help is much appreciated
Edit: Note, if I do this on the demo board this is not an issue.
