Eric Thrall

Bootloader/flash question

Discussion created by Eric Thrall on Jan 8, 2008
Latest reply on Jul 28, 2009 by Mark Butcher
I've gotten good help here before, so I thought I'd ask for some guidance on this so I start down the right path.  I am writing code for a device that uses an MCF5212.  The image I have created runs as I'd like, so now I need to take the next step - I need to write a bootloader that can pick one of two images stored in flash and transfer control to that image.  Essentially, the bootloader will be loaded at the start of the internal flash and the two images will be written further down in the flash.

I can start the bootloader with CodeWarrior's pre-generated code for the ColdFire, but I'm not sure how I transfer control to a particular section of flash and what things I will need to set up so that each of the images will run the same as they run now while they are the only images present.

Also, is there a convenient way to combine all of the images to be flashed into a single file that I can flash to the device all at once, or will I need to flash all three separately?

Thanks for any help you can give!

Outcomes