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!


Parents
  • 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

Reply Children
No Data

Before You Switch


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