cancel
Showing results for 
Search instead for 
Did you mean: 

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

CChoc.1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
CChoc.1
Associate

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

View solution in original post

1 REPLY 1
CChoc.1
Associate

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