RE: programming internal flash of MPC566
"Dobbin Allan-r11834" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <4147ED8B92A864498825C07E53594E4AD484BA@az33exm20.fsl.freescale.net> |
I'm not sure if there is a default FLASH target in CW. To do it manually, you have to alter the linker file to put relevant sections into FLASH addresses i.e. init, exception_handlers, code, rom, or whatever similar sections you are using. You then have to program the code (the resulting .mot s-record file in the bin directory) into FLASH using the CW flash programmer or flash programmer of choice. If you use breakpoints, they now have to be hardware breakpoints (can't remember how to control that in CW). If you want to boot from flash without the debugger, you need a reset vector programmed into shadow (see archives). If you are using interrupts, you want to make sure MSR[IP] is set correctly to position them at 0x0 for FLASH (see archives). Regards, Allan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rajesh Sent: Tuesday, March 21, 2006 6:58 AM To: [email protected] Subject: [MPC500] programming internal flash of MPC566 Hi all, I have a code written in Codewarrior8.1 with target settings 'Debug Version' and I want to program it to internal flash and execute it from there itself. Can anyone suggest me how to go for this? The Target Settings panel of my Codewarrior is not showing any option of 'Internal Flash'. -Regards Rajesh ----------------------------------------------------------- To learn more about Freescale Microcontrollers, please visit http://www.freescale.com/mcu Yahoo! Groups Links ----------------------------------------------------------- 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/