cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 registers not being read during debugging

BRoge
Associate II

Hello,

I am using an STM32L4R5VIT6 board in which I am programming it with Atollic TrueSTUDIO using the debugger and Jlink connectiong. When I am running the debugger, it suddenly stopped working for me and the console reads:

Connecting to J-Link...  

J-Link is connected.

...

Connected to target  

Waiting for GDB connection...Connected to 127.0.0.1  

Reading all registers  

GDB closed TCP/IP connection   

Restoring target state and closing J-Link connection...   

Shutting down...

Comparing this to another board where the debugger is working fine, it seems to be that it stops working at the "read all registers" section. I have tried connecting another board and found it works fine, so it must be hardware related. Is there anything with the this ST32 board that might prevent the registers from being read? (Note: I have tried error 2.2.1 of the errata sheet)

1 ACCEPTED SOLUTION

Accepted Solutions
BRoge
Associate II

I eventually solved my problem. I ended up erasing the flash on the board and that seemed to solve my problem. I am unsure what caused it in the first place though.

View solution in original post

1 REPLY 1
BRoge
Associate II

I eventually solved my problem. I ended up erasing the flash on the board and that seemed to solve my problem. I am unsure what caused it in the first place though.