Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Problem programming SPI bitstream flash in AS mode

Hi all!

I designed a board with Cyclone II EP2C35. This is my first design with Altera.

The JTAG interface works and the FPGA can be loaded using USB Blaster. The FPGA should be normally configured from SPI bitstream flash in AS mode; we are using Adesto 25DF321A, 32Mbit.

Problem is that I cannot program the flash using USB Blaster!

Schema:

http://www.alteraforum.com/forum/attachment.php?attachmentid=9784&stc=1

Connector X201 is JTAG - works.

Connector X202 is AS-mode - does not work.

I believe that the FPGA and Flash are connected properly. This is a trace of FPGA->Flash communication after power-up when the FPGA is trying to read bitstream. You can see the FPGA is sending status query and the flash responds.

http://www.alteraforum.com/forum/attachment.php?attachmentid=9785&stc=1

Now when I connect USB Blaster and try to program flash in AS-mode I get this weird trace:

http://www.alteraforum.com/forum/attachment.php?attachmentid=9786&stc=1

USB Blaster is driving those signals when FPGA_CE is high. The signal FPGA_DCLK no longer looks like a clock. I checked the other signals and none of them does.

Programming fails with error messages:

Info (209060): Started Programmer operation at Mon Nov 24 09:20:54 2014

Error (209025): Can't recognize silicon ID for device 1

Error (209012): Operation failed

Info (209061): Ended Programmer operation at Mon Nov 24 09:20:55 2014

Programmer is set to AS mode, EPCS16:

http://www.alteraforum.com/forum/attachment.php?attachmentid=9787&stc=1

I must be sure doing something obvious wrong. Please help!

Jara

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I must be sure doing something obvious wrong. Please help!

    --- Quote End ---

    You're doing most things correctly, except for reading the error messages ...

    --- Quote Start ---

    Error (209025): Can't recognize silicon ID for device 1

    --- Quote End ---

    Does the Adesto 25DF321A use the same commands as the EPCS devices? If so, then all you need to do is disable the ID check in the Quartus programmer.

    Cheers,

    Dave