Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
Serial BootLoader without interrupts? - Spencer Volmar - Jul 11 15:50:00 2005
Has anyone written a serial BootLoader that polls the serial port instead of
using interrupts? I am trying to find a BootLoader that can be launched by
the user app and then execute the new user app without a cold reset after it
is downloaded. The BootLoader can not use interrupts because the internal
RAM position can't be changed to overlay the vector table since the user app
had all ready written to the INITRM register. If someone has done something
like this or has another solution I would appreciate hearing from you.
Spencer V.
[Non-text portions of this message have been removed]
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Serial BootLoader without interrupts? - spen...@... - Jul 11 15:53:00 2005
Has anyone written a serial BootLoader that polls the serial port instead of using
interrupts? I am trying to find a BootLoader that can be launched by the user app and then
execute the new user app without a cold reset after it is downloaded. The BootLoader can
not use interrupts because the internal RAM position can't be changed to overlay the
vector table since the user app had all ready written to the INITRM register. If someone
has done something like this or has another solution I would appreciate hearing from
you.
Spencer V.
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
Re: Serial BootLoader without interrupts? - Oliver Betz - Jul 12 3:15:00 2005
"Spencer Volmar" <spencerv@spen...> wrote:
> Has anyone written a serial BootLoader that polls the serial port
> instead of using interrupts? I am trying to find a BootLoader that can
yes. Also with encryption and a compact file format, see the
archives.
Call the polling routine in the main loop and while waiting for Flash
programming.
> be launched by the user app and then execute the new user app without
Why should it be launched by the user app? IMO it's better to run it
out from reset so you can use it also if the "user app" is broken.
> a cold reset after it is downloaded. The BootLoader can not use
I wouldn't do so, because you might want to set some more protection
if the bootloader is not loaded. You can "return" from the loader
without user interaction using a COP reset. That's a clean restart.
This way (COP reset) you can also start the bootloader from the user
application.
Oliver
--
Oliver Betz, Muenchen
______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.
(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )