I'm having a rather odd problem and I was wondering whether anyone else has experienced it.
I'm using an M25P40 serial prom with an EP2C20. Standard setup, in fact we reused the schematics from a previous project and repinned the FPGA. The only difference is that it's a Cyclone II instead of a Cyclone part. We've only built 4 boards and they are all flakey. The problem is that the proms are mysteriously unprogramming themselves during normal operation. That is, the Cyclone II won't configure until the prom is reprogrammed. Sometimes the serial prom can't be reprogrammed and must be replaced. Any ideas? Thanks for your help. Leslie連結已複製
Maybe because Altera only officially supports its own low cost serial configuration devices... why don't you use an EPCS device from Altera instead. You haven't provided a lot of details about your configuration scheme so it's hard to make any suggestions to you about things to try. Are you using passive or active? Sounds like active. Then you are clearly using a serial PROM that isn't supported.
Try these documents http://www.altera.com/literature/hb/cfg/cfg_cf51001.pdf http://www.altera.com/literature/hb/cyc2/cyc2_cii51013.pdfThanks for the quick reply.
What, you don't read minds? ;) The serial config device is set up for AS programming. Both MSEL tied low on the Cyclone II and a separate JTAG connector. Wiring, pull-up and pull-down resistors are all correct. Switching to the Altera part was my first guess, too. Not sure why we are using the other in the first place. I fired off an email suggesting the EPCS4 at about the same time as I wrote the first post about my problem. I had read the documents you listed - and read them carefully hoping I'd overlooked some tiny detail. Nada. It's odd only because we've used the M25P40 in the exact same circuit on several designs without a problem. I'll post a follow-up after the boards come back from the field and I can actually look at one.Hi,
I also use an ST M25P40 SPI flash with an EP2C8 in AS scheme, this without any problem. Did you check M25P40 SPI lines during normal operation (I mean after configuration) ? Maybe the M25P40 is chip selected in an unexpected way. Also ensure that M25P40 CS pin is pullup'ed. See M25P40 ST specs about power-on/power-down behaviour. Hope this will help :) .We use here the M25P40 Devices with the EP2C8 without any problems on some hundreds of boards. So I think there is something wrong with the wiring of the Pins on your boards. Do you have access to the JTAG pins of the Cyclone II? So you can try to program the M25P40 using a *.jic Files via JTAG(Quartus II -> File -> Convert Programming Files)
ChristianHi Ckirsche, I use (Quartus II -> File -> Convert Programming Files) but just find the configuration device is EPCS6,and if I use M25P40,how can I use this ?
and can you give me a discription about M25p40's pins connect(MAP)? just for M25p40 EPCS4 C ? D ? Q S …… thank u very much!Hi stephenzhou,
the M25P40 is one to one pin compatible to the EPCS4 Device. So if you wired the Configuration Device right for the EPCS4 device then you can replace it directly with M25P40. This works well ( I used it with Cyclone EP1C20, Ep1C12, Ep1C4 and with Cyclone II EP2C8). M25p40 EPCS4 C-----------DCLK D-----------ASDI Q-----------DATA S-----------NCS W-----------VCC (With pullup) HOLD-------VCC (With pullup) VCC--------VCC VSS--------GND The Pins W and /Hold are used for some special featurees of the M25P40 device. I never tried the EPCS4 to support this features like Hold and Writeprotect, but i would think it can support such things even if it is not mentioned in the datasheet. When you want to use the M25P40 with *.jic You have to chosse the EPCS4 in the Configuration dialog. Regards Christianthank u for your great reply,
sorry for my poor net. so did you use M25P10? M25P80? M25P16 for EPCS1 %%%? and what u said M25p40 EPCS4 C-----------DCLK D-----------ASDI Q-----------DATA S-----------NCS W-----------VCC (With pullup) HOLD-------VCC (With pullup) VCC--------VCC VSS--------GND with pullup use 10K ohm?or 1K ohm?Hi stephenzhou,
it really doesn't matter. The pullups are just, i would say, nice to have. :cool: You can bypass them an connect those pins directly to VCC if you want to. (When you don't have the place or its to expensive). --- Quote Start --- so did you use M25P10? M25P80? M25P16 for EPCS1? --- Quote End --- I always used the M25P40 as replacement for the EPCS4 because there was no need for smaller parts. I'm not really sure, but i would say the M25P10 is comparable to EPCS1. I would advise you to compare the datasheets of the M25Pxx devices with the datsheets of EPCSx devices, then you will see what you need. (I hope so!) ChristianHi,
very nice threat :) because I want to use a ST M25P32 serial Flash with CYCIII Has anybody experiences in using ordinary serial flashes with CYC III instead of EPCS devices? Further question: Is it possible to program a ST M25PXX with the SF-Loader tool from altera over JTAG of the FPGA? THX CYCLONE :rolleyes:--- Quote Start --- Has anybody experiences in using ordinary serial flashes with CYC III instead of EPCS devices? Further question: Is it possible to program a ST M25PXX with the SF-Loader tool from altera over JTAG of the FPGA? --- Quote End --- I think there should be no problem, with Cyclone III. But I think you'll have to test it. Further answer: Yes it works, with JTAG (using Cyc II here). The silicon ID reported by Quartus programmer for M25PXX is the same, as the silicon ID for the EPCS device with the same size. Regards Christian
The error says everything you need to know...
Your jic ist apparently not one for an EPCS16. It is for an EPCS4. Two reasons: You selected the false programming file, or you selected the wrong device when converting. When converting your pof File into jic you should select the correct device. This is EPCS16 not EPCS4. ;-) Regards