Skip to main content
CChoc.1
Associate
October 26, 2021
Solved

STM32L496VGTX with HAL from CubeMX jumping to "Thread" when single stepping with JLINK

  • October 26, 2021
  • 1 reply
  • 899 views

Hi

I am using an STM32L496GTx with a HAL from Cube MX and it just jumps to the "thread #1" whenever I try to single step through the code in main. I don't even get to the other parts, I'm just trying to init the HAL (I don't get to the systemclock, any of the peripherals, nothing) and when I single step through the C code I get kicked to something and my only option is to view disassembly around the HAL_MspInit() call within the init. I really have no idea what's going on and I thought it might be this MCU but I swapped it for a fresh MCU today and this brand new MCU is doing the exact same thing. I'm feeding the 3.3V directly with a DC supply so the other peripherals on the system should be pretty isolated.

I'm using STM32CubeIDE and using a JLINK for the MCU connection. I don't have a scope for the power rails but I'm hoping it's clean enough. I have external oscillators on this board but they aren't configured. I really am not sure what else to check out.

Thanks

This topic has been closed for replies.
Best answer by CChoc.1

Okay turns out the BOOT pin was floating so that was causing all kinds of issues. Good to know!

1 reply

CChoc.1
CChoc.1AuthorBest answer
Associate
October 26, 2021

Okay turns out the BOOT pin was floating so that was causing all kinds of issues. Good to know!