The converter handles all this so you don't have to.
The first few bytes of a hex file are often vectors, not executable code. hex to arm converter