Forum Discussion
Altera_Forum
Honored Contributor
13 years agoTo control LEDs with DE0_Nano
Hi, I wants to control leds on DE0_Nano board using Nios II Eclipse, for this anybody can provide code part?Because im very new to this , sory for lack of knowledge. Thanks, ...
Altera_Forum
Honored Contributor
13 years agoThere are some mistakes in your code, I assume they come from a copy/paste error. The include line should be
#include <system.h>and you didn't close the string in the printf line. You should also end the line with a \n to be sure it is written to the UART. Are you sure you upload the correct .sof image to the FPGA before you upload and run the software? And here is a tip: when you show some code, enclose it between [code] and [/code] tags, and you won't loose formatting and indentation.