infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: XMC4800 EtherCAT APP Debug Error

  1. #1
    New Member New Member stlo_dev_eng is on a distinguished road
    Join Date
    Sep 2017

    XMC4800 EtherCAT APP Debug Error


    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
    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
    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!

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012

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

    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    New Member New Member stlo_dev_eng is on a distinguished road
    Join Date
    Sep 2017


    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!

+ Reply to Thread

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.