Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cortex M7 CPU register(CortexM7 CPU register not reading properly )
Cortex M7 CPU register [message #1840867] Tue, 27 April 2021 09:45
sreedhar Kaduru is currently offline sreedhar KaduruFriend
Messages: 1
Registered: April 2021
Junior Member
Hello,

I am working on CortexM7 core while Cortex M7 debugging below data i am getting.

PC counter values are reading wrongly.

SEGGER J-Link GDB Server V7.00a Command Line Version

JLinkARM.dll V7.00a (DLL compiled Apr 16 2021 15:32:47)

Command line: -if jtag -device Cortex-M7 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -log C:\Users\Sreedhar Kaduru\OneDrive - Ceremorphic, Inc\Desktop\M7Core\Bootloader\log.txt -singlerun -strict -timeout 0 -nogui
-----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: on
Verify download: on
Init regs on start: on
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: Cortex-M7
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V11 compiled Apr 13 2021 17:20:05
Hardware: V11.00
S/N: 601004529
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.37 V
Listening on TCP/IP port 2331
Connecting to target...

J-Link found 1 JTAG device, Total IRLen = 4
JTAG ID: 0x0BA02477 (Cortex-M4)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0xE59F4028)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= E92D4010, MSP= E92D4010, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = E59F4028
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00

Security extension regs:
MSP_S = 00000000, MSPLIM_S = 00000000
PSP_S = 00000000, PSPLIM_S = 00000000
MSP_NS = E92D4010, MSPLIM_NS = 00000000
PSP_NS = 00000000, PSPLIM_NS = 00000000
CONTROL_S 00, FAULTMASK_S 00, BASEPRI_S 00, PRIMASK_S 00
CONTROL_NS 00, FAULTMASK_NS 00, BASEPRI_NS 00, PRIMASK_NS 00

Reading all registers
Received monitor command: speed auto
Select auto target interface speed (4000 kHz)
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 3
Semihosting I/O set to TELNET and GDB Client
Downloading 13392 bytes @ address 0x00000000 - Verify failed
Downloading 84 bytes @ address 0x00003450 - Verified OK
Downloading 172 bytes @ address 0x000034A4 - Verified OK
Downloading 8 bytes @ address 0x00003550 - Verified OK
Downloading 12 bytes @ address 0x00003558 - Verified OK
Downloading 120 bytes @ address 0x00003564 - Verified OK
Downloading 60 bytes @ address 0x000035DC - Verified OK
Downloading 212 bytes @ address 0x00003618 - Verified OK
Writing register (R8 = 0x 2d7d)
Read 1 bytes @ address 0x00002D7D (Data = 0xB5)
Reading register (PSP = 0x 0)
Reading register (PRIMASK = 0x 0)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Reading 14 bytes @ address 0x00000BA4
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Reading 14 bytes @ address 0x00000BA4
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0xE59F4028)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Reading 14 bytes @ address 0x00000BA4
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Reading 14 bytes @ address 0x00000BA4
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Read 1 bytes @ address 0x00000BA4 (Data = 0x00)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= E92D4010, MSP= E92D4010, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = E59F4028
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00

Security extension regs:
MSP_S = 00000000, MSPLIM_S = 00000000
PSP_S = 00000000, PSPLIM_S = 00000000
MSP_NS = E92D4010, MSPLIM_NS = 00000000
PSP_NS = 00000000, PSPLIM_NS = 00000000
CONTROL_S 00, FAULTMASK_S 00, BASEPRI_S 00, PRIMASK_S 00
CONTROL_NS 00, FAULTMASK_NS 00, BASEPRI_NS 00, PRIMASK_NS 00

Reading all registers
Reading all registers
Read 1 bytes @ address 0x00000000 (Data = 0x10)
Setting breakpoint @ address 0x00000BA4, Size = 4, BPHandle = 0x0001
Starting target CPU...
...Target halted (DBGRQ, PC = 0xE3530000)
Reading all registers
Removing breakpoint @ address 0x00000BA4, Size = 4
Read 1 bytes @ address 0x00000000 (Data = 0x10)
  • Attachment: log.txt
    (Size: 245.74KB, Downloaded 10 times)
  • Attachment: log.txt
    (Size: 259.51KB, Downloaded 9 times)
Previous Topic:Empty line rendered after resolving a issue
Next Topic:Eclipse Not Reading .gdbinit
Goto Forum:
  


Current Time: Tue Dec 07 01:19:57 GMT 2021

Powered by FUDForum. Page generated in 0.01496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top