Altera_Forum
Honored Contributor
21 years agoProgram reset
Hello!
I have the following problem. I created simple project by Quartus|| 4.1. And write primitive program in Nios || IDE:int main()
{
int i=0;
while(1)
{
if (i==0)
IOWR_ALTERA_AVALON_PIO_DATA ( PIODIOD_BASE, 1);
else if (i==10000)
IOWR_ALTERA_AVALON_PIO_DATA ( PIODIOD_BASE, 0);
i++;
if (i==20000) i=0;
}
return 0;
} Then I compiled all project and create *.sof file. Then I download this *.sof file to real deivece and I saw the next picture: my program works during 13 s, then 13 s of reset and again. I didn't do the program reset. How can I resolve this problem? Thank you.