[SOLVED] J-Mem read changes data on XMC4400

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] J-Mem read changes data on XMC4400

    Hi,
    I want to readout a large array of floats from an XMC4400-512. With Infineon DAVE/Eclipse this is super slow so I tried to read the memory with J-Mem. But the problem is, that this alters the data at some addresses.

    I want to read from 0x1FFFCE68 to 0x20001C87 (=5000 floats)

    I suspend the debug session in DAVE to look at the memory, data looks fine.

    Then I connect with J-Mem and read the memory range, but now the data form

    0x20000000 to 0x20000090 gets overwritten with:


    20000000 051780C1 65C9A012 2000040A 0000000B
    20000010 00080001 FFFFFFFF FFFFFFFF FFFFFFFF
    20000020 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000030 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000040 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000050 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000060 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000070 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
    20000080 FFFFFFFF 00030949 0003090C 0003090B
    20000090 00000000



    I’m using J-Link V7.60f and tried with XMC-Link and j-link Ultra+

    Memory Map of XMC4400:
    ...
    1FFFC000 1FFFFFFF PSRAM (code)
    20000000 20007FFF DSRAM1 (system)
    20008000 2000FFFF DSRAM2 (comm)
    ...
  • Hi,

    This might be due to the fact that J-Link issues a reset when connecting to XMC4xx series devices:
    wiki.segger.com/XMC4xxx_series#Attach_to_running_application

    This reset causes the ROM bootloader of the device to run which might use certain RAM areas as stack etc.

    The way you do it is the way to go!
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.