Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI have written a simple program to write and read the epcs flash that takes approx 6KB of space using the hello_world_small as my starting template. I am running this on the EP3C16 (DE0) board where I've declared an 8KB onchip ram.
I couldn't get the serial flash working until I modified my alt_sys_init.c file and added: # define ALT_USE_EPCS_FLASH before the line:# include "altera_avalon_epcs_flash_controller.h" According to the documentation, it sounded like I needed to do this in my main.c file prior to calling main(). Perhaps they meant my alt_sys_init.c file... anyways, this worked. Cheers, -Terry