Hi-Speed Mini Module EEPROM Disaster Recovery

Future Technology Devices International Ltd.
Application Note
AN_136_Hi-Speed Mini Module
EEPROM Disaster Recovery
Document Reference No.: FT_000209
Version 1.0
Issue Date: 2010-02-17
The FTDI Hi-Speed USB devices FT2232H and FT4232H are provided on
development modules (Mini modules). These modules are fitted with an 93C56
EEPROMs that are used for configuring descriptors and operational parameters.
Occasionally users have corrupted these EEPROMs, rendering the module unusable.
The contents of this document provide steps to recovering the modules.
Future Technology Devices International Limited (FTDI)
Unit 1, 2 Seaward Place, Glasgow G41 1HH, United Kingdom
Tel.: +44 (0) 141 429 2777 Fax: + 44 (0) 141 429 2758
E-Mail (Support): [email protected] Web: http://www.ftdichip.com
Copyright © 2010 Future Technology Devices International Limited
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Table of Contents
1
Introduction .................................................................... 2
2
What are Hi-Speed Mini Modules. .................................... 3
3
The EEPROM .................................................................... 4
4
5
3.1
What the EEPROM Contains....................................................... 4
3.2
Programming the EEPROM ........................................................ 4
Recovery ......................................................................... 5
4.1
Hardware connection ................................................................ 5
4.2
Software Utility ......................................................................... 5
Contact Information ........................................................ 7
Appendix A - Abbreviations .................................................. 9
Appendix B – References ................................................... 10
Appendix C – Revision History ........................................... 11
Copyright © 2010 Future Technology Devices International Limited
1
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
1 Introduction
The FTDI Hi-Speed USB devices FT2232H and FT4232H are provided on development modules (Mini
modules). These modules are fitted with 93C56 EEPROMs that are used for configuring descriptors and
operational parameters. Occasionally users have corrupted these EEPROMs, rendering the module
unusable. The contents of this document provide steps to recovering the modules.
Copyright © 2010 Future Technology Devices International Limited
2
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
2 What are Hi-Speed Mini Modules.
Hi-speed mini modules were developed to assist in the development of designs using the FT2232H and
FT4232H ICs. The FT2232H based module may be used to convert one USB port to either 2 UARTs, 2
FIFOs, 2 MPSSE or a combination of these interfaces. The FT4232H based module may be used to
convert one USB port to either 4 UARTs, 2 MPSSE or a combination of these interfaces.
For more information on the modules please refer to:
http://www.ftdichip.com/Products/EvaluationKits/HiSpeedModules.htm
Copyright © 2010 Future Technology Devices International Limited
3
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
3 The EEPROM
The modules are fitted with 93C56 EEPROMs.
3.1 What the EEPROM Contains
The EEPROM contains standard descriptors to allow for unique identification of the device e.g. VID, PID,
Serial number and strings such as manufacturer and product name.
In addition to the descriptors there are functional parameters that allow the device to be configured into
different modes e.g. UART or FIFO.
At the end of the EEPROM there is a checksum that is then used to validate the contents of the EEPROM.
3.2 Programming the EEPROM
Programming the EEPROM is most easily done by using FT_PROG which is a free utility from FTDI which
allows programming the device from a GUI based template. This is the easiest method.
However the option for customers to create their own tools exists by utilising the D2xx function calls. This
is perhaps where the greatest scope for error occurs.
If the EEPROM becomes corrupted, it is possible that a combination exists where the FT2232H or
FT4232Hdevice can no longer be enumerated with the EEPROM in circuit. The next section will discuss
recovering the device without removing the EEPROM from the board.
Copyright © 2010 Future Technology Devices International Limited
4
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
4 Recovery
The basic concept of the recovery is to wire the SPI pins of the EEPROM to an external control to
reprogram all the EEPROM bits to FF (equivalent to an erase).
The method used in this document makes use of the MPSSE mode of a good FT2232H mini-module, but it
is also possible to use an FT2232D or FT4232H device.
4.1 Hardware connection
The block diagram below shows the required connections between the two modules. It works for both
FT2232H and FT4232H mini modules.
PC CONTROLLER + UTILITY
USB FOR POWER
AND CONTROL
V3V3
VIO
USB FOR POWER
ONLY
CN2-1,3,5
CN2-1,3,5
CN2-11,21/CN3-12,22
VBUS
CN3-1
VCC
CN3-3
CN2-11,21/CN3-12,22
AD3
CS
AD0
CLK
V3V3
VIO
CN3-1
VBUS
CN3-3
VCC
CN3-5
CN3-6
AD1
DATA
CN3-7
RESET
CN2-8
AD2
CN2-2,4,6/CN3-2,4
GND
GOOD MODULE
(FT2232H based)
GND
CN2-2,4,6/CN3-2,4
CORRUPT MODULE
(FT2232H / FT4232H based)
Power to both modules is shown as being provided by the PC USB port. However it would be possible to
replace that with an external supply.
4.2 Software Utility
When the hardware is wired up download the recovery application from:
http://www.ftdichip.com/Resources/Utilities/SPITest.zip
Run the executable.
Copyright © 2010 Future Technology Devices International Limited
5
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Select device channel A in the “Device Name” box. The actual text displayed will depend on the product
descriptor you have used in the device EEPROM.
Select “Prog to Erase” to recover the device. This is simply writing FF to each address location in the
device.
The corrupt module may now be installed on a PC and can be correctly configured with FT_Prog.
Copyright © 2010 Future Technology Devices International Limited
6
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
5 Contact Information
Head Office – Glasgow, UK
Future Technology Devices International Limited
Unit 1, 2 Seaward Place, Centurion Business Park
Glasgow G41 1HH
United Kingdom
Tel: +44 (0) 141 429 2777
Fax: +44 (0) 141 429 2758
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
Web Site URL
Web Shop URL
[email protected]
[email protected]
[email protected]
http://www.ftdichip.com
http://www.ftdichip.com
Branch Office – Taipei, Taiwan
Future Technology Devices International Limited (Taiwan)
2F, No. 516, Sec. 1, NeiHu Road
Taipei 114
Taiwan , R.O.C.
Tel: +886 (0) 2 8791 3570
Fax: +886 (0) 2 8791 3576
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
Web Site URL
[email protected]
[email protected]
[email protected]
http://www.ftdichip.com
Branch Office – Hillsboro, Oregon, USA
Future Technology Devices International Limited (USA)
7235 NW Evergreen Parkway, Suite 600
Hillsboro, OR 97123-5803
USA
Tel: +1 (503) 547 0988
Fax: +1 (503) 547 0987
E-Mail (Sales)
E-Mail (Support)
E-Mail (General Enquiries)
Web Site URL
[email protected]
[email protected]
[email protected]
http://www.ftdichip.com
Branch Office – Shanghai, China
Future Technology Devices International Limited (China)
Room 408, 317 Xianxia Road,
Shanghai, 200051
China
Tel: +86 21 62351596
Fax: +86 21 62351595
E-mail (Sales)
E-mail (Support)
E-mail (General Enquiries)
Web Site URL
[email protected]
[email protected]
[email protected]
http://www.ftdichip.com
Copyright © 2010 Future Technology Devices International Limited
7
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Distributor and Sales Representatives
Please visit the Sales Network page of the FTDI Web site for the contact details of our distributor(s) and
sales representative(s) in your country.
Vinculum is part of Future Technology Devices International Ltd. Neither the whole nor any part of the information contained in, or the
product described in this manual, may be adapted or reproduced in any material or electronic form without the prior written consent of
the copyright holder. This product and its documentation are supplied on an as-is basis and no warranty as to their suitability for any
particular purpose is either made or implied. Future Technology Devices International Ltd will not accept any claim for damages
howsoever arising as a result of use or failure of this product. Your statutory rights are not affected. This product or any variant of it is
not intended for use in any medical appliance, device or system in which the failure of the product might reasonably be expected to
result in personal injury. This document provides preliminary information that may be subject to change without notice. No freedom to
use patents or other intellectual property rights is implied by the publication of this document. Future Technology Devices International
Ltd, Unit 1, 2 Seaward Place, Centurion Business Park, Glasgow G41 1HH United Kingdom. Scotland Registered Number: SC136640
Copyright © 2010 Future Technology Devices International Limited
8
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Appendix A - Abbreviations
Terms
Description
EEPROM
Electrically Erasable Programmable Read Only Memory
FTDI
Future Technology Devices
MPSSE
Multi Purpose Synchronous Serial Engine
SPI
Serial Peripheral Interface
Copyright © 2010 Future Technology Devices International Limited
9
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Appendix B – References
Hi-Speed Mini Modules http://www.ftdichip.com/Products/EvaluationKits/HiSpeedModules.htm
FT_Prog http://www.ftdichip.com/Resources/Utilities/FT_PROG.zip
D2xx Programmers Guide
http://www.ftdichip.com/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf
Interfacing FT2232H device to SPI
http://www.ftdichip.com/Projects/MPSSE/AN_114_FTDI_Hi_Speed_USB_To_SPI_Example.pdf
Recovery utility
http://www.ftdichip.com/Resources/Utilities/SPITest.zip
Copyright © 2010 Future Technology Devices International Limited
10
Document Reference No.: FT_000209
AN_136_Hi-Speed Mini Module EEPROM Disaster Recovery
Version 1.0
Clearance No.: FTDI# 138
Appendix C – Revision History
Revision
Changes
Date
0.1
Initial Draft
2009-11-19
1.0
First release
2010–02-17
Copyright © 2010 Future Technology Devices International Limited
11