This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello.
I designed custom board TMX320F28335. I have problem using XINTF.
I have an FPGA connected to the XINTF(ZONE7) and I am just accessing some FPGA registers.
when I do first write or read on the XINTF after a power cycle, sometimes my board is halted.
At this time, if not halt, it works very well.
so I make code for debug.
debug code sequence is as follows :
0. Disable Global Interrupt
1. Disable WatchDog
2. Init Pll
3. Init Peripheral Clocks with enabling XINTFENCLK
{
EALLOW;
SysCtrlRegs.HISPCP.all = 0x0001;
SysCtrlRegs.LOSPCP.all = 0x0002;
SysCtrlRegs.PCLKCR3.bit.XINTFENCLK = 1;
EDIS;
}
4. Init GPIO
5. Init Xintf
{
EALLOW;
XintfRegs.XINTCNF2.bit.XTIMCLK = 1;
XintfRegs.XINTCNF2.bit.WRBUFF = 0;
XintfRegs.XINTCNF2.bit.CLKOFF = 1;
XintfRegs.XINTCNF2.bit.CLKMODE = 1;
XintfRegs.XTIMING7.bit.X2TIMING= 1;
XintfRegs.XTIMING7.bit.XWRLEAD = 3;
XintfRegs.XTIMING7.bit.XWRACTIVE = 7;
XintfRegs.XTIMING7.bit.XWRTRAIL = 3;
XintfRegs.XTIMING7.bit.XRDLEAD = 3;
XintfRegs.XTIMING7.bit.XRDACTIVE = 7;
XintfRegs.XTIMING7.bit.XRDTRAIL = 3;
XintfRegs.XTIMING7.bit.X2TIMING = 1;
XintfRegs.XTIMING7.bit.USEREADY = 0;
XintfRegs.XTIMING7.bit.READYMODE = 1;
XintfRegs.XTIMING7.bit.XSIZE = 3;
EDIS;
}
6. Some delay
7. Debug LED1, LED2 OFF
8. read register from FPGA via XINTF(ZONE7) <= this point is problem!
{
if( (*(volatile Uint16 *)0x203300) %2 == 1) {
Debug LED2 ON;
}
}
9. Debug LED1 ON
10. while(1);
=> when I turn on power for my custom board, sometimes I can't see light of LED1 and LED2.
Does anybody know this problem?
Thank you.
Best regards,
Lee.