Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Can't change pins in Nios II

Hello,

I have a problem in making *.vwf file. I want to change output LED[7..0].

I read nios ii hardware development tutorial, made project like this(count_binary), then created vwf file, in file I have output LED[7..0] and input PLD_CLOKINPUT (clk) period=50 ns, end time=1 us. Compilation was successful but LED=0;

I commented "usleep(100000);" but LED=0;

I changed count_binary.c :

#include "count_binary.h"

static void count_led()

{# ifdef LED_PIO_BASE

/* Logic to make the LEDs count from right-to-left,

LSB on the right. */

IOWR_ALTERA_AVALON_PIO_DATA(

LED_PIO_BASE,

0x10;

);# endif

}

int main(void)

{

count_led();

}

but LED=0;

What I do wrong? How I can change outputs signals in Nios II EDS and see this in vwf file?

Sorry for my poor English. Thank you.

No RepliesBe the first to reply