[SOLVED] Cannot connect to target CPU

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

  • [SOLVED] Cannot connect to target CPU

    Hello,

    I try to connect to Marvell prestera CPU 88FR581V7 using the following JLink Commander command using V6.80:

    C:\Program Files (x86)\SEGGER\JLink>JLink.exe -if JTAG -speed 12000 -JLinkScriptFile "C:\Program Files (x86)\SEGGER\JLink\marvell.JLinkScript"
    SEGGER J-Link Commander V6.80
    DLL version V6.80, compiled May 25 2020 17:04:25

    Connecting to J-Link via USB...O.K.
    Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
    Hardware version: V9.40
    S/N: 59400276
    License(s): RDI, GDB, FlashDL, FlashBP, JFlash
    VTref=3.291V

    Connecting to target via JTAG
    InitTarget() start
    Connect to 2nd A9 core
    InitTarget() end
    TotalIRLen = 4, IRPrint = 0x01
    JTAG chain detection found 1 devices:
    #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
    AP map detection skipped. Manually configured AP map found.
    AP[0]: AHB-AP (IDR: Not set)
    AP[1]: APB-AP (IDR: Not set)
    Iterating through AP map to find APB-AP to use
    AP[0]: Skipped. Not an APB-AP
    AP[1]: APB-AP found
    Settings mismatch... core selected: Cortex-A9, core identified: unknown core
    InitTarget() start
    Connect to 2nd A9 core
    InitTarget() end
    TotalIRLen = 4, IRPrint = 0x01
    JTAG chain detection found 1 devices:
    #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP

    ****** Error: Cortex-A/R-JTAG (connect): Could not identify core via peripheral ID registers.
    InitTarget() start
    Connect to 2nd A9 core
    InitTarget() end
    TotalIRLen = 4, IRPrint = 0x01
    JTAG chain detection found 1 devices:
    #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
    InitTarget() start
    Connect to 2nd A9 core
    InitTarget() end
    TotalIRLen = 4, IRPrint = 0x01
    JTAG chain detection found 1 devices:
    #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
    Cannot connect to target.

    the JLink script is following:

    void InitTarget(void) {
    Report("Connect to 2nd A9 core");
    JTAG_DRPre = 0;
    JTAG_DRPost = 0;
    JTAG_IRPre = 0;
    JTAG_IRPost = 0;
    JTAG_IRLen = 4;
    CPU = CORTEX_A9;
    JTAG_AllowTAPReset = 1;
    CORESIGHT_CoreBaseAddr = 0xc2301000;
    CORESIGHT_AddAP(0, CORESIGHT_AHB_AP);
    CORESIGHT_AddAP(1, CORESIGHT_APB_AP);
    }

    Why can't it connect to the CPU?
    Does JLink support marvell prestera CPU ?
    Thanks. :)