Re: Booting MPC565 by CAN/RS-232?
"trailrunner23" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------ 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/