Post Go back to editing

ADSP-21835/ADSP-SC593W dual SOC board: W25Q256 SPI2 bring-up on DSP0 — shared serial flash wired to both DSP0 (ADSP-21835) and DSP1 (ADSP-SC593W)

Category: Hardware
Product Number: adsp21835

Issue Description Example and Setup Description:

The Winbond W25Q256JV serial flash (expected JEDEC ID EF 4019) programs correctly from the on-board S32K322 MCU, proving the flash device is healthy.

However, I am unable to read the JEDEC/Manufacturer ID from the ADSP-21835W (DSP0) over SPI2. MOSI transmits the 9F 00 00 00 read-ID command correctly, the chip-select (PA05) toggles, and SCLK is present, but MISO stays high (reads back 0xFF) — the flash never drives the bus. When execute the target side algo example get the error

"Error detected in algorithm command execution. Closing down algorithm"

Board / Setup:

  • Board: EA3 dual soc board with two processors sharing one SPI serial-flash bus:
  • DSP0 = ADSP-21835W (SHARC-FX, primary) — the master I am trying to program from.
    DSP1 = ADSP-SC59xW (secondary) — held in reset, so it stays off the shared bus.
  • Flash: Winbond W25Q256JV, 32 MiB, connected to SPI2 and shared between DSP0 and DSP1.
  • Cross-check master: S32Kxx MCU (programs the same flash successfully).
  • Toolchain: CCES 3.1.0, cldp.exe + OpenOCD (adsp2183x flash driver), ICE-2000 JTAG emulator.
  • Firmware: Target-side g_cfg flash algorithm (2183x_flash), ported/aligned to the working 2156x DPIA reference flasher. SPI2 mode 0, 8-bit words, PA05 as manual GPIO CS (idle high), PA00–PA04 muxed to SPI2 (MISO/MOSI/D2/D3/CLK). ( link for algo ADSP-SC835/21835 SHARC FX and ADSP-SC594 Family Cortex A5 Custom Flash Drivers - FAQs - CrossCore Embedded Studio and Add-ins - EngineerZone)

What I have already verified:

  1. MOSI/CLK/CS confirmed correct on the analyzer 
  2. Same flash programs fine from the S32Kxx MCU.

Questions:

  1. Is this correct — that for the ADSP-21835 the supported programming path is CLDP → OpenOCD cfg → target-side g_cfg algorithm, and there is no CLDP + DPIA (AFP) path as on the 21569/SC593? If a DPIA-style flow is available for the 2183x, please point me to the example; otherwise please confirm the OpenOCD + g_cfg algorithm is the intended method.
  2. What does "Could not read device id" point to? Is it that OpenOCD loaded the algorithm, but the g_cfg handshake never completed — i.e. no valid device ID was written back before OpenOCD's read timeout?

Thread Notes

Parents
  • Hi,

    Thank you for your inquiry.

    Apologies for the delayed response.

    In order to isolate your issue could you please share below points, this will help us to assist you further on this:


    1. Please confirm whether you have changed the Device ID referring by the FAQ linked below:
    ADSP-SC835/21835 SHARC FX and ADSP-SC594 Family Cortex A5 Custom Flash Drivers 


    2. Can you able to debug and flash your processers individually on your custom target (as single processor ADSP-21835W and ADSP-SC594)?
    3. Please try the below cldp command on your customer target and let us know how you gets on and share the screenshot?
    cldp.exe -proc ADSP-SC835 -emu 1000 -driver 2183x_flash.dxe -cmd info

    Waiting for your reply.

    Regards,
    Santhakumari.V

  • Sorry for the late response.

    1. Yes, I changed the Device ID as mentioned below
    2. Yes, I am able to debug the code successfully.
    3. When I run the following command: cldp.exe -proc ADSP-SC835 -emu 1000 -driver 2183x_flash.dxe -cmd info, I encounter the same timeout error as mentioned above.

     

  • Hi,

    Thank you for the update.

    We have a SPI Flash Read/Write example project (i.e., ADSP_SC835_Flash.zip provided in the below FAQ) for EV-SC835-SOM with EV-SOMCRR-EZKIT board using Device Driver. You can understand the working of the code from the comments embedded within.

    Using this as a reference and create a project for running in your test setup. This will help us to confirm whether ADSP-21835 processor is communicating with flash properly or not. You can refer to the attached screenshot (Screenshot.jpg) for the expected test results.

    The ADSP_SC835_Flash example project is available in the following FAQ:
    ez.analog.com/.../adsp-sc835-spi-flash-read-write-example

    Please try and let us know how you are getting on. Waiting for your reply.

    Regards,
    Santhakumari.V

Reply
  • Hi,

    Thank you for the update.

    We have a SPI Flash Read/Write example project (i.e., ADSP_SC835_Flash.zip provided in the below FAQ) for EV-SC835-SOM with EV-SOMCRR-EZKIT board using Device Driver. You can understand the working of the code from the comments embedded within.

    Using this as a reference and create a project for running in your test setup. This will help us to confirm whether ADSP-21835 processor is communicating with flash properly or not. You can refer to the attached screenshot (Screenshot.jpg) for the expected test results.

    The ADSP_SC835_Flash example project is available in the following FAQ:
    ez.analog.com/.../adsp-sc835-spi-flash-read-write-example

    Please try and let us know how you are getting on. Waiting for your reply.

    Regards,
    Santhakumari.V

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.