I'm using the C6678 SRIO to communicate with Altera stritix IV,Program can run successfully after being loaded。
Well,I add a reset function in this program like this:
srioRegs->RIO_PLM_EN = 0;
while(srioRegs->RIO_GBL_EN_STAT&1);
srioRegs->RIO_PLM_EN = 1;
while(srioRegs->RIO_GBL_EN_STAT&1 == 0);
srioRegs->PLM[0].RIO_PLM_SP_LONG_CS_TX1 = 0x2003F044;
After this reset program execute ,the SRIO will nolonger link up.
Any mistake did I make?