Forum Discussion

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

M25P32 access

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?

6 Replies

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

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

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

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

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

    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).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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