0

segger jlink trace function is reporting 0000
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

segger jlink trace function is reporting 0000

by milamber on Tue Jun 15, 2021 3:38 pm

SEGGER product: J-Link/J-Trace
Software version: SEGGER J-Link GDB Server V7.22a Command Line Version JLinkARM.dll V7.22a (DLL compiled Jun 9 2021 16:33:57)

I have connected jlink to a nucleo 144 ST board (stm32h7a3-q). The Segger GDB stub is not reporting the tracing data correctly . After starting trace I would expect to get trace data back (hex values), instead I am getting all zeros (00000). The cpu STM32H7A3ZI is running at 280mhz. Everything else is working fine. (flash debug etc)

Code: Select all | TOGGLE FULL SIZE
'trace asynchronous sw'
maint packet qSeggerSTRACE:config
&"maint packet qSeggerSTRACE:config\n"
sending: "qSeggerSTRACE:config"
received: ""
OK
maint packet qSeggerSTRACE:caps
&"maint packet qSeggerSTRACE:caps\n"
sending: "qSeggerSTRACE:caps"
received: "config;start;stop;read;GetInstStats"
OK
maint packet qSeggerSTRACE:start
&"maint packet qSeggerSTRACE:start\n"
sending: "qSeggerSTRACE:start"
received: "00000001"
OK
maint packet qSeggerSTRACE:read:4
&"maint packet qSeggerSTRACE:read:4\n"
sending: "qSeggerSTRACE:read:4"
received: "00000000"
OK

----
C:\Program Files (x86)\SEGGER\JLink\JLinkGDBServerCL.exe -select USB -device STM32H7A3ZI -speed auto -if SWD -port 1561
SEGGER J-Link GDB Server V7.22a Command Line Version

JLinkARM.dll V7.22a (DLL compiled Jun  9 2021 16:33:57)

Command line: -select USB -device STM32H7A3ZI -speed auto -if SWD -port 1561
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     1561
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      localhost only
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               off
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:                 STM32H7A3ZI
Target interface:              SWD
Target interface speed:        auto
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V11 compiled Jun  7 2021 15:48:52
Hardware: V11.00
S/N: 261012769
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.31 V
Listening on TCP/IP port 1561
Connecting to target...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x08002F72 (Data = 0x4618681B)
Received monitor command: reset
Resetting target
Downloading 684 bytes @ address 0x08000000
Downloading 16032 bytes @ address 0x080002B0
Downloading 15984 bytes @ address 0x08004150
Downloading 15920 bytes @ address 0x08007FC0
Downloading 7148 bytes @ address 0x0800BDF0
Downloading 428 bytes @ address 0x0800D9E0
Downloading 8 bytes @ address 0x0800DB8C
Downloading 8 bytes @ address 0x0800DB94
Downloading 4 bytes @ address 0x0800DB9C

milamber
 
Posts: 1
Joined: Tue Jun 15, 2021 3:30 pm

Re: segger jlink trace function is reporting 0000

by mikeysklar on Wed Jun 16, 2021 6:42 pm

Can you post the output from the gdb client session? This output just looks like the GDB server output which doesn't show the functions reporting 0000.

mikeysklar
 
Posts: 5025
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.