Altera_Forum
Honored Contributor
7 years agoRebuilding NIOS 2 uncertainty
Hi
I am experiencing an issue where a delay I have written doesn't seem to have any affect. For example, with a 48MHz clock the following: int c;
for(c=0;c<480000000;c++){
} Should be a _long_ delay. However, I'm getting no noticeable delay between strings on my Nios II Console. I suspect I am not updating my files correctly. My normal procedure is 1. make adjustment in C in eclipse. 2. Save the C file. 3. Ctrl+B (rebuild all) 4. Load Programmer from Quartus Prime Lite 5. Find the .sof file for my project, upload. 6. In eclipse I'll right lcik the project, Run As, Nios II Hardware. 7. few seconds pass, my Nios II console appears but there is no delay as if the files have not changed. 8. Goto 1 :P Can anyone offer some suggestion as to what I'm doing wrong? I am really frustrated by this. :mad: I can't see where there would be a problem in the code, even when i nest two for loops, both with unsigned int d and e, d counting to 480000000 inside e counting to 50 there is still no noticeable delay. Thanks in advance.