The 'fromELF' utility can translate ELF image files into other formats, including Plain binary (-bin), Intel Hex-32 (-i32), Motorola 32-bit S-records (-m32) and Extended Intellec Hex (-ihf) formats. These file formats are commonly consumed by ROM programmers, ROM emulators, Flash filing systems, etc. For the Intel-Hex, Motorola-S and Extended Intellec Hex formats, be aware that fromELF (SDT and ADS 1.0) always places Unix-style (LF=0xA) line endings in the file, even when run on a PC. Unfortunately, some ROM programmers do not support this, so you may need to change the line endings of the file to DOS-style (CR,LF= 0xD,0xA). This is fixed in ADS 1.1 and later - fromelf now generates the correct line endings for the host operating system. Solution (for SDT and ADS 1.0) A number of utilities can change the line-endings of a file, for example: From Unix to DOS: - (Solaris) unix2dos inputfile outputfile
- (Windows) Use DOS 'edit' to load the file, make a change then delete it then save the file
From DOS to Unix: - (Solaris) dos2unix inputfile outputfile
- (any Unix) sed 's/^M//g
|