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.

TMDXIDK5718: Connect to DSP via JTAG on the Sitara processor on TMDXIDK5718

Part Number: TMDXIDK5718
Other Parts Discussed in Thread: AM5718

We are using a AM571x IDK development board and would like to access the DSP C66 on the board through the XDS100 on board. We would like to run a simple Hello world program, but unable to connect to the DSP from CCS. Would appreciate if you have a procedure to be followed. Do we have to bring the DSP out-of-reset first? We are able to run the some LED program on the ARM.

  

  • Hello,

    These types of multi-core devices usually have a specific initialization sequence. Usually you need to connect to the primary core (like the A15) and run some GEL script to initialize any secondary cores (like the C66x) before you can use them.

    I will bring this thread to the attention of the device experts. They will know best.

    Thanks

    ki

  • Thanks for your response. We are able to connect to the ARM 15 and run sample LED test programs on the eval kit. The JTAG boundary scan passes. But when trying to run the code, this is the error we see:

    CortexA15_0: GEL: Error while executing OnTargetConnect(): Target failed to write 0x58880800
    at *((unsigned int *) regAddr)=(unsigned int) 0x40000000 [AM571x_multicore_reset.gel:12]
    at IPUSSClkEnable(1) [AM571x_multicore_reset.gel:236]
    at IPU1SSClkEnable_API() [AM571x_multicore_reset.gel:210]
    at AM571x_MULTICORE_EnableAllCores() [AM571x_startup_common.gel:42]
    at OnTargetConnect() 

  • Hi,


    Please follow the procedure mentioned in the link here  to connect to DSP via JTAG and run a template application.
    Also, please power cycle the board after each test execution, to avoid the above error.

    Regards,
    Parth

  • Hi,

    Thanks for the reply. I had followed the above link and tried to connect to the A15 core first and then the DSP core.

    The A15 core initially gives GEL output that seem to pass. But then these errors follow:

    CortexA15_0: GEL Output: PHY_STATUSx registers
    CortexA15_0: GEL Output: --->>> DDR3 Initialization is DONE! <<<---
    CortexA15_0: GEL Output: --->>> Mapping TIMER supsend sources to default cores <<<<<<----
    CortexA15_0: GEL Output: --->>> IPU1SS Initialization is in progress ... <<<---
    CortexA15_0: Trouble Writing Memory Block at 0x58880800 on Page 0 of Length 0x4: (Error -1141 @ 0x3D58) Device is not responding to the request. 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 9.4.0.00129)
    CortexA15_0: GEL: Error while executing OnTargetConnect(): Target failed to write 0x58880800
    at *((unsigned int*) regAddr)=(unsigned int) 0x40000000 [AM571x_multicore_reset.gel:12]
    at IPUSSClkEnable(1) [AM571x_multicore_reset.gel:236]
    at IPU1SSClkEnable_API() [AM571x_multicore_reset.gel:210]
    at AM571x_MULTICORE_EnableAllCores() [AM571x_startup_common.gel:42]
    at OnTargetConnect()
    CortexA15_0: Trouble Reading Register REG_SYSTEM_TARGET_CONFIG: (Error -1141 @ 0x3D58) Device is not responding to the request. 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 9.4.0.00129)
    CortexA15_0: Trouble Reading Register REG_SYSTEM_MMU_CONFIG: (Error -1141 @ 0x3D58) Device is not responding to the request. 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 9.4.0.00129)

    Then again, connecting to the DSP core, gives the error:

    Error connecting to the target:
    (Error -1180 @ 0x0)
    Device is held in reset. Take the device out of reset, and retry the operation.
    (Emulation package 9.4.0.00129)

  • In the Target Configuration, if I choose AM5718 instead of the IDK_571x as the Board or Device, then when connecting to ARM, the A15 runs though there are no logs.  But when trying to connect to C66x, still the same error:

    Error connecting to the target:
    (Error -1180 @ 0x0)
    Device is held in reset. Take the device out of reset, and retry the operation.
    (Emulation package 9.4.0.00129)

    Greatly appreciate your help. Thanks.

  • Hi Subashini,

    Please find a screen recording explaining step by step procedure to connect DSP Core via CCS:

    Regards,

    Parth

  • Hi Parth,

    Thank you for the step-by-step video. It looks like there might be a disconnection on our board from the micro-USB to the JTAG part that could be causing the issue. We are looking at a way to access the DSP without connecting via JTAG, probably by flashing. Please let us know of an easy alternate to access DSP. Thanks.

  • We checked the connections from micro-USB to the JTAG and they seem alright. The JTAG scan tests pass and also the Uart prints appear correctly. We have tried using the RTOS SDK and also the Linux OS on the micro SD card. 

    The error still exists when trying to connect to A15 core:

    CortexA15_0: GEL Output: --->>> IPU1SS Initialization is in progress ... <<<---
    CortexA15_0: Trouble Writing Memory Block at 0x58880800 on Page 0 of Length 0x4: (Error -1141 @ 0x3D58) Device is not responding to the request. 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 9.4.0.00129)
    CortexA15_0: GEL: Error while executing OnTargetConnect(): Target failed to write 0x58880800
    at *((unsigned int*) regAddr)=(unsigned int) 0x40000000 [AM571x_multicore_reset.gel:12]
    at IPUSSClkEnable(1) [AM571x_multicore_reset.gel:236]
    at IPU1SSClkEnable_API() [AM571x_multicore_reset.gel:210]
    at AM571x_MULTICORE_EnableAllCores() [AM571x_startup_common.gel:42]
    at OnTargetConnect()
    CortexA15_0: Trouble Reading Register REG_SYSTEM_TARGET_CONFIG: (Error -1141 @ 0x3D58) Device is not responding to the request. 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 9.4.0.00129)

    We would greatly appreciate if you can throw some light on the meaning of the error code and also if there are some jumper or other settings to be checked on the IDK. We have tried with CCS 9+ and 10+. Would it be possible to connect to the 20-pin JTAG (CTI J18) to run our code?

  • Hi Subashini,

    Can you please check if there is any SD card inserted in the board or any firmware loaded into any other boot media?

    Regards,
    Parth

  • Hi Parth,

    Yes, There is an SD card inserted (SDK RTOS) in the board.

    Regards

    Subashini

  • Hi Subashini,

    Can you please remove the card and try to connect?

    Regards,
    Parth

  • Hi Parth,

    Thanks a lot for your support. We are able to connect to the ARM and the C66 now. After the Power On button (SW3), we have the Status LEDs and the Industrial LEDs D18 and D19 glowing and connection successful. Thanks again.

    Regards

    Subashini