Motorola Semiconductor Engineering Bulletin: Order This Document by EB184/D

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Freescale Semiconductor, Inc.

Order this document


by EB184/D

Motorola Semiconductor Engineering Bulletin

EB184

Enabling the Security Feature on the MC68HC711E9


Freescale Semiconductor, Inc...

Devices with PCbug11 on the M68HC711E9PGMR


By Edgar Saenz
Austin, Texas

Introduction

The PCbug1software, needed along with the M68HC711E9PGMR to


program MC68HC711E9 devices, is available from the download
section of the Microcontroller Worldwide Web site
www.mcu.motsps.com.

Retrieve the file pcbug342.exe (a self-extracting archive) from the


MCU11 directory.

Some Motorola evaluation board products also are shipped with


PCbug11.

NOTE: For specific information about any of the PCbug11 commands, see the
appropriate sections in the PCbug11 User's Manual (part number
M68PCBUG11/D2), which is available from the Motorola Literature
Distribution Center, as well as the Worldwide Web at
www.mcu.motsps.com. The file is also on the software download system
and is called pcbug11.pdf.

© Motorola, Inc., 1998 EB184


For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin

To Execute the Program

Use this step-by-step procedure to program the MC68HC711E9 device.

Step 1 • Before applying power to the programming board, connect the


M68HC711E9PGMR serial port P2 to one of your PC COM ports
with a standard 25-pin RS-232 cable. Do not use a null modem
cable or adapter which swaps the transmit and receive signals
between the connectors at each end of the cable.
Freescale Semiconductor, Inc...

• Place the MC68HC711E9 part in the PLCC socket on your board.


• Insert the part upside down with the notched corner pointing
toward the red power LED.
• Make sure both S1 and S2 switches are turned off.
• Apply +5 volts to +5-V, +12 volts (at most +12.5 volts) to VPP, and
ground to GND on your programmer board’s power connector, P1.
The remaining TXD/PD1 and RXD/PD0 connections are not used
in this procedure. They are for gang programming MC68HC711E9
devices, which is discussed in the M68HC711E9PGMR Manual.
You cannot gang program with PCbug11.
• Ensure that the "remove for multi-programming" jumper, J1, below
the +5-V power switch has a fabricated jumper installed.

Step 2 Apply power to the programmer board by moving the +5-V switch to the
ON position. From a DOS command line prompt, start PCbug11this way:

C:\PCBUG11\ > PCBUG11 –E PORT = 1


with the E9PGMR connected to COM1

or

C:\PCBUG11\ > PCBUG11 –E PORT = 2


with the E9PGMR connected to COM2

PCbug11 only supports COM ports 1 and 2. If the proper connections


are made and you have a high-quality cable, you should quickly get a

EB184

2 MOTOROLA
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
To Execute the Program

PCbug11 command prompt. If you do receive a Comms fault error,


check the cable and board connections. Most PCbug11 communications
problems can be traced to poorly made cables or bad board
connections.

Step 3 PCbug11 defaults to base 10 for its input parameters.

Change this to hexadecimal by typing: CONTROL BASE HEX.


Freescale Semiconductor, Inc...

Step 4 Clear the block protect register (BPROT) to allow programming of the
MC68HC711E9 EEPROM.

At the PCbug11 command prompt, type: MS 1035 00.

Step 5 The CONFIG register defaults to hexadecimal 103F on the


MC68HC711E9. PCBUG11 needs adressing parameters to allow
programming of a specific block of memory so the following parameter
must be given.

At the PCbug11 command prompt, type: EEPROM 0.

Then type: EEPROM 103F 103F.

Step 6 Erase the CONFIG to allow byte programming.

At the PCbug11 command prompt, type: EEPROM ERASE BULK 103F.

Step 7 You are now ready to download the program into the EEPROM and
EPROM.

At the PCbug11command prompt, type:


LOADSC:\MYPROG\MYPROG.S19.

For more details on programming the EPROM, read the engineering


bulletin Programming MC68HC711E9 Devices with PCbug11 and the
M68HC11EVB, Motorola document number EB187.

EB184

MOTOROLA 3
For More Information On This Product,
Go to: www.freescale.com
Freescale Semiconductor, Inc.
Engineering Bulletin
R E Q U I R E D

Step 8 You are now ready to enable the security feature on the MCHC711E9.

At the PCbug11 command prompt type: MS 103F 05.

Step 9 After the programming operation is complete, verifyng the CONFIG on


the MCHC711E9 is not possible because in bootstrap mode the default
value is always forced.

Step 10 The part is now in secure mode and whatever code you loaded into
A G R E E M E N T
Freescale Semiconductor, Inc...

EEPROM will be erased if you tried to bring the microcontroller up in


either expanded mode or bootstrap mode.

NOTE: It is important to note that the microcontroller will work properly in secure
mode only in single chip mode.

NOTE: If the part is placed in bootstrap or expanded, the code in EEPROM and
RAM will be erased and the microcontroller cannot be reused. The
security software will constantly read the NOSEC bit and lock the part.
N O N - D I S C L O S U R E

Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its
products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability,
including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different
applications and actual performance may vary over time. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts.
Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems
intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a
situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold
Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the
design or manufacture of the part. Motorola and are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.

How to reach us:


USA/EUROPE/Locations Not Listed: Motorola Literature Distribution, P.O. Box 5405, Denver, Colorado 80217, 1-800-441-2447 or
1-303-675-2140. Customer Focus Center, 1-800-521-6274
JAPAN: Nippon Motorola Ltd. SPD, Strategic Planning Office 4-32-1, Nishi-Gotanda Shinagawa-ku, Tokyo 141, Japan, 81-3-5487-8488
ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd., 8B Tai Ping Industrial Park, 51 Ting Kok Road, Tai Po, N.T., Hong Kong, 852-26629298
Mfax™, Motorola Fax Back System: [email protected]; http://sps.motorola.com/mfax/;
TOUCHTONE, 1-602-244-6609; US and Canada ONLY, 1-800-774-1848
HOME PAGE: http://motorola.com/sps/

Mfax is a trademark of Motorola, Inc.

© Motorola, Inc., 1998

EB184/D
For More Information On This Product,
Go to: www.freescale.com

You might also like