Forum Discussion

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

Cyclone V Active Serial configuration with Spansion S25FL serial flash

We have built a board with a Cyclone V FPGA on it and are trying to configure the FPGA via the active serial programming method using

the Spansion serial nor S25FL256SAGNFI001.

The FPGA part number is 5CEFA7U19I7N.

We are able to write FPGA configuration data to the flash and read it back successfully,

but then when we turn off power to the FPGA

and then apply power back, the FPGA will not program from the serial flash.

Our MSEL pin settings are set correctly for active serial at 3.3V.

We can observe the SPI clock and data toggling from the FPGA to the serial flash as the FPGA is trying to configure itself.

But for some reason the configuration fails.

Is there something that could be cause the flash chip to not be compatible with Cyclone V?

Here's the contents of my nios2-flash-override file:

[EPCS-010219]# Spansion S25FL256SAGNFI001

sector_size = 262144

sector_count = 128

I don't know if it is correct.

I have tried setting the configuration scheme in Quartus (under device and pin options) as both active serial x1 and active serial x4

and neither of them seem to work correctly.

Also when I try and use the nios2-flash-programmer

it fails to verify the configuration bit-stream after writing it to flash.

I have attached the relevant snippet from my schematic.

Any ideas on what might be going wrong?

Thanks!

https://www.alteraforum.com/forum/attachment.php?attachmentid=7344

2 Replies

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

    So I sent spansion a question about this and here is their response:

    4-Byte addressing support is required to configure FPGAs from 256Mb or higher density SPI Flash.

    Altera requires specific operations to enter (4BYTEADDREN – B7 Command) and exit (4BYTEADDREX – E9 Command) 4-Byte addressing mode.

    Our S25FL256S does not support “B7” and “E9” commands, thus CANNOT be used to configure Altera FPGAs in Active Serial configuration mode. Hope it helps.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for posting this info. It would be nice if Altera published the op-codes issued during Active Serial mode configuration.

    The EPCS devices I have looked at have ID codes that match Numonyx parts (which Micron supplies).

    http://www.micron.com/products/nor-flash/serial-nor-flash

    The M25P are the EPCS parts, the N25Q are most likely the EPCQ parts.

    Since these parts are footprint compatible with the Spansion parts, you should be able to confirm that these parts support the opcodes mentioned by Altera, and then use them on your board.

    Cheers,

    Dave