Altera_Forum
Honored Contributor
19 years agoBuilding NIOS2 Applications using command line
Hi everybody,
we decided to use a NIOS2 core in our project and I'm facing the challenge, to build applications without the NIOS2-IDE. Since we do automated nightly builds and regression tests I need to control this process by command line, i.e. by a script. I know, that this issue has already been raised in this forum and some of you say that this is not possible. Our Altera-FAE promissed me to provide some information but it seems to be some kind of difficult. Anyway, since the IDE is only a graphical IF, there must be a way to do this. Compiling a simple hello-world with nios2-elf-gcc works but downloading it fails or does not start. Of course, since a whole stuff is missing. In a second step I took the system library created by the IDE and tried to link my hello-world against it. It linked successfully, but it did not run neither. In both cases I failed with an error while downloading (Verify failed ...) I changed the board setup of my stratix2 eval board from full-featured to fast and was at least able to successfully download the elf-File. But the application did not start (though I used the -g and -r options ) or did not what I desired. Now I do not have any idea. Does anyone of you have ? I would be grateful for any hint ! Regards Umberto