Hi everyone,
I am running j-link base with latest firmware (2019 Mar 21) to debug STM32F415RG, using Atollic TrueSTUDIO ver 9.1.0 (Eclipse Neon).
Sometimes the debug session runs with no problems, but most of a time a get an error when I try to run the session using "Resume". When I use "Step Over" or "Step Into" it always works fine. Here is an Console output of debug session init:
Display All
As soon as I hit the "Resume" button the console outputs ERRORs and the debug process can not be paused or braked:
Display All
I tried using Ozone V2.62a for debugging the same code and I get similar results. Step-by-step debug goes fine, bus as I hit resume: "Failed to read target status. Abort Debug Session?"
I have tried to simulate condition when I starts to work fine or the moment it breaks, but with no luck. Resetting hardware, j-link, eclipse, number of breakpoints etc...
Did anyone experienced similar issue? Can it be a hardware problem? Faulty j-link?
Regards:
- Tomasz
I am running j-link base with latest firmware (2019 Mar 21) to debug STM32F415RG, using Atollic TrueSTUDIO ver 9.1.0 (Eclipse Neon).
Sometimes the debug session runs with no problems, but most of a time a get an error when I try to run the session using "Resume". When I use "Step Over" or "Step Into" it always works fine. Here is an Console output of debug session init:
Source Code
- SEGGER J-Link GDB Server V6.44 Command Line Version
- JLinkARM.dll V6.44 (DLL compiled Mar 1 2019 17:32:34)
- Command line: -port 2331 -s -CPU Cortex-M -device STM32F415RG -endian little -speed 4000 -if swd -vd
- -----GDB Server start settings-----
- GDBInit file: none
- GDB Server Listening port: 2331
- SWO raw output listening port: 2332
- Terminal I/O port: 2333
- Accept remote connection: localhost only
- Generate logfile: off
- Verify download: on
- Init regs on start: off
- Silent mode: off
- Single run mode: on
- Target connection timeout: 0 ms
- ------J-Link related settings------
- J-Link Host interface: USB
- J-Link script: none
- J-Link settings file: none
- ------Target related settings------
- Target device: STM32F415RG
- Target interface: SWD
- Target interface speed: 4000kHz
- Target endian: little
- Connecting to J-Link...
- J-Link is connected.
- Firmware: J-Link V10 compiled Mar 21 2019 15:43:57
- Hardware: V10.10
- S/N: 50121268
- Feature(s): GDB
- Checking target voltage...
- Target voltage: 3.30 V
- Listening on TCP/IP port 2331
- Connecting to target...Connected to target
- Waiting for GDB connection...Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x08000DF0 (Data = 0xBF00E7FE)
- Connected to 127.0.0.1
- Reading all registers
- Read 4 bytes @ address 0x08000DF0 (Data = 0xBF00E7FE)
- Received monitor command: WriteDP 0x2 0x000000F0
- O.K.
- Received monitor command: ReadAP 0x2
- O.K.:0xE00FF003
- Reading 32 bytes @ address 0xE00FFFD0
- Read 2 bytes @ address 0x08000DC0 (Data = 0xB508)
- Received monitor command: speed 30
- Target interface speed set to 30 kHz
- Received monitor command: endian little
- Target endianess set to "little endian"
- Received monitor command: reset
- Resetting target
- Received monitor command: speed auto
- Select auto target interface speed (2000 kHz)
- Received monitor command: flash download = 1
- Flash download enabled
- [...]
As soon as I hit the "Resume" button the console outputs ERRORs and the debug process can not be paused or braked:
Source Code
- [...]
- ERROR: Can not read register 64 (FPS31) while CPU is running
- WARNING: Failed to read memory @ address 0xDEADBEEE
- Starting target CPU...
- ERROR: CPU is not halted
- ERROR: Can not read register 15 (R15) while CPU is running
- Reading all registers
- ERROR: Can not read register 0 (R0) while CPU is running
- ERROR: Can not read register 1 (R1) while CPU is running
- ERROR: Can not read register 2 (R2) while CPU is running
- ERROR: Can not read register 3 (R3) while CPU is running
- ERROR: Can not read register 4 (R4) while CPU is running
- ERROR: Can not read register 5 (R5) while CPU is running
- [...]
I tried using Ozone V2.62a for debugging the same code and I get similar results. Step-by-step debug goes fine, bus as I hit resume: "Failed to read target status. Abort Debug Session?"
Did anyone experienced similar issue? Can it be a hardware problem? Faulty j-link?
Regards:
- Tomasz