As Paul said, "objcopy" is what you use to turn an ELF file into SREC.
> That rules out CodeWarrior,
As Nouchi says, you should be able to use CodeWarrior. It has to be able to handle assembly files. Why did you think use of Assembly ruled it out?
I would also strongly suggest using CW because of all the other MODERN things it does for you and your students.
I assume you're not teaching a "History of Ancient Computing". If you were you'd force all your students to learn how to use "vi" or even "emacs" before they could even enter their first program. Then you'd have them hand-assemble the code (very educational :-) and then load it in through a debugger in Hex or through a real switches-and-lamps front panel. Maybe multi-pass editing and building using paper tape and an ASR-33 (yes, I've done that, once). As for debugging, it would be "run and crash while blinking a light". Or command-line GDB (which I still have to use a lot). That sort of thing would prepare some of them for life in companies that won't spend any money on tools, but would put most of them off the idea of programming for life.
I'd recommend aiming as "high and easy" as you can, with sensible integrated IDEs that make editing easy, building and loading a "one click" operation with syntax errors shown in the editor, and then gives full symbolic debugging. CodeWarrior should be able to do all of that with assembly source. It might be possible to set up an Eclipse project to do the same, but that's what I think you should be aiming for so the students can concentrate on the code design and writing without all the other stuff getting in the way of getting anything done.
Paul wrote:
> I am using the CodeSourcery toolchain
If you didn't grab a copy in 2011 you can't get it now. Mentor isn't supporting (or making available) the free ColdFire tool chain any more. I think you can still buy supported versions though.
https://community.freescale.com/message/101270#101270
Tom