Question
Enabling/Disabling Interrupts Problem in STM32WB55RG
Hello, I want to develop a software which includes an external interrupt for sleep mode and it should be enabled before entering sleep mode. For this purpose, I use:
HAL_NVIC_SetPriority(EXTI0_IRQn, 0, 0) ;
HAL_NVIC_EnableIRQ(EXTI0_IRQn);
When I choose HCLK4 HPRE at bottom as /2, giving 32 MHz to HCLK4, Flash and SRAM2, it works as expected, but when I choose it as /1,giving 64 MHz, code gets stuck at HAL_NVIC_EnableIRQ function. If I exclude interrupts, my software work well with /1 HCLK4 HPRE. Could you help me? Thank you in advance.

