actually, I am doing just this
the boot loader is build in to a real time monitor that allows remote debugging and program checkout with a series of features over a serial port. Later will be updated to USB for some upcoming project.
The monitor has a library of functions - - - kind of like standard bios functionality
complete with start up messages, (hey have to know if the micro came up and started working - right)
monitor features include such items as application halt - - routine that breaks puts the application into safe mode.
Note micro can be controlling motors, - so puts I/O into safe mode, and halts all application processes
(monitor command that calls application halt routine) and also monitor has application start.
along with real time memory dump, while the application program is running.
and status messages being sent out.
Note this all interfaces with a Delphi PC program that displays the messages and provide control - -
and is expended for each project to have project interface screen that allows for changing settings. - -
displaying of parameters in the Micro - - timer values, micro temp, ADC readings, converted to human readings
(not simply a hex value or raw values but convered into - - - - if timer value relates to speed, it displays the related speed for the timer value, if the ADC is measuring pressure, the application PC interface converts the reading to pressure, )
So this monitor gives a in depth view into what the micro is doing, in real time, Limited only by buad rate in terms of what
can be passed back and forth.
This monitor also allows for updating the settings block in flash, and also erasing the flash and reprogramming.
The micro monitor knows the program area that is used by the monitor so will not allow erasing and reprogramming of that area. Also the PC interface is provided with this information also - - - - upon micro power up.