Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12604 Discussions

Altera/Microtronix C12 Evaluation Kit questions

Altera_Forum
Honored Contributor II
1,232 Views

"hello_led" example worked fine, but when I tried to test a simple VHDL code without using SOPC and Nios II processor, it didn't work. The code simply try to toggle the LEDs by buttons or a counter 

 

proc_1: process (clk, button, cnt) 

 

begin 

 

if rising_edge(CLK) then 

cnt <= cnt + 1; 

end if; 

 

user_led(2 downto 1) <= button(4 downto 3); 

user_led(10 downto 3) <= cnt(22 downto 15); 

 

I have checked pin assignments for buttons, leds and clk.  

I tried to down load the "sof" file using the USB cable and the "pof" file using a ByteBlaster cable. Downloads returned no error but the code won&#39;t run. What have I missed?  

Thanks for any suggestions.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
241 Views

I have a quick suggestion, don&#39;t know if it will help. 

 

Go into the "Device & Pin Options..." window on the device selection page. Go to the "Unused Pins" tab and make sure the the "As inputs, tri-stated" option is selected. 

 

This may not be your problem, but I&#39;ve seen it a few times in the past with symptoms similar to yours. 

 

 

Dennis Scott 

Microtronix Datacom Ltd.
0 Kudos
Altera_Forum
Honored Contributor II
241 Views

That is exactly the problem! I just called an Altera support engineer from Future Electronics, he told me that this is common problem for Altera Nios kits. 

Thanks
0 Kudos
Reply