2025-12-07 5:17 PM
I am trying to toggle an led and in the debugger I am getting the error: "Break at address "XXXXXXX" with no debug information available, or outside of program code "; before the program ends itself. I've sourced the error back to the HAL_Delay, I think the HAL_GetTick is getting stuck in a infinite while loop and not updating
I am using the stm32WL30KBV6 and currently only have decoupling capacitors, and VCap hooked up to it. I am using the internal clocks. I am debugging over SWD. I saw a previous post about the possible issue being boot0 being held, but I couldn't find a boot pin for this specific MCU. My timebase source in my IOC file is SysTick.
I'm pretty lost right now, so any help is appreciated
2025-12-07 5:41 PM
Hold PA10 low during reset to prevent bootloader from loading. AN2606 has details on how to enter the bootloader.
Perhaps show a full screenshot of STM32CubeIDE when the message comes up. Why do you think it's in HAL_Delay?
2025-12-07 5:46 PM - edited 2025-12-07 6:11 PM
I just saw the PA10 thing, and have it pulled low right now. Here are screen shots of my debug in order
Edit:
what's interesting is that when I call the get tick function it sets the variable value to 0
2025-12-07 6:12 PM
Power and decoupling caps hooked up according to the datasheet?
Looks kind of like an interrupt fired which pointed to erased memory, but that shouldn't really happen. You can look at VECTACTIVE field somewhere in SCB registers to see what interrupt it's in. Probably hard fault or something power related is my guess.
I don't think this is a code issue.
It's not in the bootloader.
2025-12-07 6:21 PM
I currently have C2, C3, C4, C8, C10 connected and nothing else. VECTACTIVE said as 0x0 for the entire loop and then ends as 0x3 ... going to look up what it means, but posting this incase you find an issue
2025-12-07 6:32 PM - edited 2025-12-07 6:36 PM
Subtract 16 from VECTACTIVE and look up in IRQn_Type. In this case, -13 is HardFault_IRQn. STM32CubeIDE has a hard fault analyzer.
Is GND hooked up to 13, 27, and exposed pad?
Edit: Look for something in your power scheme which is different from the example layouts.