Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- hello driscoll42, i have downloaded your project. i generated the system. and when i used altera monitor program to compile the C code, i got errors. i have added only the hello_led.c code for that. do i need to add any other codes into altera monitor program? i got thr following errors C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:2:66: error: altera_avalon_pio_regs.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:5:27: error: sys/alt_flash.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:6:33: error: sys/alt_flash_types.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:7:88: error: sys/alt_alarm.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:8:32: error: sys/alt_timestamp.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:9:27: error: sys/alt_stdio.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:20:20: error: system.h: No such file or directory C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c: In function 'main': C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: 'BUTTON_PIO_BASE' undeclared (first use in this function) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: (Each undeclared identifier is reported only once C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:127: error: for each function it appears in.) C:/altera/11.0sp1/quartus/DE2_NET/hello_led_0/hello_led.c:197: error: 'EXPANSION_JP1_BASE' undeclared (first use in this function) Compilation stopped. --- Quote End --- Ah yes, I forgot you needed to install the University Program Installer (http://www.altera.com/education/univ/software/upds/unv-upds.html). That adds the functionality for some bits. Try that and let me know how it goes.