2024-09-28 05:05 PM
I am trying to toggle one of the LED lights of STM32 NUCLEO-L552ZE-Q board. I am working with the latest version of STM32CubeIDE 1.16.1. The steps I followed are given in the picture. However, I find this error when I debugg:
set *(int *)0xE000EDFC=*(int *)0xE000EDFC|0xFF0
Program received signal SIGINT, Interrupt.
0x080006bc in HAL_IncTick () at ../Drivers/STM32L5xx_HAL_Driver/Src/stm32l5xx_hal.c:303
303 }
Also, the pics show more. I tried many things to fix this issue but couldn't.
Has someone face the same issue and how did you solve it? Any help is highly appreciated.
Solved! Go to Solution.
2024-09-29 01:48 PM
I assume it compiles without errors? Can you program with STM32CubeProgrammer?
2024-09-29 01:52 PM
yes, no errors in compiling. Sure, I can give a try.
2024-09-30 08:28 AM
Yes, now it works. Thank you very much. :)
2024-09-30 08:56 AM - edited 2024-09-30 08:58 AM
Was the debugger halted within the the SystemClock_Config() function at the time this happened?
The variables RCC_OscInitStruct and RCC_ClkInitStruct are local to the SystemClock_Config() function:
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
Therefore, unless the debugger is actually within that function, those variables do not exist - hence you would get such errors.