Posts by fbursi

    Hi Niklas,

    I attached the logfile, when I try to program and debug the XMC4700 with GNU ARM Eclipse.
    Probably the problem is shown on line 239 and line 243:

    Code
    T3994 001:118 JLINK_WriteMem(0x081FFFF8, 0x0004 Bytes, ...) - Data: 79 65 73 00
    T3994 001:272 JLINK_ReadMem (0x081FFFF8, 0x0004 Bytes, ...) -- CPU_ReadMem(4 bytes @ 0x081FFFF8) - Data: 00 00 00 00 returns 0x00 (0001ms, 0585ms total)

    When I read back the flash content with J-Flash, the 4 bytes at 0x081FFFF8 (0x0C1FFFF8 for the uncached memory) are all 0.
    If I try to program the same code with J-Flash, all the memory is written done.

    Best regards,

    Francesco

    Hi Niklas,


    I have done some tests with a simple program with empty main.
    In each one, I wrote the string "yes" starting from the last 8 bytes of flash memory.


    If I set the memory size to 1024K, the "yes" string at address 0x080FFFF8 is written correctly.
    If I set the memory size to 2048K, the "yes" string at address 0x081FFFF8 is skipped with no errors and the rest of the program is written correctly.


    The results are in the attachment. Tell me if you need more files / specifications.
    Thank you.


    Francesco

    Hello,

    with J-Link Commander the erase is done, the log file is in the attachment.

    Also when I erase, program and debug in eclipse all is working, but it seems that some memory is not written.
    I have some information that it has to be written at the end of the flash.

    With XMC4500, 1Mb of flash it works.
    With XMC4700, 2Mb of flash it does not work, but the information are present in the program file.

    This is the reason why I start to try with J-Flash.

    Best regards,

    Francesco.

    Hello Everyone,

    I have problem with J-Flash V5.10g and XMC4700.
    When I try to erase the memory (erase sectors or erase chip), after a short time an error dialog is shown with message: "Timeout while erasing sector, core does not stop".

    The Log is the following:


    Connecting ...
    - Connecting via USB to J-Link device 0
    - Target interface speed: 4000 kHz (Fixed)
    - VTarget = 3.343V
    - Initializing CPU core (Init sequence) ...
    - Initialized successfully
    - Target interface speed: 4000 kHz (Fixed)
    - Connected successfully
    Erasing selected sectors ...
    - 10 of 10 sectors selected, 1 range, 0xC000000 - 0xC1FFFFF
    - RAM tested O.K.
    - Erasing bank 0, sectors 0
    - ERROR: Timeout while erasing sector, core does not stop
    - ERROR: Failed to erase sectors
    Disconnecting ...
    - Disconnected


    Settings are:
    Target interface: SWD, speed before init 4000kHz, speed after init 4000kHz
    CPU: Infineon XMC4700-2048
    All other settings are the default.


    In the same board, with XMC4500 I never had problems.
    Any suggestion?

    Thank you.