[SOLVED] imx6 failure to connect with JLinkExe and JLinkGDBServer

  • Hi,

    I was working successfully with both JLinkExe and JLinkGDBServer when my target had a running SPL and U-Boot.
    I just now replaced the SPL and the u-boot. u-boot is buggy, but console shows prints for SPL and U-Boot startup.

    But now when I try and connect using either JLinkExe or JLinkGDBServer it fails as in dump here. Can anyone give me some hints of how to fix and get a connection again?

    Kind Regards,
    Owain


    /git$ JLinkGDBServer -device MCIMX6S5
    SEGGER J-Link GDB Server V6.10f Command Line Version

    JLinkARM.dll V6.10f (DLL compiled Oct 17 2016 17:44:27)

    -----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: yes
    Generate logfile: off
    Verify download: off
    Init regs on start: off
    Silent mode: off
    Single run mode: off
    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: MCIMX6S5
    Target interface: JTAG
    Target interface speed: 1000kHz
    Target endian: little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link V9 compiled Sep 1 2016 18:29:50
    Hardware: V9.30
    S/N: 609300690
    Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    Checking target voltage...
    Target voltage: 3.29 V
    Listening on TCP/IP port 2331
    Connecting to target...WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)

    WARNING: At least one of the connected devices is not JTAG compliant (IEEE Std 1149.1, 7.1.1.d, IR-cells). (NumDevices = 3, NumBitsSet = 2)

    ERROR: Cortex-A/R (connect): Failed to temporarily halting CPU for reading CP15 registers.
    ERROR: Could not connect to target.
    Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
    Shutting down...
    Could not connect to target.
    Please check power, connection and settings.owain@owain-XPS-L421X:~/SVN/DSE_MDx//git$ Software/Source/u-boot-edm-imx/2013-r0/


    On starting JLinkGDBServer it must be going through some JTAG stuff that results in a reset, because every time I try and start the server at the console I see...



    U-Boot SPL 2013.10 (Nov 07 2016 - 11:56:46)
    Boot Device: MMC
    reading boot/u-boot.img
    reading boot/u-boot.img


    U-Boot 2013.10 (Nov 07 2016 - 11:56:46)

    CPU: Freescale i.MX6SOLO rev1.2 at 792 MHz
    Reset cause: POR
    Board: edm_cf_imx6
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: FSL_SDHC: 0, FSL_SDHC: 1
    Environment is in MMC....
    auto-detected panel wvga-lvds
    MPK: enable_lvds done
    Display: wvga-lvds (800x480)
    ipu_clk = 260000000
    ldb_clk = 65000000

    Edited once, last by Owain (November 7, 2016 at 4:42 PM).

  • Hi,

    Since yestereday I have procured a new card with iMX processor and made up a new deug connector to connect from JLink to the Non-Standard Technexion JTag port on the EDM. I have not yet replaced SPL or U-boot.

    So I suspect issue was faulty HW.

    Regards,
    Owain

  • Hi Owain,


    good to hear that you are up and running.


    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!