*
*Home|Chinese|Japanese*About ARM|Forums|Events|News|Employment|Contact Us|Investors*
dotted rule
*ARM - the architecture for the digital worldARM - the architecture for the digital world
search
*
*
***
*MARKETS:PRODUCTS & SOLUTIONS:CONNECTED COMMUNITY:TECHNICAL SUPPORT:DOCUMENTATION*
*
technical support
*
*
****
*.Technical Support
*
*
*>>Home Page*
*
*.Obtaining Support*
*
*.FAQs*
*
**Development Tool FAQs*
**IP FAQs*
**Embedded Software FAQs*
**Artisan Physical IP FAQs (Login Required)*
*
*.Downloads*
*
*.Documentation*
*
*.Training*
*
*.Where To Buy*
*
*.Keil MCU Tools*
*
*.What's New*
*
*.ARM Newsgroups*
*
*.Active Assist On-site Services*
*
*
*
technical support FAQsask ARM*
*

Technical Support Search
*     (Advanced Search)
  FAQs   Documentation   Downloads   Forums

*

 
downarrowFromELF file outputs - Line endings
Applies to: Fromelf, Software Development Toolkit (SDT)

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





back to top

*
**
*4 dots*Other ARM Websites
*
shadow *LEGAL STATEMENTshadow