J-Flash error

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

  • J-Flash error

    Hi I am trying to use J-Flash with an AT91SAM7S256 via USB/JLink.

    Trying to use the command "Read Back", from a connected device causes the error listed below.

    This error is apparent with version V379z02, V378d, but version V374m works OK.

    Edit: v374m works if initial JTAG speed is 10KHz, the other versions do not. this was the main project difference between the versions that I noticed.


    - 1024 sectors, 1 range, 0x100000 - 0x13FFFF
    - ERROR: Write memory error @ address 0x00200000, word access: Memory access timeout.
    Failed to verify RAMCode for CPU clock frequency detection!
    - ERROR: RAM check failed @ address 0x00200000.
    - ERROR: Write: 0xE7FEE7FD E07CE062
    - ERROR: Read: 0xAAAAAAAA AAAAAAAA
    - ERROR: (0 bytes of RAM have been checked successfully)
    - ERROR: Failed to read back target memory
    Disconnecting ...
    - Disconnected

    The post was edited 1 time, last by simonb ().

  • Hello simonb,

    unfortunately we can not reproduce the problem.
    We have tested the latest beta version (V379z02)
    and the latest release version (V378d) without any problems.
    Hardware for testing:
    Atmel AT91SAM7S256-EK
    Olimex SAM7P256

    The following information may be useful in order to find the source of the problem:
    1) Do you use an eval board or a custom hardware?
    2) Which J-Link hardware version do you use?
    3) Could you please set the J-Flash log level to "All messages" and post the complete J-Flash log output?
    The log level can be changed at Options->Global Settings->General log level

    If you use a custom hardware the PLL settings could be the problem.

    Best regards,

    Alex
    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 Alex.

    This is our own custom hardware.

    The J-Link device is the Atmel badged one, SAM-ICE hw v5.2

    I have cut and pasted the log data below, (the website upload function does not support .txt or .log files.

    Best Regards,

    SimonB.


    T05CC 566:606 SEGGER J-Link ARM DLL Log File (0000ms, 0000ms total)
    T05CC 566:606 Logging started @ 2008-03-03 08:16 (0000ms, 0000ms total)
    T05CC 566:606 DLL Compiled: Feb 25 2008 12:39:11 (0000ms, 0000ms total)
    T05CC 583:692 ***** Logging restarted ??? ***** (0000ms, 0000ms total)
    T05CC 583:692 JLINKARM_SelectUSB(Port = 0) returns 0x00 (0000ms, 0000ms total)
    T05CC 583:693 JLINKARM_OpenEx(...)Firmware: J-Link compiled Dec 03 2007 17:15:31 ARM Rev.5 (0005ms, 0005ms total)
    T05CC 583:706 returns O.K. (0000ms, 0005ms total)
    T05CC 583:706 JLINKARM_TIF_Select(JLINKARM_TIF_JTAG) returns 0x00 (0000ms, 0005ms total)
    T05CC 583:708 JLINKARM_ConfigJTAG(IRPre = 0, DRPre = 0) (0000ms, 0005ms total)
    T05CC 583:708 JLINKARM_SetEndian(ARM_ENDIAN_LITTLE) returns 0x00 (0000ms, 0005ms total)
    T05CC 583:708 JLINKARM_GetFirmwareString(...) (0000ms, 0005ms total)
    T05CC 583:708 JLINKARM_SetSpeed(10) (0001ms, 0006ms total)
    T05CC 583:709 JLINKARM_GetSpeed() returns 0x0A (0002ms, 0008ms total)
    T05CC 583:711 JLINKARM_SetResetType(JLINKARM_RESET_TYPE_NORMAL) returns JLINKARM_RESET_TYPE_NORMAL (0000ms, 0008ms total)
    T05CC 583:711 JLINKARM_SetResetDelay(0) (0000ms, 0008ms total)
    T05CC 583:711 JLINKARM_ResetPullsRESET(ON) (0000ms, 0008ms total)
    T05CC 583:711 JLINKARM_Reset() >0x48 JTAG> >0x1B8 JTAG>TotalIRLen = 4, IRPrint = 0x01 (0050ms, 0058ms total)
    T05CC 583:761 >0x30 JTAG> >0x110 JTAG> >0x58 JTAG>_ResetBP0: >0x58 JTAG> >0x18 JTAG> >0x50 JTAG> >0x48 JTAG> >0x138 JTAG> >0x48 JTAG> >0x48 JTAG> >0x6F8 JTAG> >0x98 JTAG> >0x18 JTAG> >0x50 JTAG> (0376ms, 0434ms total)
    T05CC 584:137 JLINKARM_SetMaxSpeed() -- Detecting speed: - RTCK seems to be bridged with TCKRTCK seems to be bridged with TCK - 12kHz: >0x70 JTAG> O.K. - 50kHz: >0x68 JTAG> O.K. - 200kHz: >0x68 JTAG> O.K. - 600kHz: >0x68 JTAG> O.K. - 1600kHz: >0x68 JTAG> O.K. - 4800kHz: >0x68 JTAG> O.K. - 12000kHz: >0x68 JTAG> O.K. -- Auto JTAG speed: 8000 kHzAuto JTAG speed: 8000 kHz >0x08 JTAG> (0047ms, 0481ms total)
    T05CC 584:184 JLINKARM_GetSpeed() returns 0x1F40 (0000ms, 0481ms total)
    T05CC 584:184 JLINKARM_MeasureCPUSpeed(RAMAddr = 0x00200000) >0x48 JTAG> - Writing 0x08 bytes @ 0x00200000 -- WriteRemote(8 bytes @ 0x00200000) -- ReadRemote(8 bytes @ 0x00200000) >0x90 JTAG> >0x20 JTAG> >0x450 JTAG> >0x48 JTAG> >0x498 JTAG> >0x60 JTAG> >0x648 JTAG> >0x48 JTAG> >0x498 JTAG> -- ClockFreq: 32000 Hz returns 0x7D00 (0032ms, 0513ms total)
    T05CC 584:216 JLINKARM_GetDeviceFamily() returns 7 (0000ms, 0513ms total)
    T05CC 584:216 JLINKARM_GetIdData(...) ScanLen=4 NumDevices=1 aId[0]=1057951503 aIrRead[0]=0 aScanLen[0]=4 aScanRead[0]=0 (0000ms, 0513ms total)
    T05CC 584:216 JLINKARM_GetDeviceFamily() returns 7 (0000ms, 0513ms total)
    T05CC 584:216 JLINKARM_JTAG_GetDeviceID(DeviceIndex = -1) returns 0x3F0F0F0F (0000ms, 0513ms total)
    T05CC 584:216 JLINKARM_GetSpeed() returns 0x1F40 (0000ms, 0513ms total)
    T0D90 584:219 JLINKARM_ReadMemU32(0xFFFFFC30, 0x0001 Items, ...) -- ReadRemote(4 bytes @ 0xFFFFFC30) >0x50 JTAG> -- Data: 00 00 00 00 returns 0x01 (0005ms, 0518ms total)
    T0D90 584:224 JLINKARM_WriteU32(0xFFFFFC20, 0x0000FF01) - Writing 0x04 bytes @ 0xFFFFFC20 -- WriteRemote(4 bytes @ 0xFFFFFC20) returns 0x00 (0001ms, 0519ms total)
    T0D90 584:425 JLINKARM_WriteU32(0xFFFFFC30, 0x00000009) - Writing 0x04 bytes @ 0xFFFFFC30 -- WriteRemote(4 bytes @ 0xFFFFFC30) returns 0x00 (0001ms, 0520ms total)
    T0D90 584:426 JLINKARM_MeasureCPUSpeed(RAMAddr = 0x00200000) >0x48 JTAG> - Writing 0x08 bytes @ 0x00200000 -- WriteRemote(8 bytes @ 0x00200000)
    ***** Error: Write memory error @ address 0x00200000, word access: Memory access timeout. -- ReadRemote(8 bytes @ 0x00200000) -- Abort occured
    ***** Error: Failed to verify RAMCode for CPU clock frequency detection! (0209ms, 0729ms total)
    T0D90 584:635 returns 0xFFFFFFFF (0000ms, 0729ms total)
    T0D90 584:635 JLINKARM_WriteMem(0x00200000, 0x0800 Bytes, ...) -- Data: FD E7 FE E7 62 E0 7C E0 4B E0 27 E0 0F 25 2C 1C ... returns 0xFFFFFFFF (0000ms, 0729ms total)
    T0D90 584:635 JLINKARM_ReadMem (0x00200000, 0x0800 Bytes, ...) -- Has error -- Data: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA ... returns 0x01 (0000ms, 0729ms total)
    T05CC 584:966 JLINKARM_GetHWStatus(...) returns 0x00 (0001ms, 0730ms total)
    T05CC 585:217 JLINKARM_GetHWStatus(...) returns 0x00 (0001ms, 0731ms total)
    T05CC 585:472 JLINKARM_GetHWStatus(...) returns 0x00 (0001ms, 0732ms total)
    T05CC 585:722 JLINKARM_GetHWStatus(...) returns 0x00 (0001ms, 0733ms total)
    T05CC 585:967 JLINKARM_GetHWStatus(...) returns 0x00 (0000ms, 0733ms total)
    T05CC 586:223 JLINKARM_GetHWStatus(...) returns 0x00 (0000ms, 0733ms total)
    T05CC 586:414 JLINKARM_Close() -- Has error >0x10 JTAG> >0x10 JTAG> (0006ms, 0739ms total)
  • Hi SimonB,

    have you tried the sample project for the AT91SAM7S256 delivered with J-Flash?
    If no: Could you please try out the sample project and test if it works with your board?

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