I've written a flash and RAM bootloader for the 51QE family of devices. The source and documentation can be downloaded from my website:
http://pages.cs.wisc.edu/~klingens
It is useful if you want to use gcc or another 3rd party compiler to generate binaries for your device.
Neil,
Pretty cool.
Which version are you using? I'd to try it out.
Download Sourcery CodeBench for ColdFire ELF - Mentor Graphics
I've tested it on the 51QE128 and 51QE32.
-Neil
I'm sorry, I meant version of codesourcery.
Oh, I compiled it with v10.2.
Well, the example built fine on windows with 4.5.1, but I will upgrade to the version you mentioned.
Any chance I could convince you to put the make file in your bootloader zip?
Thanks...
Sure, do you want the makefile for Codewarrior? I don't think it has any project-specific definitions. Are you having trouble building it?
I see, looking at the source code it is a CW project.
Right, the bootloader must be compiled and programmed onto the board with Codewarrior. Once programmed onto the board, it allows you to load code generated with gcc. I would rather not involve Codewarrior at any stage of the process, but I don't have any open-source tools for accessing the 51QE's BDM interface.
I have attached a header file with register definitions for the 51QE that works with gcc. I will also add this to the example tarball on my website.
Thanks for that.
Do you have some guidelines for converting Freescale .h files to ones that gcc can digest?