Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi,
there is a struct automaically initialized on initialization of your device, just before alt_main is called i think. You'll find the init in your BSP/alt_sys_init.c in function alt_sys_init() there the MAKRO
ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INIT ( EPCS_FLASH_CONTROLLER_0, epcs_flash_controller_0);
should be caled, and therefore the struct epcs_flash_controller_0 is initialized. So for accesing the EPCS i use this structure, which works well for me.