Forum Discussion

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

Can't open CFI Flash from NIOS

Hi,

I use Numonix PF48F2000 Flash as configuration device in Active parallel mode, but also need to access it from the application. The configuration part works just fine, however access to the Flash through the API (alt_flash_open_dev ) fails. I have no problems reading/writing to EPCS device with the same functions.

My configuration: Cyclone III, Quartus 9SP2.

Thank you.

2 Replies

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

    I think you must check the altera_avalon_cfi_flash_table.c file and other altera_avalon_cfi_flash*.* files located in \altera\90sp2\nios2eds\... and in \altera\90sp2\ip\...

    Probably there is no CFI entry for your device and you simply need to add it.

    You can build the syslib in debug mode and step into alt_flash_open_dev() in order to find the exact point where the function fails.

    Regards

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

    Thanks Cris, it's exactly the case. Will have to make my Flash recognizable.