AnsweredAssumed Answered

KL03: Warning: Failed to read Memory & Problems with TPM Module

Question asked by Sara Stout-Grandy on Jun 23, 2017
Latest reply on Jun 26, 2017 by Mark Butcher

Hello,

 

As of a couple days ago, whenever I compile any program (including the sample programs), I get the following warnings about failure to read memory in the compiler console:

 

SEGGER J-Link GDB Server V6.16d Command Line Version

 

JLinkARM.dll V6.16d (DLL compiled Jun 21 2017 19:08:15)

 

-----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:            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:                 MKL03Z32xxx4
Target interface:              SWD
Target interface speed:        30kHz
Target endian:                 little

 

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V9 compiled Jun 16 2017 16:15:10
Hardware: V9.30
S/N: 609300434
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 2.99 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 0x00000000 (Data = 0x20000600)
Target interface speed set to 30 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x000004E8)
R0 = 00040000, R1 = 00000001, R2 = 00040000, R3 = E000E100
R4 = 00000000, R5 = 00000000, R6 = F6FB6ABB, R7 = 200005F8
R8 = 42DA5BD1, R9 = 1D9C0D88, R10= 1FFF0600, R11= 00000000
R12= 0023C370, R13= 20000600, MSP= 20000600, PSP= 3F2F7DE4
R14(LR) = 0000075D, R15(PC) = 000004E8
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (Handle on BKPT)
Wrong client mask. Semihosting I/O not changed.
Downloading 192 bytes @ address 0x00000000 - Verified OK
Downloading 16 bytes @ address 0x00000400 - Verified OK
Downloading 1908 bytes @ address 0x00000410 - Verified OK
Downloading 8 bytes @ address 0x00000B84 - Verified OK
Downloading 4 bytes @ address 0x00000B8C - Verified OK
Downloading 4 bytes @ address 0x00000B90 - Verified OK
Downloading 100 bytes @ address 0x00000B94 - Verified OK
WARNING: Failed to read memory @ address 0x40038000
Read 4 bytes @ address 0x000004E8 (Data = 0xF000B672)
WARNING: Failed to read memory @ address 0x40038004
WARNING: Failed to read memory @ address 0x40038008
Read 2 bytes @ address 0x00000714 (Data = 0x2004)
Read 2 bytes @ address 0x00000714 (Data = 0x2004)
Resetting target
Halting target CPU...
...Target halted (PC = 0x000004E8)
Read 2 bytes @ address 0x00000714 (Data = 0x2004)
Read 2 bytes @ address 0x00000714 (Data = 0x2004)
Read 2 bytes @ address 0x00000714 (Data = 0x2004)
R0 = 00000000, R1 = F000300C, R2 = 00000400, R3 = 00000800
R4 = 20000160, R5 = FFFFFFFF, R6 = 00000000, R7 = 1FFFFF65
R8 = 42DA5BD1, R9 = 1D9C0D88, R10= 1FFF0600, R11= 00000000
R12= 0023C370, R13= 20000600, MSP= 20000600, PSP= 3F2F7DE4
R14(LR) = 1FFFFF5D, R15(PC) = 000004E8
XPSR 41000000, APSR 40000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Reading all registers
Read 4 bytes @ address 0x000004E8 (Data = 0xF000B672)
Setting breakpoint @ address 0x00000714, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Breakpoint reached @ address 0x00000714
Reading all registers
Removing breakpoint @ address 0x00000714, Size = 2
Read 4 bytes @ address 0x00000714 (Data = 0xF0002004)
Reading 64 bytes @ address 0x200005C0
WARNING: Failed to read memory @ address 0x4003800C
WARNING: Failed to read memory @ address 0x40038014
WARNING: Failed to read memory @ address 0x40038010
WARNING: Failed to read memory @ address 0x40038018
WARNING: Failed to read memory @ address 0x40038050
WARNING: Failed to read memory @ address 0x40038084
WARNING: Failed to read memory @ address 0x40039000
WARNING: Failed to read memory @ address 0x40039004
WARNING: Failed to read memory @ address 0x40039008
WARNING: Failed to read memory @ address 0x4003900C
WARNING: Failed to read memory @ address 0x40039014
WARNING: Failed to read memory @ address 0x40039010
WARNING: Failed to read memory @ address 0x40039018
WARNING: Failed to read memory @ address 0x40039050
WARNING: Failed to read memory @ address 0x40039084
Read 1 bytes @ address 0x40064000 (Data = 0x40)
Read 1 bytes @ address 0x40064001 (Data = 0x01)
Read 1 bytes @ address 0x40064008 (Data = 0x00)
Read 1 bytes @ address 0x40064018 (Data = 0x00)
WARNING: Failed to read memory @ address 0x40038000
WARNING: Failed to read memory @ address 0x40038004
WARNING: Failed to read memory @ address 0x40038008
WARNING: Failed to read memory @ address 0x4003800C
WARNING: Failed to read memory @ address 0x40038014
WARNING: Failed to read memory @ address 0x40038010
WARNING: Failed to read memory @ address 0x40038018
WARNING: Failed to read memory @ address 0x40038050
WARNING: Failed to read memory @ address 0x40038084
WARNING: Failed to read memory @ address 0x40039000
WARNING: Failed to read memory @ address 0x40039004
WARNING: Failed to read memory @ address 0x40039008
WARNING: Failed to read memory @ address 0x4003900C
WARNING: Failed to read memory @ address 0x40039014
WARNING: Failed to read memory @ address 0x40039010
WARNING: Failed to read memory @ address 0x40039018
WARNING: Failed to read memory @ address 0x40039050
WARNING: Failed to read memory @ address 0x40039084
Read 1 bytes @ address 0x40064000 (Data = 0x40)
Read 1 bytes @ address 0x40064001 (Data = 0x01)
Read 1 bytes @ address 0x40064008 (Data = 0x00)
Read 1 bytes @ address 0x40064018 (Data = 0x00)

 

I'm not sure what I did to cause this. As you can see, I'm using the j-link GBD server. I had been using the j-link for over a month before these warnings started popping up. I have not found any help on-line.

 

Coincident with these warnings, I'm having trouble using the TPM module. I can't get the counter to increment, no matter what clock I use! Would this be related to these warnings? It seems like the memory addresses are those of the TPM module. Attached is my directory of code.

 

HELP!

 

Thanks,

 

Sara

Original Attachment has been moved to: KL03_Test_Board.zip

Outcomes