Skip to content

fbucafusco/hex2array

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hex2array

forked from : https://github.com/meriororen/hex2array

Convert intel hex format to C array.

Useful for compiling binary images from one project into another.

ie: BOOTLOADER + MAIN APPLICATION

Binary format available at out/hex2array.exe

Compilation:

make

Usage:

hex2array <input hex file> <output c/h file>

Modifiers

-wXX XX = data width of each element of the array: 8, 16, 32 -b = adds pradding (0xFF) from the first section to the first data -cX X = target compiler selection 0: none 1: gcc 2: armcc 3: iar

Pending Changes:

  • add endiannes modifier
  • add output modifiers (# of elements per line, etc)
  • support for gcc / iar
  • -b modifier generates an ugly non aligned output format.

About

Convert intel hex format to c array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C 88.8%
  • C++ 9.6%
  • Makefile 1.6%