Altera_Forum
Honored Contributor
9 years agoHelp with firts NIOS code
Hello, please with my first nios code.
# include "alt_types.h"# include "sys/alt_irq.h"# include "system.h"# include <stdio.h># include <unistd.h> int main(void){ int a = 1000; alt_printf("Probehl RESET, uz zase ziju!\n"); while (1){ alt_printf("AHOJ\n"); usleep(500000); alt_printf("Tady NIOS II!\n"); usleep(500000); alt_printf("%i\n", a); } return 0; } variable a not print to jtaguart...why? Thanks