Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
793 Views

BeMicroMAX10: Nios II system skips first pattern of LED sequence at power up only?

Hi all, 

 

 

I have this board set up so the LEDs show a pattern like this below with a one second delay between them: 

 

 

LED1-LED2-LED3-LED4-LED5-LED6-LED7-LED8 (0=on, 1=off) 

 

 

1110-0111 

1101-1011 

1011-1101 

0111-1110 

1011-1101 

1101-1011  

back to start 

 

 

This works fine except at power up. The first pattern (1110-0111) is skipped. After the first time it works as expected. 

I program the Nios following the tutorial in youtube from altera (link below) with ocram (initialized) and CFM0 . I have no flash ip in my design. 

 

 

https://www.youtube.com/watch?v=0k4azmdw9sk 

 

 

Why can't I see the first pattern? 

 

Thanks
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
32 Views

You need to post some code to help us. The make-up of your qsys system isn't going to hold the answer... 

 

Cheers, 

Alex
Altera_Forum
Honored Contributor I
32 Views

As I was posting the code I saw the problem (i=1 should be i=0) so ... never mind. 

 

Thanks
Reply