Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to use an EPCS Flash
Hallo together, I'm actually trying to save data from NIOS II into an EPCS64 device. My system contains an EPCS controller. But now the confusion is complete, there are so many files for usin...
Altera_Forum
Honored Contributor
14 years agoI didn't know what my eclipse shows in debug mode, but nothing useful I think! :mad:
I now checked the silicon id with an simple alt_printf() and now I see, the id id 0xFF. Then I added a if statement for these id, and initialized the structure. And now the command alt_flash_open_dev(EPCS_FLASH_CONTROLLER_NAME) returns no error! :) I will check the next days if I now could really read/write the flash and give a report here. But one strange thing remains, I still had to call ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INSTANCE ( EPCS_FLASH_CONTROLLER, epcs_flash_controller);
ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INIT ( EPCS_FLASH_CONTROLLER, epcs_flash_controller); in main(). This should be called automatically, or not? Can someone explain this behavior? Thanks Sim