[ABANDONED] Timeout while erasing sectors,

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

  • [ABANDONED] Timeout while erasing sectors,

    Hi

    I experience flash erase timeout approx. 50% of the times when i try to start debug session on a iMxRT1064 "internal" flash.

    Repeating the process normally results in success.

    Any idea why this happens.

    It used to work in the past but an update top either my setup og Jlink install seems to have affected the stability.

    Currently on SEGGER V6.80


    Comparing flash [....................] Done.
    Erasing flash [....................] Done.
    ERROR: Timeout while erasing sectors, RAMCode did not respond in time. (PC = 0xA5A5A5A5, CPSR = 0xA5A5A5A5, LR = 0x81000000)!
    Failed to erase sectors.

    Br Anders
  • Hi Anders,
    Thank you for your inquiry.
    Such an issue is not known to us.

    Could you please give us a more detailed explanation of your setup?
    Do you work on an evaluation board or on custom hardware? If evaluation board, which one?
    If custom hardware, does the problem also occur on an evaluation board?
    Which OS are you using?
    Do you experience the same issue on an other host PC/OS?
    Could you please send us a J-Link log file of both, the working and not working case? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File
    You said, that your setup might have been affected by a different J-Link software version.
    Does an older version fix this issue for you? If yes, which one?

    Best regards,
    Fabian
    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.
  • Hi Fabian

    My setup is:

    Windows 10,
    Eclipse 2019-09 R (4.13.0).
    SEGGER V6.80
    MIMXRT1064 on custom board

    Below is output from eclipse console, and og files for succesful and not successful attempt attached.

    SEGGER J-Link GDB Server V6.80b Command Line Version

    JLinkARM.dll V6.80b (DLL compiled Jun 5 2020 17:40:22)

    Command line: -select usb=600102036 -if swd -device MIMXRT1064xxx5A -endian little -speed 8000 -port 2331 -swoport 2332 -telnetport 2333 -vd -noir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
    -----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: off
    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: MIMXRT1064xxx5A
    Target interface: SWD
    Target interface speed: 8000kHz
    Target endian: little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link V10 compiled Apr 23 2020 16:49:14
    Hardware: V10.10
    S/N: 600102036
    Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    Checking target voltage...
    Target voltage: 3.08 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 0x80083B12 (Data = 0xB1D3681B)
    Read 2 bytes @ address 0x80083B12 (Data = 0x681B)
    Received monitor command: speed 1000
    Target interface speed set to 1000 kHz
    Received monitor command: clrbp
    Received monitor command: reset
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ...Target halted (PC = 0x80083B64)
    Received monitor command: regs
    R0 = 00000000, R1 = A5A5A5A5, R2 = A5A5A5A5, R3 = 20004E20
    R4 = A5A5A5A5, R5 = A5A5A5A5, R6 = A5A5A5A5, R7 = A5A5A5A5
    R8 = A5A5A5A5, R9 = A5A5A5A5, R10= A5A5A5A5, R11= A5A5A5A5
    R12= A5A5A5A5, R13= 8010EB78, MSP= 2001FFE0, PSP= 8010EB78
    R14(LR) = 80083B63, R15(PC) = 80083B64
    XPSR 61000000, APSR 60000000, EPSR 01000000, IPSR 00000000
    CFBP 02000000, CONTROL 2000000, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Received monitor command: speed 8000
    Target interface speed set to 7827 kHz
    Received monitor command: flash breakpoints 0
    Flash breakpoints disabled
    Read 4 bytes @ address 0x80083B64 (Data = 0x2B01681B)
    Downloading 892 bytes @ address 0x70020000 - Verified OK
    Downloading 15984 bytes @ address 0x70020380 - Verified OK
    Downloading 15984 bytes @ address 0x700241F0 - Verified OK
    Downloading 15936 bytes @ address 0x70028060 - Verified OK
    Downloading 15904 bytes @ address 0x7002BEA0 - Verified OK
    Downloading 832 bytes @ address 0x7002FCC0 - Verified OK
    Downloading 16064 bytes @ address 0x70030000 - Verified OK
    Downloading 16016 bytes @ address 0x70033EC0 - Verified OK
    Downloading 15952 bytes @ address 0x70037D50 - Verified OK
    Downloading 16064 bytes @ address 0x7003BBA0 - Verified OK
    Downloading 1440 bytes @ address 0x7003FA60 - Verified OK
    Downloading 16016 bytes @ address 0x70040000 - Verified OK
    Downloading 16016 bytes @ address 0x70043E90 - Verified OK
    Downloading 15952 bytes @ address 0x70047D20 - Verified OK
    Downloading 16048 bytes @ address 0x7004BB70 - Verified OK
    Downloading 1504 bytes @ address 0x7004FA20 - Verified OK
    Downloading 16000 bytes @ address 0x70050000 - Verified OK
    Downloading 16096 bytes @ address 0x70053E80 - Verified OK
    Downloading 16032 bytes @ address 0x70057D60 - Verified OK
    Downloading 16048 bytes @ address 0x7005BC00 - Verified OK
    Downloading 1360 bytes @ address 0x7005FAB0 - Verified OK
    Downloading 16048 bytes @ address 0x70060000 - Verified OK
    Downloading 16032 bytes @ address 0x70063EB0 - Verified OK
    Downloading 15696 bytes @ address 0x70067D50 - Verified OK
    Downloading 15936 bytes @ address 0x7006BAA0 - Verified OK
    Downloading 1824 bytes @ address 0x7006F8E0 - Verified OK
    Downloading 16032 bytes @ address 0x70070000 - Verified OK
    Downloading 16096 bytes @ address 0x70073EA0 - Verified OK
    Downloading 16064 bytes @ address 0x70077D80 - Verified OK
    Downloading 16160 bytes @ address 0x7007BC40 - Verified OK
    Downloading 1184 bytes @ address 0x7007FB60 - Verified OK
    Downloading 16032 bytes @ address 0x70080000 - Verified OK
    Downloading 16064 bytes @ address 0x70083EA0 - Verified OK
    Downloading 16096 bytes @ address 0x70087D60 - Verified OK
    Downloading 15808 bytes @ address 0x7008BC40 - Verified OK
    Downloading 1536 bytes @ address 0x7008FA00 - Verified OK
    Downloading 16032 bytes @ address 0x70090000 - Verified OK
    Downloading 16096 bytes @ address 0x70093EA0 - Verified OK
    Downloading 16096 bytes @ address 0x70097D80 - Verified OK
    Downloading 16000 bytes @ address 0x7009BC60 - Verified OK
    Downloading 1312 bytes @ address 0x7009FAE0 - Verified OK
    Downloading 15952 bytes @ address 0x700A0000 - Verified OK
    Downloading 16032 bytes @ address 0x700A3E50 - Verified OK
    Downloading 16336 bytes @ address 0x700A7CF0 - Verified OK
    Downloading 16320 bytes @ address 0x700ABCC0 - Verified OK
    Downloading 896 bytes @ address 0x700AFC80 - Verified OK
    Downloading 16320 bytes @ address 0x700B0000 - Verified OK
    Downloading 16352 bytes @ address 0x700B3FC0 - Verified OK
    Downloading 16352 bytes @ address 0x700B7FA0 - Verified OK
    Downloading 16352 bytes @ address 0x700BBF80 - Verified OK
    Downloading 160 bytes @ address 0x700BFF60 - Verified OK
    Downloading 16272 bytes @ address 0x700C0000 - Verified OK
    Downloading 16352 bytes @ address 0x700C3F90 - Verified OK
    Downloading 16240 bytes @ address 0x700C7F70 - Verified OK
    Downloading 16208 bytes @ address 0x700CBEE0 - Verified OK
    Downloading 464 bytes @ address 0x700CFE30 - Verified OK
    Downloading 16240 bytes @ address 0x700D0000 - Verified OK
    Downloading 16352 bytes @ address 0x700D3F70 - Verified OK
    Downloading 16320 bytes @ address 0x700D7F50 - Verified OK
    Downloading 16240 bytes @ address 0x700DBF10 - Verified OK
    Downloading 384 bytes @ address 0x700DFE80 - Verified OK
    Downloading 16224 bytes @ address 0x700E0000 - Verified OK
    Downloading 16160 bytes @ address 0x700E3F60 - Verified OK
    Downloading 16144 bytes @ address 0x700E7E80 - Verified OK
    Downloading 16144 bytes @ address 0x700EBD90 - Verified OK
    Downloading 864 bytes @ address 0x700EFCA0 - Verified OK
    Downloading 16160 bytes @ address 0x700F0000 - Verified OK
    Downloading 16144 bytes @ address 0x700F3F20 - Verified OK
    Downloading 16240 bytes @ address 0x700F7E30 - Verified OK
    Downloading 16304 bytes @ address 0x700FBDA0 - Verified OK
    Downloading 688 bytes @ address 0x700FFD50 - Verified OK
    Downloading 16128 bytes @ address 0x70100000 - Verified OK
    Downloading 12508 bytes @ address 0x70103F00 - Verified OK
    Comparing flash [....................] Done.
    Erasing flash [....................] Done.
    ERROR: Timeout while erasing sectors, RAMCode did not respond in time. (PC = 0xA5A5A5A5, CPSR = 0xA5A5A5A5, LR = 0x81000000)!
    Failed to erase sectors.

    Writing register (PC = 0x700202f4)
    Read 4 bytes @ address 0x700202F4 (Data = 0xB672B510)
    Read 2 bytes @ address 0x700202F4 (Data = 0xB510)
    WARNING: Failed to read memory @ address 0x80083B62
    WARNING: Failed to read memory @ address 0x80083B62
    WARNING: Failed to read memory @ address 0x80024DCC
    WARNING: Failed to read memory @ address 0x8010FB64
    WARNING: Failed to read memory @ address 0x8010FB64
    WARNING: Failed to read memory @ address 0x8010FA4C
    WARNING: Failed to read memory @ address 0x8010FA4C
    WARNING: Failed to read memory @ address 0x8010E714
    WARNING: Failed to read memory @ address 0x8010E714
    Files
  • Hi,
    Sorry for the delay in response.
    We were not able to reproduce this issue.

    Could you please try this with the attached J-Flash project?
    Please,
    - Open the project with J-Flash
    - hit "F4" (Erase Chip)

    Does this work on your side?

    Best regards,
    Fabian
    Files
    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.