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’:
CodeWarrior for MCU 10.x
In CodeWarrior, there is an ‘Additional Tools’ group to enable it:
❗ 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:
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:
The options are found in the Tool Settings Tab:
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:
- DIY Free Toolchain for Kinetis: Part 8 – Processor Expert, Eclipse and GNU ARM Eclipse Plugins
- S-Record, Intel Hex and Binary Files
- S-Record Generation with gcc for ARM/Kinetis
- Traps and Pitfalls: No Hex/Bin/S19 File Created with GNU?
Happy Tooling 🙂