Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When I try to compile the sample code for hello_nios.c, I receive a message that na_seven_seg_pio is not defined. What does this mean?

0
Posted

When I try to compile the sample code for hello_nios.c, I receive a message that na_seven_seg_pio is not defined. What does this mean?

0

The Excalibur SDK is not able to handle arbitrary peripheral names in all cases. You most likely named your seven segment display something other than seven_seg_pio. The precompiled assembly code for pio_showhex.s assumed the use of the seven_seg_pio name. You will either need to modify the assembly code by hand and switch the name of the pio or you will need to re- generate your system module with the appropriate seven_seg_pio name. • When I update the pio_showhex.s assembly code and try to recreate the object file, it fails to recognize the updated assembly code. How do I force a recompilation? While in the Nios SDK Shell in the lib directory, type “make all”. This will clean out the object directory and recreate all object files. Assuming there are no errors, all object files will be stored in the obj32 directory below the lib directory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123