Post Go back to editing

ADSP-21565 Daisy Chain with Shared Flash – Cannot Connect to Blank Device via ICE-1000 and CLDP

Thread Summary

The user is unable to connect to two ADSP-21565 devices via JTAG daisy chain using the ICE-1000 emulator when the shared SPI Flash (W25Q256) is completely blank. The final answer suggests waiting for the flash erase command to complete before programming and using the `-erase all` option in the CLDP command. However, the user reports that pulling the HWReset pin of DSP1 HIGH during programming prevents the connection error but causes the process to get stuck.
AI Generated Content
Category: Software
Product Number: ADSP-21565
Software Version: CrossCore Embedded Studio 2.11.1

Dear ADI Support Team,

We are encountering an issue when using the ICE-1000 emulator to connect to two ADSP-21565 devices via JTAG daisy chain. The details are as follows:

Hardware Configuration:

  • Two ADSP-21565 devices on the same board, connected via JTAG daisy chain.

  • The two DSPs share a single SPI Flash, which is accessed through DSP0's SPI interface. Flash model:w25q256

  • Emulator: ICE-1000.

Programming Architecture:

  • We are using the configuration file P567_DSP0.ini with the intention of programming the complete program for both DSP0 and DSP1 into the shared SPI Flash via DSP0.

  • The program has been successfully programmed via UART in the past, and both chips boot and work normally after programming. We have confirmed that Secure Boot is NOT enabled in our program code.

Issue Description:

  • When the Flash is already programmed (via UART), both CCES debugger and CLDP.exe can connect successfully.

  • When the Flash is completely blank, CLDP.exe fails to connect with the following error:

text
PS> .\runtime\cldp.exe -driver .\driver\w25q_dpia_21565.dxe -config .\config\P567_DSP0.ini -cmd prog -erase affected -format hex -file A.hex
Target          Emulation Debug Target
Platform        P567_DSP0
Processor       ADSP-21565
Core            0
Driver          .\driver\w25q_dpia_21565.dxe
Error: [TpsdkServer] Failed to connect to processor.
Error: 0x80048083
Error Description: Failed to connect target
  • ICE Test passes all 5 tests, indicating the physical JTAG link is working properly.

Configuration File P567_DSP0.ini Content:

ini
[Platform]
Name = P567_DSP0
Platform Type = ICE-1000
Description = P567_DSP0
Device ID = 0
JTAG TCLK Frequency = 0

[Device 0]
Name = Device 0
Device Type = ADSP-21565
IR Width = 5

[Device 1]
Name = Device 1
Device Type = Unknown
IR Width = 5

What We Have Already Tried:

  1. Set DSP0 boot mode to "No Boot".

  2. Power cycled both the board and the ICE-1000 emulator.

  3. Confirmed that the Flash driver (w25q_dpia_21565.dxe) matches the actual Flash part on the board.

  4. ICE Test passes all tests.

Our ultimate goal is to reliably program the dual-core program into the shared Flash via ICE-1000 even when the Flash is completely blank.

We would greatly appreciate your guidance on this issue. Thank you for your support!


  • Hi ,

    Thank you for your inquiry.

    Based on your statement, "When the Flash is already programmed (via UART), both CCES debugger and CLDP.exe can connect successfully." , could you please confirm whether you are flashed your custom board via UART and debug your custom board in Daisy chain mode?

    Also, could you provide more details regarding your statement, "Our ultimate goal is to reliably program the dual-core program into the shared Flash via ICE-1000 even when the Flash is completely blank" , particularly what you mean by "Flash is completely blank"? For example, does this mean whether Flash is fully erased with no bootloader or application programmed, or does it refer to a different state?

    Additionally, please try to flash the application on your custom board using "-erase all" command and let us know the status. This will help us to assist you further on this.

    Waiting for your reply.

    Regards,
    Santhakumari.V

  • Dear Santhakumari.V,

    Thank you for your prompt and detailed response. Please find our answers to your questions below.

    **1. Regarding UART programming and Daisy chain debugging:**
    Yes, we have successfully programmed our custom board via UART. After that, we were able to connect and program the board via ICE-1000 as well. However, please note that our board uses a Daisy chain configuration with two DSPs (DSP0 and DSP1).

    **2. Regarding the definition of "Flash is completely blank":**
    By "Flash is completely blank," we mean a state after executing the following erase command:
    ```
    .\runtime\cldp.exe -driver .\driver\w25q_dpia_21565.dxe -config .\config\P567_DSP0.ini -cmd erase
    ```
    In this state, the Flash contains no bootloader, no application, and no valid firmware image. It is fully erased.

    **3. Regarding the "-erase all" test and the failure status:**
    We attempted to flash the application using the `-erase all` command, but it failed with the following error:
    ```
    Error: [TpsdkServer] Failed to connect to processor.
    Error: 0x80048083
    Error Description: Failed to connect target
    ```

    **Additional observation:**
    We have noticed that if we pull the HWReset pin of DSP1 HIGH during programming (while DSP0 HWReset is also HIGH), the CLDP command no longer reports the connection error. The LED on the ICE‑1000 changes from green to purple and flashes for a few seconds. However, after that, the process becomes stuck and does not proceed further. Even a simple command like:
    ```
    .\runtime\cldp.exe -config .\config\M18-2_DSP0.ini -core 0 -driver .\driver\w25q_dpia_21565.dxe -cmd info
    ```
    behaves the same way—it gets stuck and does not complete.

    We would appreciate any further guidance on how to resolve this issue, especially regarding the Daisy chain reset behavior and the "Failed to connect target" error when the Flash is completely blank.

    Please let us know if you need any additional logs or hardware details.

    Looking forward to your reply.

    Best regards,
    pjs

  • Hi,

    The flash erase command which you are used below may take couple of minutes to complete:
    ".\runtime\cldp.exe -driver .\driver\w25q_dpia_21565.dxe -config .\config\P567_DSP0.ini -cmd erase"

    We suspect that after issuing above erase command, you attempted to program the flash immediately, before hardware had returned to its default state (indicated by status LED changing from purple to green). As a result, the programming tool was unable to communicate with hardware.

    If your goal is to program a completely erased flash device (without any bootloader, application, or valid firmware image), please wait until the erase command has finished completely before starting the next programming process.

    Alternatively, you can use the "-erase all" command as part of CLDP command shown below. This option automatically erases the entire flash device before programming the application.

    Please try programming your application using following command and let us know the status.
    ".\runtime\cldp.exe -driver .\driver\w25q_dpia_21565.dxe -config .\config\P567_DSP0.ini -cmd prog -erase all -format hex -file A.hex"

    Hope this helps.

    Regards,
    Santhakumari.V

  • Hi,

    We've already resolved the issue. It was my mistake — I messed up the order of the 
    config.ini file exported from CCES. The correct order should be in reverse. 



    Regards,
    pjs

  • Hello,

    Thank you for letting us know that the issue got resolved.

    Best Regards,
    Santhakumari.V

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.