Altera_Forum
Honored Contributor
11 years agoCompiling assembly file to hex file
I am attempting to compile my source.s code into the hex file that will be placed in my system RAM. This must be done completely through the command line and I am having some problems. I am using the following commands in order.
nios2-bsp: This creates the BSP from the .sopcinfo file nios2-app-generate-makefile : This generates the make file from the source code make all: Compile the make file and generate the .elf file elf2hex: This converts the elf file to the hex file Now, I am running into problems when I run the make all. It appears that the src file (named "code_name" below) is not able to be compiled into the .o file that is required later on in the build process. I am left with the following error: Assembler messages: Fatal error: can't create obj/default//C/Users/..../code_name.o: No such file or directory make: *** [obj/default//C/Users/..../code_name.o] Error 1 The directory exists, but the file does not. Has anyone succesfully created their .hex file for their ram from simply their source code, and the .sopcinfo file using the command line?!?! Thanks