[ABANDONED] Error flashing ATSAM4SD16CA using J-FLASH and J-LINK

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

  • [ABANDONED] Error flashing ATSAM4SD16CA using J-FLASH and J-LINK

    Hi all,

    I have an abnormal case in hand and I would appreciate your help to understand it.
    I'm trying to flash a firmware into a ATSAM4SD16CA MCU from ATMEL/Microchip and I'm facing some difficulties.
    There are some moments where this MCU flashes the firmware well by using J-LINK Plus and J-FLASH V7.70 and, in some other moments, this process goes bad with the same MCU.
    We validated the hardware peripherals, the clock signal, power supply and everything is running fine.
    I'm attaching some logs from a bad flash and a good one from the same sample.

    I realized that when the flash doesn't work fine, it repeats this same snippet of log for several times:

    T71F0 7061:894.656 JLINK_ReadMemEx(0x2000079C, 0x10 Bytes, Flags = 0x00000000)
    T71F0 7061:894.656 CPU_ReadMem(16 bytes @ 0x2000079C)
    T71F0 7061:895.680 Data: FF FF FF 7F 00 00 00 00 00 00 00 00 00 00 00 00
    7061:895.680 - 0.701ms returns 16 (0x10)

    and in the end, it call this error handler:

    T71F0 7081:747.968 JLINK_SetErrorOutHandler(...)
    T71F0 7081:747.968 - 0.097ms
    T71F0 7081:755.648 JLINK_Close()
    T71F0 7081:756.160 CPU_ReadMem(4 bytes @ 0xE0001000)
    T71F0 7081:817.088 - 61.429ms
    T71F0 7081:817.088
    7081:817.088 Closed

    In the successful attempt, this first block occurs less frequently and this last one (the error handler call) doesn't occur.

    If you could help me understand a little bit more, I would be grateful.
    Files