RE: AN2789 - MPC5500 Configuration and Initialization
"Tarascio, Tony" <[email protected]> Thu, 11 Jan 2007 15:59:03 -0700
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <DE2EFB01141E6C4EA06636C40D924C73279C03@nhc0ex12.goodrich.root.local> |
Thanks, Allan. I appreciate the quick response and example. I'll be sure to follow the process as outlined. Funny how that AN2789 went missing, though - it's even referenced twice in another App Note, AN2865, the "MPC5500 'Simple' Cookbook". If I hadn't found AN2789 off in an obscure folder on our internal servers, we probably wouldn't have realized that we were running the flash so much slower than we had to. That's some awful useful information to have disappear off the Freescale web site, IMHO. ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dobbin Allan-r11834 Sent: Thursday, January 11, 2007 5:18 PM To: [email protected] Subject: RE: [MPC500] AN2789 - MPC5500 Configuration and Initialization Tony, I don't have that code but can confirm its only talking about writing to the FLASH_BIUCR register, so the minimum you have to do is to execute a write instruction from RAM. You can accomplish that in C by writing the required opcodes to RAM followed by 0x4e800020 (branch to LR) and then calling "JumpToAddress (RAMaddr);" function as below: asm void JumpToAddress (int register address) { mtlr address blrl } This compiles with Codewarrior. I can't tell you the exact reason why this is neccesary, but glitching seems a reasonable assumption. Its similar to the fact that you can't change the chip select register settings when you are using that particular chip select to execute from external memory. What I can tell you is that I have encountered problems changing the BIU register while executing from flash, so you should definately follow that guideline. - Allan ________________________________ From: [email protected] <mailto:MPC500%40yahoogroups.com> [mailto:[email protected] <mailto:MPC500%40yahoogroups.com> ] On Behalf Of Tarascio, Tony Sent: Thursday, January 11, 2007 3:52 PM To: [email protected] <mailto:MPC500%40yahoogroups.com> Subject: [MPC500] AN2789 - MPC5500 Configuration and Initialization Does anyone know where the application note: Freescale Semiconductor Application Note AN2789, "MPC5500 Configuration and Initialization", Rev. 1.1, 10/2004 by Glenn Jackson, TECD Applications and the accompanying code can be found? I have the app note, but not the code, and I cannot locate either anywhere on the Freescale web site. I am particularly interested in the section that initializes the internal flash memory wait states. The app note states that the code setting the flash wait state registers cannot run from flash. Does anyone know why? Although I suspect that it has something to do with the flash access "glitching" when the access parameters are changed, this is not explicity stated in the app note, nor in the MPC5554 manual. Thanks in advance, Anthony A. Tarascio Sr. Software Developer [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]