Getting "Error: Target not available" in Value column in live expressions in StmcubeIDE in debug mode when i press Resume(F8)
I created a simple GPIO program with the code generated from StmCubeMX. When i build the program there are no errors and warnings, but when i connect my Nucleo-F411RE and try to debug it, i get this message in Expressions.
The program is supposed to make LED2 go off when i press the Blue button (LED2 is on by default by this code) and it works, i see LED2 turn off when i press the button, and goes back on when i release it, but in Expressions i don't see this. When i press Resume the value should be 1 and when i press the button to go to 0. Instead i get the error.

