Hi Petter
Thank you for your indication.
I´m using codewarrior as a IDE for my projects.
Actually, what i intend to do is something easier than a complete ethernet boot loader. My goal is to develop a code (simple boot loader) wich will basically check on an external serial flash (M25P40) for any new code. If it has a new code, the program will transfer it from external serial flash to coldfire´s internal flash, on the sector right after the boot loader code. So, after doing all the flash burning and checking, it will load the PC with the address of the first instruction of the new downloaded application. This new user application will have an interface to receive any new code, burn into the external serial flash and CRC it to validate as a new user code. After a reset, the simple boot loader will be able to reflash the device.
It´s something similar to what Mark did on uTasker, since his bootloader doesn´t configure the FEC, but only looks for new user code on high part of the flash memory area and reflash the low part of it. So i have to understand the basics of relocating things like interrupt vector and initializations.
All my applications with no boot loader codes start in flash address 0x00000000 and it initializes the PC with the address of the first instruction to be executed on this position and on next position (0x00000004) there must be the SP init value. then starts the interrupt vectors area.
So, i intend to put the bootloader code on the first flash sector and the doubts begin with the vectors relocating and goes on.
Mark, can you point me some code examples of docs?
Thank you
Message Edited by Alban on
2007-06-27 02:54 AM