Splitting hex or srec files

Technical Note 35923

Architectures:

ARM

Component:

linker

Updated:

5/31/2018 9:14 AM

Introduction

An application located for example in Internal Flash and External Flash could generate a massive binary if the start addresses are far apart, and if the ELF output is converted to (Intel) HEX or (Motorola) SREC formats.

Solution

  1. Split or modify the HEX/SREC files using the open source tool "SRecord".
  2. If the project consists of a bootloader and application, divide the project into two separate projects.

Background

There are compelling reasons to NOT place your bootloader and application in the same project, one of them is discussed in Technical Note 27860.

 

All product names are trademarks or registered trademarks of their respective owners.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.