Re: Booting MPC565 by CAN/RS-232?
"vijayanandl" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
Hi Joe, Baruch, David,
Thanks for all your responses. It was very
helpful and informative for me. I will follow Joe's suggestion and
incorporate the GMD in my code. Once I am confident with moving to
the RAM and flashing the code, I guess I will then proceed with the
RS-232/CAN loader development like Baruch suggested. Will let you all
know about my results!!
Have a nice weekend guys!
Vijay
--- In [email protected], Baruch Einziger <baruch_e1@y...> wrote:
>
> Hello Vijay
>
> The boot loader receives the reset signal and check if an
application is burn into the internal flash. The shadow Ram are
burning with the boot program before the first application program
transfer to the mpc5xx. We are also re map and reduce the size of the
interrupt table. If the boot finds a good application it's re map
the vector table and jump to the beginning of the application via the
new interrupt table (address 0x8000).
>
> If there is no application the boot copy the loader program with
the flash driver or RS232 or Can driver to the internal ram and jump
to the entry point of the loader program. The loader program erases
all the program blocks and receives and program line after line of
the S19 file of the new program.
>
> After the flash programing we are waiting to the next power up.
>
>
> trailrunner23 <joep@f...> wrote:
> Hello Vijay,
>
> I saw the other responses, and I don't think they mention that you
> don't need to write your own flash driver. There is a flash driver
> available from Motorola (free), and you should use this one. Do not
> try to write your own. Motorola calls its driver the General Market
> Driver (GMD). To find it, do a Google search on "MPC565 General
Market
> Driver". I have used this driver for the MPC555, and while I'm not
> sure that I would say that using it is "straightforward", it is very
> well documented.
>
> It is a little confusing to move code to RAM and run it from there
if
> you've never done it before. Rather than jump all the way to
uploading
> code to your board via RS-232 or CAN, I recommend that you first
> incorporate the GMD into your code and get to the point where you
> understand how to move the driver into RAM and run it from there.
The
> examples you get from Motorola simply write a test pattern into
> internal flash. If you have a BDM or NEXUS debugging connection, you
> can confirm that your code has actually written to flash using your
> debugger. I recommend that you do NOT write to the shadow flash
until
> you are sure that you can write correctly to the main flash array.
If
> you write the wrong value to the RCW in shadow flash, you can get
into
> a state where your debugger won't work. How do I know this? Because
> I've done it, of course.
>
> Good luck.
>
> Joe
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/dN_tlB/TM
--------------------------------------------------------------------~->
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/