XMC4800 EtherCAT APP Debug Error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User13818
Level 1
Level 1
Hello,

I am new to Infineon Forum, so feel free to correct me if I violate any forum rules 🙂

I am using the XMC4800 Relax EtherCAT Kit with DAVE (4.3.2) and Beckhoff SSC.

I was going through the "Getting Started _XMC4800_Relax_EtherCat_APP_Slave" document and could setup the DAVE project.
Even flashing is working, but then the debugging interrupts with the error:
"WARNING: Failed to read memory @ address 0xE884CB0E".

I double checked the debug configurations to make sure the correct microcontroller is selected.
But now I have no more idea what to do.

I've done only the steps as described in the "Getting Started", so I didn't change anything else in the code.

Here the log file:
-----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: XMC4800-F144x2048
Target interface: SWD
Target interface speed: 1000kHz
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-XMC4200 Rev.1 compiled Jan 14 2016 11:19:27
Hardware: V1.00
S/N: 591046057
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 0x00000000 (Data = 0x2000FF3C)
Read 2 bytes @ address 0x00000000 (Data = 0xFF3C)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0xE884CB0E)
R0 = E000ED08, R1 = 00000263, R2 = 3C13D281, R3 = D04F4A05
R4 = 00000536, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 0C000004, R10= 00000000, R11= 00000000
R12= 00000000, R13= AF00B558, MSP= AF00B558, PSP= 00000000
R14(LR) = FFFFFFF1, R15(PC) = E884CB0E
XPSR 01000003, APSR 00000000, EPSR 01000000, IPSR 00000003
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
WARNING: Failed to read memory @ address 0xE884CB0E
Select auto target interface speed (1875 kHz)
Flash breakpoints enabled
WARNING: Failed to read memory @ address 0xE884CB0E


Would be great if someone can help me, thanks!
0 Likes
2 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

How did you start the debug session?
Which version of the JLink software do you use?

Regards,
Jesus
0 Likes
User13818
Level 1
Level 1
Hello,
Finally I found the problem. Somehow the linker file was wrong.

I had to re-generate the code and now everything is working.

Thanks anyway!
0 Likes