Forum Discussion

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

Is it possible to configure the EPCS device through FPGA via JTAG only?

From reading the Configuring the Cyclone Devices document i came to the conclusion that to write to the EPCS flash device , respective MSEL pin connections must be set for AS configuration mode for the FPGA.

My steps to configure the FPGA would be, in the AS Configuration Header, i would connect a USB blaster cable.

Convert the .sof file to .pof file. Compress it.

In the Programmer window select the .pof file and select AS mode in the type of configuration.

Program/Verify the dumped file.

And the FPGA is running after successful dowload.

So I wanted to know if, .sof file is sent to the EPCS through via FPGA through JTAG and what would be the steps?

And is it possible to send .pof file through JTAG to EPCS?

Thank you for your time.

2 Replies

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

    EPCS devices are 'standard' SPI flash (read the data sheets on the Micron web site). They can be programmed using two common methods;

    1. Active Serial Mode 10-pin header.

    If your board has a 10-pin header for Active Serial programming, you can configure Quartus to generate a programming file for the EPCS device on your board, and program it using the AS header.

    2. JTAG indirect mode.

    In this mode, Quartus configures the FPGA with a simple configuration image that allows it to issue SPI flash programming commands. You use Quartus to create a JTAG indirect programming file, and then download that image to the board. There are examples of how to use this method in most development kit user manuals.

    If you are designing a new board, then just make sure to include the 10-pin JTAG header. Don't bother to include an AS header, since JTAG indirect mode works well.

    Cheers,

    Dave