DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 30

Technical content

 2017 Microchip Technology Inc. DS50002598A CEC1702 Efuse Generator Tool User’s Guide

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 2  2017 Microchip Technology Inc. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Micro- chip devices in life support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights unless otherwise stated. Trademarks The Microchip name and logo, the Microchip logo, AnyRate, AVR, AVR logo, AVR Freaks, BeaconThings, BitCloud, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB, OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, RightTouch, SAM-BA, SpyNIC, SST, SST Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. ClockWorks, The Embedded Control Solutions Company, EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS, mTouch, Precision Edge, and Quiet-Wire are registered trademarks of Microchip Technology Incorporated in the U.S.A. Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom, chipKIT, chipKIT logo, CodeGuard, CryptoAuthentication, CryptoCompanion, CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, Mindi, MiWi, motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PureSilicon, QMatrix, RightTouch logo, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2017, Microchip Technology Incorporated, All Rights Reserved. ISBN: 9781522415695 Note the following details of the code protection feature on Microchip devices:

  • Microchip products meet the specification cont ained in their particular Microchip Data Sheet.
  • Microchip believes that its family of pr oducts is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions.
  • There are dishonest and possibly illegal meth ods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
  • Microchip is willing to work with the customer who is concerned about the integrity of their code.
  • Neither Microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC ® MCUs and dsPIC® DSCs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV == ISO/TS 16949 ==

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 3 Table of Contents Chapter 1. Introduction Chapter 2. CEC1702 Efuse Generator Tool Procedure Appendix A. CEC1702 Clicker Board Schematic Appendix B. Programming Steps For MikroE Tool Appendix C. References

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 4 Preface INTRODUCTION This chapter contains general information that will be useful to know before using the CEC1702 Efuse Generator Tool User’s Guide. Items discussed in this chapter include:

  • Document Layout
  • Conventions Used in this Guide
  • The Microchip Web Site
  • Development Systems Customer Change Notification Service
  • Customer Support
  • Document Revision History DOCUMENT LAYOUT This document describes how to use the CEC1702 Efuse Generator Tool User’s Guide as a development tool for CEC1702 Efuse Programming. The manual layout is as follows:
  • Chapter 1. “Introduction” – This chapter provides information on programming the Efuse using the CEC1702 Efuse Generator Tool.
  • Chapter 2. “CEC1702 Efuse Generator Tool Procedure” – This chapter con- tains a step by step procedure.
  • Appendix A. “CEC1702 Clicker Board Schematic” – This appendix contains schematic diagram of the CEC1702 Clicker board.
  • Appendix B. “Programming Steps For MikroE Tool” – This section explains steps to program the Efuse using mikroProg Suite for ARM.
  • Appendix C. “References” – This appendix includes helpful references. NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document. For the most up-to-date information on development tools, see the MPLAB ® IDE online help. Select the Help menu, and then Topics to open a list of available online help files.

 2017 Microchip Technology Inc. DS50002598A-page 5 CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Represents Examples Arial font: Italic characters Referenced books MPLAB® IDE User’s Guide Initial caps A window the Output window A dialog the Settings dialog A menu selection select Enable Programmer Quotes A field name in a window or dialog “Save project before build” Underlined, italic text with right angle bracket A menu path File>Save Bold characters A dialog button Click OK A tab Click the Power tab N‘Rnnnn A number in verilog format, where N is the total number of digits, R is the radix and n is a digit. 4‘b0010, 2‘hF1 Text in angle brackets < > A key on the keyboard Press <Enter>, <F1> Courier New font: Plain Courier New Sample source code #define START Filenames autoexec.bat File paths c:\\mcc18\\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’ Italic Courier New A variable argument file.o, where file can be any valid filename Square brackets [ ] Optional arguments mcc18 [options] file [options] Curly brackets and pipe character: { | } Choice of mutually exclusive arguments; an OR selection errorlevel {0|1} Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by user void main (void) { ...

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 6  2017 Microchip Technology Inc. THE MICROCHIP WEB SITE Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web site contains the following information:

  • Product Support – Data sheets and errata, application notes and sample programs, design resources, user’s guides and hardware support documents, latest software releases and archived software
  • General Technical Support – Frequently Asked Questions (FAQs), technical support requests, online discussion groups, Microchip consultant program member listing
  • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. To register, access the Microchip web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions. The Development Systems product group categories are:
  • Compilers – The latest information on Microchip C compilers, assemblers, linkers and other language tools. These include all MPLAB C compilers; all MPLAB assemblers (including MPASM assembler); all MPLAB linkers (including MPLINK object linker); and all MPLAB librarians (including MPLIB object librarian).
  • Emulators – The latest information on Microchip in-circuit emulators.This includes the MPLAB REAL ICE and MPLAB ICE 2000 in-circuit emulators.
  • In-Circuit Debuggers – The latest information on the Microchip in-circuit debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit 3 debug express.
  • MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and MPLAB SIM simulator, as well as general editing and debugging features.
  • Programmers – The latest information on Microchip programmers. These include production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction development programmers such as PICSTART Plus and PIC-kit 2 and 3. CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels:
  • Distributor or Representative
  • Local Sales Office
  • Field Application Engineer (FAE)
  • Technical Support

 2017 Microchip Technology Inc. DS50002598A-page 7 Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://www.microchip.com/support DOCUMENT REVISION HISTORY Revision Section/Figure/Entry Correction DS50002598A (04-10-17) Document Release

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 8 Chapter 1. Introduction

1.1 CEC1702 EFUSE GENERATOR TOOL

1.1.1 Purpose

This document in intended for software engineer planning to generate public and private keys, signature for their firmware and custom Efuse data for CEC1702 for their system. This document gives the introduction to the steps involved in CEC1702 Efuse programming as well as the hardware and software requirements for the custom Efuse programming once you get the blank part from Microchip.

1.1.2 Introduction

This document gives step by step information on programming the Efuse using the CEC1702 Efuse Generator Tool. Following these steps will ensure that the CEC1702 part is programmed correctly each time without facing any difficulty. The CEC1702 Efuse Generator Tool is responsible for generating private and public key pairs, verifying private-public key pair validity, disabling JTAG and ATE modes and generating the Efuse programming values. The input from the user is GUI based and is simple to use. The output from the tool is a binary file for programming the CEC1702 part on the Clicker board using any JTAG programmer tool. The tool also writes the private and public key in an output file protected with the password set by the user while entering the parameters.

1.1.3 Introduction to Hardware

The picture of the hardware board used for programming is shown below in Figure 1-1: “CEC1702 Clicker board”.

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 10  2017 Microchip Technology Inc.

1.1.4 Introduction to th e Programming Utility

The CEC1702 Efuse Generator Tool is an executable file with the name “CEC1702_e- fuseGEN.exe”. This tool is targeted to program the following bits in the OTP: 1. ATE mode disable bit - Efuse byte 35 bit[7] 2. TAG enable bit on Boot ROM Exit - Efuse byte 34 bit[1] - Bit[4] 3. Authentication Bit for the ECDSA key generation - Efuse byte 483 bit[0] 4. Authentication key region - Efuse bytes 128 - 191 5. ECC private key region - Efuse byte 0 - 31 6. Custom User space region - Efuse byte 192 - 479 7. Custom TAG update region - Efuse bytes 508 - 509 Once you run the utility, you will see the GUI as shown in Figure 1-3: “CEC1702 Efuse Programming tool input form”. The user is required to fill in the following information in the tool to generate the binary and hex file required to program the Efuse in CEC1702. Details about using this tool are described in Chapter 2. “CEC1702 Efuse Generator Tool Procedure”. FIGURE 1-3: CEC1702 EFUSE PROGRAMMING TOOL INPUT FORM

 2017 Microchip Technology Inc. DS50002598A-page 11

1.1.5 Prerequisites

Following are the prerequisites for generating the header, hex and binary file for pro- gramming described in Chapter 2. “CEC1702 Efuse Generator Tool Procedure”: 1. Clicker board with blank CEC1702 should be available. 2. The hardware board must have proper input circuitry for providing 1.59V Efuse programming voltage. 3. PC should have Windows7/8/10. 4. The user is expected to have download ed and installed openssl version 1.0.1e. Please refer to the following • 5. The user is expected to have downloaded the CEC1702 Efuse Generator Tool on your PC. If the user is using mikr oProg tool for prog ramming the Clicker board, this utility is part of the tool package. 6. The user is expected to have any JTAG programmer tool installed on their PC for programming the Efuse hex / binary file in CEC1702 on the Clicker board. 7. The user is expected to have read the CEC1702 data sheet and know all the encryption modes planned to be used in their system. 8. The user is expected to know which keys need to be generated for their system and application. Note:

  • CEC1702 Efuse Generator Tool is only supported for Windows at this time.
  • Please refer to CEC1702 Clicker board documentation for other requirements for executing step 2.

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 12 Chapter 2. CEC1702 Efuse Generator Tool Procedure

2.1 CEC1702 EFUSE PROGRAMMING PROCEDURE

2.1.1 Directory Structure

Once you download and uncompress the “CEC1702 Efuse Generator Tool” utility, the directory structure appears as shown below: <efuse_generator> | CEC1702_efuseGEN.exe -> CEC1702 efuse generator | config.ini -> Environment file details +---efuse | +---original_binary -> Build output Binaries | | otp_prog_original.bin -> Binary format | | otp_prog_original.hex -> Intel Hex format | | | \\---test_keys -> Test Key files | ecprivkey001.pem -> Sample Private key | ecprivkey001_crt.pem -> Sample Private Certificate | ecprivkey002.pem -> Sample Private key | keys.txt \\---tools -> Support tools CEC1702_key_extractor.exe -> Tool to extract Key content openssl.exe -> Tool to generate Keys srec_cat.exe -> Tool for bin to hex conversion You may install the openssl tool at any other directory path also. In such a case you will have to provide the openssl tool path in Set Environment Variable “Settings” button. This is shown in Figure 2-1: “CEC1702 Efuse Generator Tool Main Form”.

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 14  2017 Microchip Technology Inc.

2.1.2 Output Files

You may define your own output directory fo r the output files generated from the tool. You may type the output directory path directly or select the output directory by clicking the Browse button shown in Figure 2-1: “CEC1702 Efuse Generator Tool Main Form”. The window in Figure 2-3: “Select Output Directory Form” will open up. If the “Output Dir” field is left blank, the tool will be generating the runtime output directory under <root>\\efuse\\ as efuse_<YYYYMMDD>_<W HHMMSS> where YYYYMMDD represents Year, Month and Date respec tively and WHHMMSS represents the Week of the month, Hour, Minute and Second respectively. FIGURE 2-3: SELECT OUTPUT DIRECTORY FORM

CEC1702 Efuse Generator Tool Procedure  2017 Microchip Technology Inc. DS50002598A-page 15 On program execution the tool generates two folders in the output directory “Output Dir”. These are “keys” and “out_binaries”. As the name suggests, the files for program- ming the CEC1702 are stored in the “out_binaries” directory. The ECDH private key (AES Encrypted), self signed certificate, ECDSA private key (AES Encrypted), ECDSA Self Signed Certificate and t heir corresponding certificate requests are stored in the “keys” directory. The pictorial representation of the same is given below: <efuse_generator> +---efuse +--efuse_<YYYYMMDD>_<WHHMMSS> -> Output Dir self generated +---keys -> Contains all the keys | <ECDH>.pem -> ECDH Private key AES Encrypted | <ECDH>_crt.pem -> ECDH Self Signed Certificate | <ECDH>_csr.pem -> ECDH Certificate Request | <ECDSA>.pem -> ECDSA Private key AES Encrypted | <ECDSA>_crt.pem-> ECDSA Self Signed Certificate | <ECDSA>_csr.pem -> ECDSA Certificate Request | keys_info.txt -> Generated Key details | key_file.bin -> key_file.bin extracted key output \\---out_binaries | otp_efuse.bin -> updated Binary with Efuse details | otp_efuse.hex -> Equivalent hex file for download \\---efuse_log.txt -> Efuse Log file

2.1.3 Key Generation Steps

Following are the steps to generate the Efuse binary and hex file for programming the CEC1702 blank chip: 1. Click on the “CEC1702_efuseGEN.exe” prog ram shortcut to start the application and the GUI will be displayed as in Figure 2-1: “CEC1702 Efuse Generator Tool Main Form”. 2. Set the openssl path as described in section 2.1.1 “Directory Structure”. 3. If “Generate Header File” is selected in Figure 2-2: “Openssl Tool Path Set- ting”, the utility will generate a header file equivalent to the Efuse binary file. This file may then be used to add to any project environment, if required. If “Generate Header File” option is not selected, ut ility will not generate the header file. “Genrate Header File” option must be used if the Efuse programmer tool requires header file. Note: Please refer to JTAG programmer documentation for deciding which file for- mat (.hex, .bin or .h) it requires for programming the Efuse of CEC1702.

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 21 Appendix A. CEC1702 Clicker Board Schematic The schematic of the CEC1702 Clicker board is shown in Figure A-1: “Schematic Diagram of CEC1702 Clicker board”.

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 22  2017 Microchip Technology Inc. FIGURE A-1: SCHEMATIC DIAGRAM OF CEC1702 CLICKER BOARD VCC-3.3V VCC-5V T2 T1 VCC-USB VCC-3.3V VCC-3.3V JTAG_TCK VCC_RST USB-D_P USB-D_N VCC-3.3V VCC-3.3V USB-D_P USB-D_N GPIO125 VCC-3.3V GPIO031 GPIO157 GPIO156 D_N D_P JTAG_RST JTAG_TDI JTAG_TDO JTAG_TMS VCC-3.3V VCC-3.3V JTAG_TMS JTAG_TDI JTAG_TDO JTAG_TCK VCC_RST SHD_CS0 C12 0.1µF C13 1µF 100k 10kC3 0.1µF 0.1µF 0.1µF R29 10k C22 0.1µF R26 R24 27 R23 27 5 ID VBUS GND CN1 10104110-0001LF VCCIO RXD GND CTS CB2 RST VCC CB1 CB0 GND RTS TXD CB3 DP DM 3V3 GND PAD U4 FT230x FP2 C16 10000pF SPI0_CS0 RST I2C0_SCL I2C0_SDA INT PWM4 SPI0_SCK SPI0_MISO SPI0_MOSI R21 10k R20 10kC14 10pF C15 10pF 32.768kHz AN RST CS SCK MISO MOSI 3.3V GND PWM INT RX TX SCL SDA GND MIKROBUS 1 MIKROBUS HOST CONN ADC0 VCC-3.3V R19 R18 VCC-3.3V VCC-3.3V 0.1µF 1µF R11 100VTR_PLL VTR_PLL R22 8.2k R25 4.7k VCC-3.3V VCC-3.3V VCC-3.3VVCC-3.3V SHD_SIO1 SHD_SCK SHD_CS0 SHD_SIO0 VCC-3.3V SPI0_CS0 SPI0_SCK SPI0_MISO SPI0_MOSI I2C0_SCL I2C0_SDA UART0_RX UART1_TX UART1_RX UART0_TX ADC0 UART1_RTS UART1_CTS GPIO157 GPIO156 GPIO051 GPIO031 ADC1 ADC2 ADC3 ADC4 ADC1 ADC2 ADC3 ADC4 PWM0 PWM1 PWM0 PWM1 GPIO050 GPIO125 RST SHD_SIO2 SHD_SIO3 FP5 C29 1µF GND C28 0.1µF GND VCC-USB VCC-5V 1 2 3 4 5 6 7 8 9 10 HD1 LD2 LD1 VCC-3.3V R34 470 PWR1 LED GR USB_RXUSB_TX R27 750 R28 FM1 FIDUCIAL MARK FM2 FIDUCIAL MARK FM3 FIDUCIAL MARK FM4 FIDUCIAL MARK FM5 FIDUCIAL MARK FM6 FIDUCIAL MARK 7 8 141OE 2OE GND VCC 4OE 3OE SN74LVC125A SN74LVC125A VCC_RST JTAG_TMS VCC_RST JTAG_TCK SHD_SCK VCC-3.3V VCC_RST VCC_RST JTAG_TDO VCC-3.3V VCC-3.3V I2C3_SCL I2C3_SDA I2C3_SCL I2C3_SDA JP2 SHD_SCK SHD_SIO1 SHD_SIO0 SHD_CS0 SHD_SIO2 SHD_SIO3 R12 10k VCC-3.3VVCC-3.3V CE#1 SO/SIO12 WP#/SIO23 VSS4 SI/SIO0 5SCK 6HOLD#/SIO3 7VDD 8 SST26VF016B SHD_SIO1 SHD_SIO0 R15 10k R14 10k UART0_RX UART0_TX UART1_RX UART1_TX UART1_CTS UART1_RTS INT PWM4 C11 22µF C31 0.1µF C32 0.1µF IN GND OUT 5 4EN ADJ SPX3819M5 R30 47k R31 27kR3 C18 10μF C19 0.1μF 10k 10k C20 10μF C21 0.1μF VCC-3.3VVCC-USBVCC-USB GPIO051 PWM0 GPIO051 GPIO050 BGPO0B1 GPIO001/PWM4J6 GPIO002/PWM5J5 GPIO003/I2C0_SDA/SPIO0_CS# A3GPIO004/I2C0_SCL/SPIO0_MOSI B2 GPIO007/I2C3_SDA B5GPIO010/I2C3_SCL A8 GPIO012/I2C7_SDA/TOUT3 K1GPIO013/I2C7_SCL/TOUT2 J2GPIO016/GPTP-IN7/QSPI0_IO3/IC3K2 GPIO017/GPTP-IN5/KSI0J7 GPIO020/KSI1 J3 GPIO021/KSI2 J4GPIO026/TIN1/KSI3 K9GPIO027/TIN2/KSI4 J10GPIO030/TIN3/KSI5 G7 GPIO031/KSI6J8 GPIO032/KSI7H5 GPIO034/RC-ID1/SPI0_CLK G4GPIO036/RC-ID2/SPI0_MISO F10 GPIO040/KSO0K8 GPIO045/KSO1 C5 GPIO046/KSO2C9 GPIO047/KSO3B8 GPIO050/FAN_TACH0/GTACH0F3 GPIO051/FAN_TACH1/GTACH1E2 GPIO053/PWM0/GPWM0K10 GPIO054/PWM1/GPWM1J9 GPIO055/PWM2/QSPI0_CS#K7 GPIO056/PWM3/QSPI0_CLKK6 GPIO104/UART0_TX D9GPIO105/UART0_RX E9 GPIO107/KSO04 H9 GPIO112/KSO05G9 GPIO113/KSO06G10 GPIO120/KSO07 H10 GPIO121/QSPI1_IO0/KSO08D10 GPIO122/QSPI1_IO1/KSO09B10 GPIO124/QSPI1_CS#/KSO11C10 GPIO125/GTP-OUT5/QSPI1_CLK/KSO12A10 GPIO127/UART0_CTS# C6 GPIO134/PWM10/UART1_RTS# E10 GPIO135/UART1_CTS# E7 GPIO140/ICT5 H6 GPIO145/I2C09_SDA/JTAG_TDIC2 GPIO146/I2C09_SCL/JTAG_TDOB6 GPIO147/I2C08_SDA/JTAG_CLKA7 GPIO150/I2C08_SCL/JTAG_TMSB3 GPIO154/I2C02_SDA A9GPIO155/I2C02_SCL B7 GPIO156/LED0 D7 GPIO157/LED1 B9 GPIO162/VCI_IN1#A5 GPIO163/VCI_IN0#B4 GPIO165/32KHZ_IN/CTOUT0 A6 GPIO170/TFCLK/UART1_TX F9GPIO171/TFDATA/UART1_RX(JTAG_STRAP) F8 GPIO200/ADC00 F2 GPIO201/ADC01 G2 GPIO202/ADC02 H2 GPIO203/ADC03 G1 GPIO204/ADC04 H1 GPIO223/QSPI0_IO0 K5 GPIO224/QSPI0_IO1K3 GPIO225/UART0_RTS# D6 GPIO227/QSPI0_IO2 K4 JTAG_RST#E8 RESET# D2 VBAT D5 VCI_OUTA1 VR_CAPF1 VREF_ADC E3 VSS1E4 VSS2F7 VSS_ADC J1 VSS_ANALOG D4 VFLT_PLLD1 VTR1 G6 VTR2 G5 VTR_ANALOG F4 VTR_PLL C1 VTR_REG E1 XTAL1A4 XTAL2A2 PS2 Interface JTAG FAN PWM & TACH BC-LINK VCI GPIO XTAL ANALOG I2C SPI UART GPIO U1 CEC1702-84 GPIO113 GPIO032 GPIO113 GPIO032 VCC VREF_ADC C30 0.1µF

CEC1702 Clicker Board Schematic  2017 Microchip Technology Inc. DS50002598A-page 23 FIGURE A-1: SCHEMATIC DIAGRAM OF CEC1702 CLICKER BOARD (CONTINUED) 0.1µF NO01 NO12 NO23 GND4 IN2 5IN1 6COM 7VDD 8 TS5A3357 VCC-3.3V VREF_ADC VCC-3.3V VCC-1.59V R33 10k R32 10k VCC-3.3V GPIO050 GPIO051 IN1 IN2 efuse efuseIN1 IN2 C10 0.1µF VIN1 GND2 SHDN3 ADJ 4 VOUT 5 MCP1824 VCC-3.3V R37 10k R35 28.7K VCC-1.59V C33 4.7µF R36 0.0 JP3 JP4

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 24 Appendix B. Programming Steps For MikroE Tool B.1 STEPS TO PROGRAM THE EFUSE USING MIKROPROG SUITE FOR ARM If the user plans to use the mikroProg Suite for ARM for programming, the following are the steps for programming the Efuse 1. Power up the Clicker board. 2. Connect the microProg to the Clicker board and the computer as shown in Fig- ure B-1: “CEC1702 Clicker board Setup”. 3. Double click on the mikroProg suite for ARM tool program shortcut and open the mikroProg tool. Figure B-2: “mikroProg Suite for ARM Screen” would open up. FIGURE B-1: CEC1702 CLICKER BOARD SETUP

Programming Steps For MikroE Tool  2017 Microchip Technology Inc. DS50002598A-page 25 4. Click on the “Detect MCU” button in Figure B-2: “mikroProg Suite for ARM Screen” to detect the device connected. 5. Click on “Options” button. Figure B-3: “Options Menu in mikroProg” would open up. 6. Under Interface “Hardware” section (top portion in Figure B-3: “Options Menu in mikroProg”), click on the drop down menu and select CEC. 7. Click the “Program EFUSE” button in Figure B-3: “Options Menu in mikro- Prog”, “Open” window would pop up as shown in Figure B-4: “Open Menu”. Please select the otp_efuse.hex file generated earlier using instructions in sec- tion 2.1.3 “Key Generation Steps” and click the open button. 8. The “Program EFUSE” button in Figure B-3: “Options Menu in mikroProg” turning green indicates a successful Efuse programming of CEC1702 Clicker board. 9. LD1 LED on the board will be ON. This LED indicates that programming of Efuse is in progress. Once the programming is complete, LD1 LED on the board will be OFF. 10. If error occurs during Efuse programming, LD1 and LD2 LED’s on the CEC1702 Clicker board start blinking. In this case the Efuse programming operation is ter- minated. 11. Once the program ming is over, the color of “Program EFUSE” button will turn Green. FIGURE B-2: MIKROPROG SUITE FOR ARM SCREEN

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 26  2017 Microchip Technology Inc. FIGURE B-3: OPTIONS MENU IN MIKROPROG

Programming Steps For MikroE Tool  2017 Microchip Technology Inc. DS50002598A-page 27 B.2 FIRMWARE IMAGE ENCRYP TION AND AUTHENTICATION For firmware image encryption and signature from mikroE compilers (e.g. mikroC Pro for ARM), the user will have to follow the steps described below: 1. In the project folder for which image is to be created, create the postbuild file without an extension. 2. In the same folder create the config.ini file (any other name and extension is allowed for this file). 3. In the postbuild file write the below command: HexToCECBin.exe -configFile config.ini 4. In the config.ini file write configuration data. Below is an example of the config.ini file with authentication and encryption enabled: [CONFIG] ; Device name CEC1702. device = CEC1702 ; Input hex file path. in = LedBlinking.hex FIGURE B-4: OPEN MENU

CEC1702 Efuse Generator Tool User’s Guide DS50002598A-page 28  2017 Microchip Technology Inc. ; Output binary image file path. out = LedBlinking_img.bin ; Size of target flash in bytes, KBytes or MBytes. flashSize = 1MB ; Set load address for binary image. loadAddress = 0xB0000 ; Use ECDSA signing true or false. useECDSA = true ; EC Private Key in PEM file format. Key is used to sign the Header. ECDSAPrivKeyFile = ecprivkey.pem ; Password for the private key. ECDSAPrivKeyPass = "ECPRIVKEYPASS" ; Encrypt application binary using AES-256-CBC true or false fwEncrypt = true ; If application binary encryption is enabled, EC public key certificate in PEM file format. AesEcCert = ecpubkey_crt.pem 5. Build the example by clicking Build->Build (ctr+F9) to create image file to be writ- ten to external flash. 6. Run mikroE Programmer (F11) to program generated image. Note: The information to write in the Config.ini file (ECDSAPrivKeyFile, ECDSAP- rivKeyPass and AesEcCert) could also be found in keys_info.txt file. Please refer to section 2.1.2 “Output Files” for the location of keys_info.txt file.

CEC1702 EFUSE GENERATOR TOOL USER’S GUIDE  2017 Microchip Technology Inc. DS50002598A-page 29 Appendix C. References 1. CEC1702 Data Sheet could be found at www.microchip.com/cec1702. 2. Documentation and details of CEC1702 Clicker Board. 3. Documentation and details of CEC1702 Clicker 2 Board. 5. Latest mikroC compiler is available at mikroC for ARM v5.0.0.

DS50002598A-page 30  2017 Microchip Technology Inc. AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Austin, TX Tel: 512-257-3370 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Tel: 317-536-2380 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 Tel: 951-273-7800 Raleigh, NC Tel: 919-844-7510 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Tel: 408-436-4270 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 ASIA/PACIFIC Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2943-5100 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 China - Chongqing Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 China - Dongguan Tel: 86-769-8702-9880 China - Guangzhou Tel: 86-20-8755-8029 China - Hangzhou Tel: 86-571-8792-8115 Fax: 86-571-8792-8116 China - Hong Kong SAR Tel: 852-2943-5100 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-3326-8000 Fax: 86-21-3326-8021 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8864-2200 Fax: 86-755-8203-1760 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 ASIA/PACIFIC China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049 India - Bangalore Tel: 91-80-3090-4444 Fax: 91-80-3090-4123 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-3019-1500 Japan - Osaka Tel: 81-6-6152-7160 Fax: 81-6-6152-9310 Japan - Tokyo Tel: 81-3-6880- 3770 Fax: 81-3-6880-3771 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-5778-366 Fax: 886-3-5770-955 Taiwan - Kaohsiung Tel: 886-7-213-7830 Taiwan - Taipei Tel: 886-2-2508-8600 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 Finland - Espoo Tel: 358-9-4520-820 France - Paris France - Saint Cloud Germany - Garching Tel: 49-8931-9700 Germany - Haan Tel: 49-2129-3766400 Germany - Heilbronn Tel: 49-7131-67-3636 Germany - Karlsruhe Tel: 49-721-625370 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Germany - Rosenheim Tel: 49-8031-354-560 Israel - Ra’anana Tel: 972-9-744-7705 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Padova Tel: 39-049-7625286 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Norway - Trondheim Tel: 47-7289-7561 Poland - Warsaw Tel: 48-22-3325737 Romania - Bucharest Tel: 40-21-407-87-50 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Gothenberg Tel: 46-31-704-60-40 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 Worldwide Sales and Service 11/07/16