Re: Re: Booting MPC565 by CAN/RS-232?

Baruch Einziger <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
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 <[email protected]> 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 


--- In [email protected], "vijayanandl" <vijayanandl@y...> wrote:
> Hi All,
>       I have a question regarding programming the internal flash. In my 
> current implementation I have programmed the MPC565 internal flash 
> using the JTAG interface. We have a working system now and to expand 
> its functions, now I am interested to program the internal flash using 
> the RS-232/CAN interface if possible. The question is I am currently 
> using the standard initialization, with program executing from internal 
> flash and I do not use an RTOS(its a bareboard) my environment is 
> Codewarrior and BDI. So what are the steps I need to take to achieve 
> this capability using RS-232/CAN interface? 
> Do I need to modify my initialization files, flash driver etc. Advice 
> in this regard will be really helpful. Thanks in advance.
> 
> Regards
> Vijay




-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu






SPONSORED LINKS 
Freescale semiconductor inc Microcontrollers Pic microcontrollers 8051 microprocessor 

---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "MPC500" on the web.
  
    To unsubscribe from this group, send an email to:
 [email protected]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------



		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.