Forum Discussion
GuaBin_N_Intel
Contributor
7 years agoprintf("STATUS = %u\n", altera_avalon_fifo_read_status(FIFO_0_IN_CSR_BASE,altera_avalon_fifo_read_status));
The fifo status isn't right. You have put the same function into the function argument. Refer to table 206, to read back all of bits, use the following command:
printf("STATUS = %u\n", altera_avalon_fifo_read_status(FIFO_0_IN_CSR_BASE,altera_avalon_fifo_status_all));
To debug, please put this status command before starting the transfer and after enabling the transfer.