Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCreating a hex-file
It cannot be that hard: I have a nios2 project (including onchip_ram with "Enable non-default initialization file" checked) that can be compiled to an elf-file. But i don't get any hex-file when...
Altera_Forum
Honored Contributor
15 years agoMy solution: this batch-file
@echo off if exist Project.hex del Project.hex set BIN_PATH="C:\altera\91\nios2eds\bin" java -jar %BIN_PATH%\elf2hex.jar --input=Project.elf --width=32 --base=0x4000 --end=0x77FF --record=4 copy /Y Project.hex ..\..\onchip_ram.hex pause