Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

M25P32 access

Altera_Forum
Honored Contributor II
2,115 Views

I am using a Cyclone IV device with a M25P32 flash as EPCS replacement. I am aware of the fact that Quartus does not support M25P32 since there is no EPC32 device available. Therefore I tried to access the device through the EPCS controller from a Nios II. 

 

The Software crashed during the access. During debugging I found out that the software crashed when it reads out the Device ID. There are some lines in the File altera_avalon_epcs_flash_controller.c to find out which EPCS is attached. However, the software does not ever reach this part of the code. It crashes during the SPI command to read out the Device ID. 

 

Does anyone have an idea what the problem could be? Does altera check the device ID in the logic of the EPCS controller?
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
1,026 Views

I don't think so. It's probaly something you can fix in the NIOS software libraries

0 Kudos
Altera_Forum
Honored Contributor II
1,026 Views

I now included signaltap into the design to see what happens on the EPCS signals (DCLK, Din, Dout, Cs_N). There is no activity. Cs_N is high, Dclk is low, Dout is los and Din is high. What can cause this problem? 

 

Thanks for any help in advance
0 Kudos
Altera_Forum
Honored Contributor II
1,026 Views

It's probably better if you use an external oscilloscope instead of the signaltap

0 Kudos
Altera_Forum
Honored Contributor II
1,026 Views

I tried both, an osciloscope and signal tap. both show that there is absolutely no activity on the signals to the device. 

 

I also set up a SOPC system that only contains a CPU, JTAG UART, EPCS controller and an on-chip RAM. This minimal system does also not work (same behaviour).
0 Kudos
Altera_Forum
Honored Contributor II
1,026 Views

Did you set up the "dual purpose pins" as "User I/O" under the device settings ?

0 Kudos
Altera_Forum
Honored Contributor II
1,026 Views

Yes. I have set them up.

0 Kudos
Reply