Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service
   Home P&E Customer Support FAQs - Frequently Asked Questions FAQ ID # 236
FAQ ID # 236
 
Question
I am unable to erase or program the internal flash on a MPC555.
 
Answer
There are two pins on the mpc555lf8mzp40 as well as other revisions of the MPC555 that are required for erasing and programming of the CMF flash modules.

The EPEE input pin is an external enable signal and controls the program or erase operations. When this pin is high, high voltage operations on the flash are enabled. When this pin is low, high voltage operations on the flash are disabled.

The VPP input pin is the flash supply voltage used during program and erase operations of the flash memory. This pin must be connected to 5V for flash operations.

Some boards might have the EPEE pin connected to a processor GPIO so wee need to drive this GPIO pin high. This can be done in your algorithm.

Let's say your EPEE pin is connected to MPIO15. The following lines need to be added to the header of the algorithm.

;epee pin is connected to mpio32b15 which needs to be driven high WRITE_WORD=8000/00306102/ ;mpiosmddr - bit 15 is an output WRITE_WORD=8000/00306100/ ;mpiosmdr - bit 15 high

The commands follow the format WRITE_WORD=HHHH/AAAAAAAA where HHHH is a word hex value and AAAAAAAA is the address of the register.

Example:

;version 1.03, 05/01/2001, Copyright P&E Microcomputer Systems, www.pemicro.com ;device Freescale, MPC555, 1x32x112k, desc=CMF_448k_revm_mpio32b15 ;begin_cs device=$00000000, length=$00070000, ram=$003F9800 ;portions 1999 Copyright Motorola (CMF driver routines), used with permission ;uses CMF driver code to parallel program/erase ; CMF code requires 40MHz internal frequency ;end_cs NO_TIMING_TEST USE_CMF_DRIVER=0D/06/0F/000B/00008000/ 14-32k blocks, 512 segments, 64 byte page WRITE_SPR=00000800/027E/ ;enable internal CMF Flash WRITE_LONG=FFFFFF80/002FC004/ ;Turn off watchdog timer WRITE_LONG=84000000/002FC800/ ;Enable first 256K CMF Flash WRITE_LONG=84000000/002FC840/ ;Enable second 192K CMF Flash WRITE_LONG=00000000/002FC100/ ;Turn off CS0 WRITE_LONG=00000000/002FC140/ ;Turn off Dual Mapping

;epee pin is connected to mpio32b15 which needs to be driven high WRITE_WORD=8000/00306102/ ;mpiosmddr - bit 15 is an output WRITE_WORD=8000/00306100/ ;mpiosmdr - bit 15 high

;end_cs ;Blocks 14-32k USER=BE Block Erase 1Block > /00000000/0000000D/ ;Pattern in Hex, leftmost_bit=Block 0, Rightmost_bit=Block 13, B=1 > erase block USER=PE Pattern Erase 4Block > /00000000/00003FFF/ ;

 
Related Downloads
none
 
Architectures Categories Products
Power MPC5xx/8xx Flash Programming Software, Stand-Alone Programmer PROGPPCZ
 
Please rate this FAQ to help us improve our support
0 means "not helpful"
10 means "very helpful"
0 1 2 3 4 5 6 7 8 9 10

© 2019 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement