[SOLVED] Regarding J-Link EDU programmer

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

  • [SOLVED] Regarding J-Link EDU programmer

    Hello Sir/Madam,

    I purchased "Segger J-Link EDU Programmer" last week. Earlier i was using Keil U-Link2 Programmer for my project, but that got defected and my teacher suggested me this J-Link EDU programmer.

    I am using "LPC2388 Microcontroller" for my project in Keil uvision4 IDE. While using this J-Link programmer for the first time, i connected it with my PC and installed the J-Link software and documentation pack from segger.com/download_jlink.html

    After the successful installation of the software, i changed target driver for Flash programming from U-Link ARM debugger to J-Link/J-Trace but still getting this error,


    Info: Device "ARM7" selected.
    VTarget = 3.343V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: Adaptive clocking not supported for selected CPU core. Only supported for -S cores.
    Info: Auto JTAG speed: 4000 kHz
    Info: RESET has cleared breakpoint, using default reset strategy.
    Info: Resetting target using RESET pin
    Info: Resetting TRST
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Hardware-Breakpoints: 2
    Software-Breakpoints: 8192
    Watchpoints: 0
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    JTAG speed: 1000 kHz
    Info: Device "LPC2388" selected.
    Info: RTCK reaction time is approx. 83ns
    Info: Auto JTAG speed: Adaptive
    JTAG speed: 1000 kHz
    Erase Failed!


    Kindly help me and provide support ASAP.
  • Hello Ashish,

    thanks for your inquiry.

    We provide IDE-Integration guides for all mayor IDE which can be used with J-Link.
    Could you please try to use our guide for Keil MDK/µVision?

    Info: Device "ARM7" selected.
    Info: Adaptive clocking not supported for selected CPU core. Only supported for -S cores.

    This seems incorrect for me, since LPC2388 is a ARM7TDMI-S device. Could you please try to select LPC2388 as target device, which is described in step 1 of our guide?

    Best regards,
    Niklas
    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.
  • Hello Niklas,

    As per your suggestion, i selected LPC2388 as target device.

    I also followed that guide for keil MDK, but still getting problem and the output window shows the following,



    Info: Device "LPC2388" selected.
    VTarget = 3.317V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Hardware-Breakpoints: 0
    Software-Breakpoints: 0
    Watchpoints: 0
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Invalid core Id. (0x00000000)
    Trying to connect with 5 kHz !
    Info: TotalIRLen = 4, IRPrint = 0x01
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    JTAG speed: 5 kHz
    Info: Device "LPC2388" selected.
    Info: Using DBGRQ to halt CPU
    Info: Resetting TRST in order to halt CPU
    JTAG speed: 1000 kHz
    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    Erase skipped!

    Kindly help me out.


    Regards,
    Ashish
  • Hello Ashish,


    let's try to narrow down the problem.

    Could you please open J-Link Commander (jlink.exe), follow the instructions after typing connect and post the output here?
    Could you furthermore provide us with the J-Link logfile generated during this J-Link Commander session?
    Log output can be enabled like as follows:
    • Open a connection to J-Link, e.g start J-Link Commander
    • In J-Link Control Panel: (Click the J-Link symbol located in the notification / tray area in order to open J-Link Control panel)
    • Open the tab "Settings"
    • Next to the field "Log file" check "Override" and click "..." in order to choose a log file path.

    This is also described in UM8001 Chapter 5 "Working with J-Link and J-Trace", Section 5.7 "J-Link control panel" .


    Best regards,
    Niklas
    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.
  • Hello Niklas,


    As you suggested, i opened the J-Link Commander and followed the instructions after typing connect,

    I am attaching the screenshot of the output of J-Link Commander(J-Link.exe)

    The logfile generated during the J-Link Commander session has the following data,


    SEGGER J-Link V5.10f Log File
    DLL Compiled: Dec 22 2015 14:24:20
    Logging started @ 2016-01-09 13:45

    T09B0 413:653 JLINK_Api_MRU_GetList()JLINK_ConfigJTAG(IRPre = -1, DRPre = -1) (0000ms, 0290ms total)
    T09B0 440:199 JLINK_ExecCommand("device=LPC2388", ...)Device "LPC2388" selected. returns 0x00 (0007ms, 0297ms total)
    T09B0 440:206 JLINK_SetSpeed(1000) (0002ms, 0299ms total)
    T09B0 440:209 JLINK_EnableLog(...) (0000ms, 0300ms total)
    T09B0 440:210 JLINK_GetEmuCaps() returns 0xF9FF7BFF (0000ms, 0300ms total)
    T09B0 440:210 JLINK_TIF_GetAvailable(...) (0002ms, 0302ms total)
    T09B0 440:212 JLINK_TIF_Select(JLINKARM_TIF_JTAG) returns 0x00 (0004ms, 0306ms total)
    T09B0 440:216 JLINK_Connect() >0x2F8 JTAG>TotalIRLen = 4, IRPrint = 0x01 >0x30 JTAG> >0x210 JTAG> >0x58 JTAG> returns 0x00 (0007ms, 0313ms total)
    T09B0 440:224 JLINK_GetIdData(...) >0x58 JTAG> >0x18 JTAG> >0x50 JTAG> ScanLen=4 NumDevices=1 aId[0]=0x4F1F0F0F aIrRead[0]=0 aScanLen[0]=4 aScanRead[0]=0 (0004ms, 0317ms total)
    T09B0 440:228 JLINK_GetMemZones(...) returns 0 (0000ms, 0317ms total)
    T09B0 440:228 JLINK_JTAG_GetDeviceID(DeviceIndex = 0) returns 0x4F1F0F0F (0000ms, 0317ms total)
    T09B0 440:228 JLINK_JTAG_GetDeviceInfo(DeviceIndex = 0) returns 0x00 (0000ms, 0317ms total)
    T09B0 440:229 JLINK_CORE_GetFound() returns 0x7FFFFFF (0000ms, 0317ms total)
    T09B0 440:230 JLINK_ETM_IsPresent() >0x830 JTAG> >0x1A JTAG> >0x58 JTAG> >0x58 JTAG> returns 18:TRUE (0007ms, 0324ms total)
    T09B0 440:237 JLINK_ETM_IsPresent() returns 18:TRUE (0000ms, 0324ms total)
    T09B0 440:237 JLINK_ETM_ReadReg(RegIndex = 0x01) -- Skipped returns 0x20842401 (0000ms, 0324ms total)
    T09B0 440:237 JLINK_ETB_IsPresent() returns 0:FALSE (0000ms, 0324ms total)


    The output which i am getting in the output window of the Keil uVision IDE is,


    Info: Device "LPC2388" selected.
    VTarget = 3.340V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: RTCK reaction time is approx. 83ns
    Info: Auto JTAG speed: Adaptive
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Hardware-Breakpoints: 2
    Software-Breakpoints: 8192
    Watchpoints: 0
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    Using adaptive clocking instead of fixed JTAG speed.
    Info: Device "LPC2388" selected.
    Info: Failed to program ICE breaker before Reset, using default reset strategy.
    Info: Resetting target using RESET pin
    Info: Resetting TRST
    JTAG speed: 1000 kHz
    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    Erase skipped!

    Please Help.

    Regards,
    Ashish
    Images
    • jlink_commander output.jpg

      87.76 kB, 680×344, viewed 1,132 times
  • Hello Ashish,


    J-Link Commander shows VTref = 0.00V in the screenshot. Any idea why this is happening?
    Could you please connect using J-Link Commander like you have done before and execute 'h' (=halt), then 'r' (=reset) and finally 'erase' and provide us with the output of J-Link Commander (and J-Link Logfile)?

    Best regards,
    Niklas
    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 Niklas,

    Sorry for the late reply.
    I am attaching the output of the J-Link Commander as Screenshot.

    The output which i am getting in the keil uVision output window is,


    Load "C:\\Users\\it\\Desktop\\TESTNVR_ v 1.1.3.2 17032015\\obj\\prjAemPrinter.AXF"
    Info: Device "LPC2388" selected.
    VTarget = 3.322V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Hardware-Breakpoints: 0
    Software-Breakpoints: 0
    Watchpoints: 0
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Invalid core Id. (0x00000000)
    Trying to connect with 5 kHz !
    Info: TotalIRLen = 4, IRPrint = 0x01
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    JTAG speed: 5 kHz
    Info: Device "LPC2388" selected.
    Info: Using DBGRQ to halt CPU
    Info: Resetting TRST in order to halt CPU
    JTAG speed: 1000 kHz
    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    Erase skipped!


    Regards,
    Ashish
    Images
    • output_jlink .jpg

      189.61 kB, 671×723, viewed 995 times
  • Hi,


    we could reproduce the error with J-Link Commander.
    Could you give J-Link Commander another try, but this time with speed set to < 400 (kHz) ?

    The default clock speed of the LPC2388 is ~ 4MHz.
    For ARM7TDMI-S based devices, max. JTAG speed <= 1/8 of core speed, so 1MHz is too high for the default clock speed.


    Best regards,
    Niklas
    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,

    I tried one more time with speed 300 kHz this time and the erase got successful. I am attaching the screenshot of the J-Link Commander output.

    The output of the Keil uVision IDE in the output window is,


    Load "C:\\Users\\it\\Desktop\\TESTNVR_ v 1.1.3.2 17032015\\obj\\prjAemPrinter.AXF"
    Info: Device "LPC2388" selected.
    VTarget = 3.319V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Hardware-Breakpoints: 0
    Software-Breakpoints: 0
    Watchpoints: 0
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: TotalIRLen = 4, IRPrint = 0x01
    ***JLink Error: CPU-TAP not found in JTAG chain
    Invalid core Id. (0x00000000)
    Trying to connect with 5 kHz !
    Info: TotalIRLen = 4, IRPrint = 0x01
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    JTAG speed: 5 kHz
    Info: Device "LPC2388" selected.
    Info: Using DBGRQ to halt CPU
    Info: Resetting TRST in order to halt CPU
    JTAG speed: 1000 kHz
    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    Erase skipped!


    Regards,
    Ashish
    Images
    • output_jlink_19jan.jpg

      177.3 kB, 667×719, viewed 953 times
  • Hi,


    since it works in J-Link Commander, neither your setup nor J-Link is causing the issue.
    It seems that the µVision Project settings contain an error:

    JTAG speed: 1000 kHz

    As previously explained, this wont work.

    Could you please check if J-link is selected as debugger in the Project settings?
    If this does not solve the issue, could you please send screenshots of your project settings like in our IDE integration guide?:
    segger.com/IDE_Integration_Keil.html

    Best regards,
    Niklas
    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 Niklas,

    I am attaching the screenshot of different sections of the project settings of Keil uVision.


    Regards,
    Ashish
    Images
    • device.jpg

      128.08 kB, 642×477, viewed 1,043 times
    • target.jpg

      90.74 kB, 641×474, viewed 884 times
    • output.jpg

      55.16 kB, 638×469, viewed 925 times
  • Hi,

    I am attaching few more sections of project settings.

    Regards,
    Ashish
    Images
    • debug.jpg

      93.04 kB, 641×475, viewed 875 times
    • utilities.jpg

      63.32 kB, 639×473, viewed 834 times
    • utilities_settings.jpg

      91.02 kB, 639×533, viewed 831 times
  • Hi,


    I do not see anything wrong by now.
    Could you open the tab "Debug" and click on "Settings" to the right of the "Use" drop down menu, and add a screenshot of the window that pop up?


    Best regards,
    Niklas
    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 Ashish

    could you change the speed from 1000kHz to <= 400kHz as previously discussed?

    Best regards,
    Niklas
    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,

    I have changed the speed to 300 kHz.

    The output which i am getting in the output window of keil uVision is,


    Load "C:\\Users\\it\\Desktop\\TESTNVR_ v 1.1.3.2 17032015\\obj\\prjAemPrinter.AXF"
    Info: Device "LPC2388" selected.
    VTarget = 3.349V
    Info: TotalIRLen = 4, IRPrint = 0x01
    Info: RTCK reaction time is approx. 83ns
    Info: Auto JTAG speed: Adaptive
    DLL version V5.10f, compiled Dec 22 2015 14:24:20
    Firmware: J-Link V9 compiled Dec 21 2015 09:38:47
    Hardware: V9.30
    Hardware-Breakpoints: 2
    Software-Breakpoints: 8192
    Watchpoints: 0
    Found 1 JTAG device, Total IRLen = 4:
    Id of device #0: 0x4F1F0F0F
    ARM7 identified.
    Using adaptive clocking instead of fixed JTAG speed.
    Info: Device "LPC2388" selected.
    JTAG speed: 300 kHz
    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    Erase skipped!


    Regards,
    Ashish
    Images
    • debug_settings2.jpg

      94.44 kB, 640×471, viewed 885 times
  • Hi,

    No Algorithm found for: 00000000H - 0000FFFFH
    No Algorithm found for: 00010000H - 0001F98BH
    the project seems to be configured to use Keil's flashloaders(but none is selected).
    It needs to be configured to use the J-Link flashloader.
    Could you send me the project, so that I can try to reproduce the issue here?

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