Why do I get an error when trying to compile hello_nios.c in lab 1?
See also Section 12: Advanced Topics. You get an error because of the hardware design of lab 1. The hello_nios code uses a function called nr_showhex which displays output on the seven segment display. But recall that in the lab 1 hardware there is a seven segment decoder which drives part of the seven segment display. There is no sixteen bit parallel connection to the seven segment display as in lab0b. Thus, the hello_nios code won’t compile and won’t run. But you can still compile and run hello_world.c if you want to test out some software on your design.