cancel
Showing results for 
Search instead for 
Did you mean: 

LED won't toggle

emb_rf
Associate III

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.

23 REPLIES 23
Karl Yamashita
Lead III

I assume it compiles without errors? Can you program with STM32CubeProgrammer?

If smoke escapes your device, put the smoke back in. It'll still work as a conversation piece. If you find my answers useful, click the Accept as Solution button so that way others can see the solution.

yes, no errors in compiling. Sure, I can give a try.

Yes, now it works. Thank you very much. :) 

 

AndrewNeil_0-1727711458158.png

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.