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 agoOk, I take a look at these function an see:
void alt_sys_init( void )
{
ALTERA_AVALON_TIMER_INIT ( TIMER_STAMP, timer_stamp);
ALTERA_AVALON_TIMER_INIT ( TIMER_US, timer_us);
ALTERA_AVALON_TIMER_INIT ( WATCHDOG, watchdog);
ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INIT ( EPCS_FLASH_CONTROLLER, epcs_flash_controller);
ALTERA_AVALON_JTAG_UART_INIT ( JTAG_UART_0, jtag_uart_0);
ALTERA_AVALON_SPI_INIT ( SPI_ADC, spi_adc);
ALTERA_AVALON_SPI_INIT ( SPI_DAC, spi_dac);
ALTERA_AVALON_SYSID_QSYS_INIT ( SYSID, sysid);
ALTERA_AVALON_UART_INIT ( DEBUG_UART, debug_uart);
} So it is present. Now I look in altera_avalon_epcs_flash_controller.h and see: #define ALTERA_AVALON_EPCS_FLASH_CONTROLLER_INIT(name, dev)
alt_epcs_flash_init(&dev) So it is not empty. As already said, I use the small driver option, but I define ALT_USE_EPCS_FLASH. Any ideas? Or did I miss something? ciao