Forum Discussion
Altera_Forum
Honored Contributor
15 years agorun a c program using nios 2 command shell
Hi, I am trying to run a .c file from nios 2 command shell but not able to. I know how to run .elf using nios2-download -g hello_world.elf. I also know how to convert .c to .out using nios2-el...
Altera_Forum
Honored Contributor
15 years agoYou can't just generate a binary file from a single source code, you need to link it with the C library and the drivers.
The easiest way to do that is to write a makefile and use make. You can have a look at the makefile generated by the Nios SBT as an example.