This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can not to connect to BeagleBone X15

Hi.

I use CCS 6.1.3.

Emulator - SAU510-Usb Plus.

I attemp to connect according to AM572x_GP_EVM_Hardware_Setup article.

I press power button and attemp to connect to Cortex_A15_0 or to IcePick (to perform SystemReset).

For IcePick i get error below (In case of Cortex_A15 error is the same):

Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
IcePick_D: Error connecting to the target: (Error -180 @ 0x0) The controller has detected a target power loss. The user must turn-on or connect the power supply for the target. (Emulation package 6.0.222.0)

When I try to connect to board after linux halted (in that case PMIC will not turns off the board), i can to connect to IcePick, but SystemReset doesn't work:

IcePick_D: GEL Output: Ipu RTOS is released from Wait-In-Reset.
IcePick_D: GEL Output: Ipu SIMCOP is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD C66 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT1 is released from Wait-In-Reset.
IcePick_D: GEL Output: IVAHD ICONT2 is released from Wait-In-Reset.
IcePick_D: Trouble Writing Register IP_CNTL: (Error -1013 @ 0x1) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0)
SystemReset() cannot be evaluated.
Target failed to write register IP_CNTL
at (IP_CNTL|=0x1) [AM572x_ICEPickD_Utility.gel:51]
at SystemReset()

I tried lower TCLK but it only helped briefly.

Would be appreciate for any ideas.

Thanks.

  • The PMIC turns off after a some number of seconds (8?) unless you keep it alive through the I2C. I believe the gel file does that. Can you try first launching your debug configuration (but not connecting). Then immediately after you power-up the board click "connect" on the A15? That should hopefully get you connected.
  • Thanks for the reply.

    I tried and it doesn't help.

    Also, i tried to connect on another PC. And in almost all cases there was "target power loss" error.
    When linux is running i can easily connect to. But for clean debug, i has to do SystemReset.
    There is log, when i connect to both A15 while linux was running, and try to suspend it (gel file attemp to start).
    Then i connect to IcePick and try to perform SystemReset. This resulted in an error. And soon, there was jtag error and target disconnected.

    Of cource, to do anything while linux is running is wrong. But it seems to me at least SystemRest should work.

    Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
    Cortex_M4_IPU1_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
    Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
    Cortex_M4_IPU1_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
    Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
    Cortex_M4_IPU2_C0: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
    Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence In Progress... <<<---
    Cortex_M4_IPU2_C1: GEL Output: --->>> AM572x Cortex M4 Startup Sequence DONE! <<<---
    C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
    C66xx_DSP1: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
    C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence In Progress... <<<---
    C66xx_DSP2: GEL Output: --->>> AM572x C66x DSP Startup Sequence DONE! <<<---
    CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
    CortexA15_0: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
    CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence In Progress... <<<---
    CortexA15_1: GEL Output: --->>> AM572x Cortex A15 Startup Sequence DONE! <<<---
    IcePick_D: GEL Output: Ipu RTOS is released from Wait-In-Reset.
    IcePick_D: GEL Output: Ipu SIMCOP is released from Wait-In-Reset.
    IcePick_D: GEL Output: IVAHD C66 is released from Wait-In-Reset.
    IcePick_D: GEL Output: IVAHD ICONT1 is released from Wait-In-Reset.
    IcePick_D: GEL Output: IVAHD ICONT2 is released from Wait-In-Reset.
    CS_DAP_DebugSS: GEL Output: --->>> CONFIGURE DEBUG DPLL settings to 1.9 GHZs <<<---
    CS_DAP_DebugSS: GEL Output: > Setup DebugSS 1.9GHz in progress...
    CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS Trace export clock (TPIU) to 97MHz
    CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS PLL Clocking 1.9GHz
    CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS ATB Clocking 380MHz
    CS_DAP_DebugSS: GEL Output: < Done with Setup DebugSS Trace export clock (TPIU) to 97MHz
    CS_DAP_DebugSS: GEL Output: --->>> TURNING ON L3_INSTR and L3_3 clocks required for debug instrumention <<<<<<----
    CS_DAP_DebugSS: GEL Output: ---<<< L3 instrumentation clocks are enabled >>>> ---
    CS_DAP_DebugSS: GEL Output: --->>> Mapping TIMER supsend sources to default cores <<<<<<----
    CS_DAP_PC: GEL Output: Cortex-A15 1 is not in WIR mode so nothing to do.
    CortexA15_0: GEL Output: User msg: gpevm_am572x.gel call OnTargetConnect()
    CortexA15_1: GEL Output: User msg: gpevm_am572x.gel call OnTargetConnect()
    CortexA15_0: GEL Output: --->>> AM572x GP EVM <<<---
    CortexA15_1: GEL Output: --->>> AM572x GP EVM <<<---
    CortexA15_0: GEL Output: --->>> AM572x Target Connect Sequence Begins ... <<<---
    CortexA15_1: GEL Output: --->>> AM572x Target Connect Sequence Begins ... <<<---
    CortexA15_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x4A0025F4
    at (*((unsigned int *) 0x4A0025F4)&0xFFF) [AM572x_startup_common.gel:71]
    at AM57xx_EVM_Initialization(0) [gpevm_am572x.gel:55]
    at OnTargetConnect()
    CortexA15_1: GEL: Error while executing OnTargetConnect(): Target failed to read 0x4A0025F4
    at (*((unsigned int *) 0x4A0025F4)&0xFFF) [AM572x_startup_common.gel:71]
    at AM57xx_EVM_Initialization(0) [gpevm_am572x.gel:55]
    at OnTargetConnect()
    IcePick_D: Trouble Writing Register IP_CNTL: (Error -1013 @ 0x1) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0)
    SystemReset() cannot be evaluated.
    Target failed to write register IP_CNTL
    at (IP_CNTL|=0x1) [AM572x_ICEPickD_Utility.gel:51]
    at SystemReset()CS_DAP_DebugSS: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 6.0.222.0)
    CortexA15_0: JTAG Communication Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.222.0) 

  • Igor,
    One question: are you really using the X15 from Beagleboard,org or are you calling our Processor board X15?
  • Rogerio, I use TI board (AM572x Evaluation Module).

    Some additional information: For debugging I used Sau510-plus emulator, connected to board via hand-made pin-converter 14 to 20 cTi.
    I thought, that pin-converter may results in an error, but don't know how to check it. Scan Test performed successfully, and when there is a successful connect to the board, the loading and debugging program flows without glitches.

    This week I wait for parcel with ti adapter (TMDSADPEMU-20T). let's see how it will work with it.

  • Thanks Igor and keep us posted on the progress.
  • Hi.

    Well, it works. But only with hand-made adapter. TCLK = 6.667 MHz.
    I click "Connect to the target" and composer start waiting for connection (it looks like it hung). Then i press power button, and connection is successfull.
    Sometimes, composer does not start waiting and show an error "tartet power loss". In this case i power on the board and try to connect again. And usually composer hungs. Then, i wait for PMIC shuts off, and press "Connect to the target". And connection is successfull.
    So, connection establish only when i press the power button. If the power is already turned on, it doesn't connect.
    Except if connected while running Linux.

    Note: GEL initialization script is run only after I suspend the A15.

    P.S. I received ti adapter, but when i try to use it composer never hungs and always return error "target power loss" regardless of power state.

  • It sounds like you have a hardware issue with the VTRef pin.

  • The JTAG header pinout is shown here:

    http://processors.wiki.ti.com/index.php/JTAG_Connectors#Pinout

    VTRef is pin 5 of the 20-pin header.  It looks like the EVM schematics call that "TVD" which is the legacy name for that same signal.

  • One other thing to try to bypass the PMIC shutdown on the EVM is to add a Jumper on J5 as described here:
    e2e.ti.com/.../1935358

    Please note: this is only to debug your setup and we don`t recommend leaving the EVM with J5 shorted for extended power on hours due to exposure to an issue described in Silicon Errata Advisory i863

    Regards,
    Rahul
  • Hi, thanks for reply.

    I check the voltage on TVD pin on the board. There is no any voltage when PMIC is off. And when i press power button, there is a 3.3V. I saw with oscilograph the moment of powering up. There is no voltage spike.

    Also, i tried with J5 shorted. Yes, PMIC is not going down, but i still can to connect to only at the moment of powering up (no matter with help of J5, or with the power button) as i described above.

    I connected TVD and GND pins via two wires between the emulator and the board. An error was "target power loss". Then i shorted TCK with TCK_Ret on the emulator and an error changed to "Unable to access device register".

    I looked on the TCK_RET on the board. On the board TCK_RET signal appears when connect to the target is successful or when linux is started. I don't know whether there is any meaning in tck_ret to me, but that is what it is.

    P.S. At the moment i use my method to connect to the target. So, it isn't urgent to solve it.