Forum Discussion
Altera_Forum
Honored Contributor
15 years agoProgramming a flash device with the parallel flash loader
Hello
I need to program a flash device using the parallel flash loader megafunction. The flash is not a configuration device, but is rather used to boot a processor up. The problem is that Quartus will only program with .hex files. The file that I have available is a .bin file. I have tried very hard to find some sort of converter (bin2hex.exe is an old app and doesn't work on 64-bit windows) to no avail. Does anyone know of another way that I can provide quartus with the flash image without it being in .hex format. Or even a program that I can use to make the conversion? Thanks1 Reply
- Altera_Forum
Honored Contributor
The objcopy utility can probably do that. It is part of the GNU toolchain, which is something that you may already have installed. In a cross-compiling toolchain the file name would normally begin with a target prefix, e.g. nios2-elf-objcopy or arm-eabi-objcopy etc. A bin to hex conversion is normally architecture-independent, so it doesn't really matter which toolchain to use.
I'm not sure if objcopy and Quartus II programmer speak the same .hex, but most likely they do.