This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Concerto armhex

Hello:

I'm trying to generate a Motorola s3 format file (32bits address) for the ARM M3 .out file. The following post build command is performed:

armhex -m3 -o MyM3Prog.s37 MyM3Prog.out

I get the following files:

1. MyM3Prog.s37

2. MyM3Prog.m1

3. MyM3Prog.m2

4. MyM3Prog.m3

It seems that the MyM3Prog.s37 is OK but what are the other file? Any use for them or what is the purpose for them?

Regards Arye

  • Please see the section titled Partitioning Data Into Output Files in the ARM assembly tools manual.  There you will see that "the default ROM width for (the Motorola-S3 format you use) is 8-bits".  It goes on to explain how this results in multiple output files.  Each file contains one 8-bit byte from each 32-bit word.  The name of the first output file is MyM3Prog.s37 because of the -o option.  The remaining files are named according to the default conventions for naming output files.  If you want all of the data contained in one output file then add the option --romwidth=32.

    Thanks and regards,

    -George