Forum Discussion
sakthi_iitm
New Contributor
4 years agoSPI interface with Nios II
Please give me example code for Nios II of MAX10 FPGA for making SPI interface.
Nios II SPI (Master ) to be interfaced with slave devices.
I tried this example code in embedded peripheral user g...
ShengN_altera
Super Contributor
4 years agoI further debugging and found out those errors are due to mismatching between variables in c code and variables in system.h file.
The code can be built all after these changes to c code:
SPI_MASTER_BASE to SPI_0_BASE
SPI_SLAVE_BASE to SPI_0_BASE
SPI_SLAVE_IRQ_INTERRUPT_CONTROLLER_ID to SPI_0_IRQ_INTERRUPT_CONTROLLER_ID
SPI_SLAVE_IRQ to SPI_0_IRQ