GNU Additional Tools: Create Flash Image, Print Size and Extended Listing Options

One question I have been asked several times here at FTF:

“How can I create an S19/Motorola S-Record with Eclipse?”

The answer depends on which Eclipse you are using. Actually it depends on which (ARM) build  tools plugin you are using, as with Eclipse you have the freedom of choice.

And this is not only about S19/Binary (Flash Image), but covers ‘Extended Listing’ and ‘Print Size’:

Additional Tool Options

Additional Tool Options

CodeWarrior for MCU 10.x

In CodeWarrior, there is an ‘Additional Tools’ group to enable it:

CodeWarrior Additional Tools Panel

CodeWarrior Additional Tools Panel

❗ IMPORTANT: You need to press the ‘Apply Button’ to get the additional groups showing up on the left hand side!

The format of the flash image file is configured here:

Output format Selection

Output format Selection

The output file is generated into the folder where your .elf file resides.

❗ Note that for this plugin the file name extension is always *.hex, even if it is a S-Record file.

Eclipse with GNU ARM Eclipse Plugins

The GNU ARM Eclipse Plugins maintained by Liviu have solved the problems mentioned above (‘Apply’ button, File Name Extension). So this plugin is my plugin of choice for Eclipse, and the same plugins is used in the Kinetis Design Studio too. It is just that the options are in a different place:

GNU ARM Eclipse Plugin

GNU ARM Eclipse Plugin

The options are found in the Tool Settings Tab:

GNU ARM Eclipse Plugin Output Format Selection

GNU ARM Eclipse Plugin Output Format Selection

Summary

It is very easy to enable the additional GNU tools, all what I need to know is where to look :-).

Previous articles on that topic:

Happy Tooling 🙂

Advertisements

7 thoughts on “GNU Additional Tools: Create Flash Image, Print Size and Extended Listing Options

  1. > CodeWarrior for MCU 10.x …
    > Note that for this plugin the file name extension is always *.hex, even if it is a S-Record file.

    Ah, now I understand why the look of CodeWarrior CDT plugins, especially the Additional Tools, looked so familiar to me.

    The wrong name extension was a known bug in GNU ARM Eclipse plug-in versions 0.5.x. Apparently CodeWarrior copy/pasted it entirely, including the bugs 🙂

    Like

  2. Pingback: GNU Linker, can you NOT Initialize my Variable? | MCU on Eclipse

  3. Pingback: Binary Files for the mbed Bootloader with Eclipse and GNU ARM Eclipse Plugins | MCU on Eclipse

  4. Pingback: Printing Code Size Information in Eclipse | MCU on Eclipse

  5. Pingback: Executing Multiple Commands as Post-Build Steps in Eclipse | MCU on Eclipse

  6. Pingback: Tutorial: FreeRTOS Projects with Kinetis SDK V1.3 and the SDK Project Generator | MCU on Eclipse

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s