Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI solve all problems .
I have in my board SPI real time clock 2x SPI FRAM All of them i connect to EPCS SPI bus And i work with all devices using epcs controller core I find in sources of EPCS controller that EPCS controller use standart SPI routines but all of them where not work after this if look into epcs_controller.v and find this strings assign epcs_select = chipselect && (address[8] ); // activation of epcs data assign readdata = epcs_select ? data_to_cpu : rom_readdata; \\ switch between BOOT ROM data and epcs data sofware for SPI was next # define IORD_ALTERA_AVALON_SPI_RXDATA(base) IORD(base, 0x00) address[8] - is zero !!!!!!!!!! and i fix it in all strings like this # define IORD_ALTERA_AVALON_SPI_RXDATA(base) IORD(base, 0x100) And now all work just fine !