Less Intense Startup

The application can assume that it is being run out of an environment that has already booted the target. Thus, many things can be left untouched, since the monitor already takes care of them at boot time. The application doesnt need to worry about the reset vector. In fact, because the monitor has initialized all of the exception handlers, the application can ignore all but the exception handlers that are specific to its needs.

Recall that, for the monitor, all initialized data is not writable because initialized data was left in flash memory to avoid the step of copying the initialized data from boot flash to RAM. With the application loaded from TFS, this problem disappears because by default all of the text and data sections are copied from flash memory to RAM, so immediately and without any copying by the application itself, all initialized data is writable at runtime.



Embedded Systems Firmware Demystified
Embedded Systems Firmware Demystified (With CD-ROM)
ISBN: 1578200997
EAN: 2147483647
Year: 2002
Pages: 118
Authors: Ed Sutter

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net