THIS SPEC IS OBSOLETE

Similar documents
CE CY8CKIT-042-BLE F-RAM Data Logger

F²MC-8FX Family MB95200H/210H Series Capacitance Touch Sensor

PSoC Creator Quick Start Guide

Digital Logic Gates. Features. General Description. Input/Output Connections. When to Use a Logic Gate. Input 1. Input 2. Inputs 3-8 * 1.

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

Use the Status Register when the firmware needs to query the state of internal digital signals.

CE95314 PSoC 3, PSoC 4, and PSoC 5LP EZI2C

This input determines the next value of the output. The output does not change until the next rising edge of the clock.

AN F²MC-16FX Family, I2C. Contents. 1 Introduction. This application note describes how to communicate via I2C with a Serial EEPROM.

Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

This section describes the various input and output connections for the SysInt Component.

Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

Capable of adjusting detection timings for start bit and data bit

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

The AMuxSeq is capable of having between 2 and 32 analog inputs. The paired inputs are present when the MuxType parameter is set to "Differential.

Use the Status Register when the firmware needs to query the state of internal digital signals.

ModusToolbox USB Configurator Guide

Nine-Output 3.3 V Buffer

Use a DieTemp component when you want to measure the die temperature of a device.

EZ-PD Analyzer Utility User Guide

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

Cypress BLE-Beacon ios App User Guide

Automatic reload of the period to the count register on terminal count

W H I T E P A P E R. Timing Uncertainty in High Performance Clock Distribution. Introduction

One 32-bit counter that can be free running or generate periodic interrupts

AN FR Family, MB91F467S Emulation. 1 Introduction. 2 Hardware Setup. 2.1 Required parts

PSoC 6 Current Digital to Analog Converter (IDAC7)

FM4 S6E2Cx Series Over The Air Update 32-Bit Microcontroller With Embedded Dual Flash

FM3 Family Motor Graphical Interface User Manual

For More Information Please contact your local sales office for additional information about Cypress products and solutions.

W H I T E P A P E R. Introduction. Devices. Energy Comparison of Cypress F-RAM and EEPROM

PSoC 4 Current Digital to Analog Converter (IDAC)

Analog Multiplexer (AMux) Features. General Description. Input/Output Connections. When to Use an AMux Single or differential connections

BGM Adaptor MB E Operation Manual. 8FX Family 8-bit Microcontroller. Doc. # Rev. *A

Comparator (Comp) Features. General Description. When to use a Comparator Low input offset. User controlled offset calibration

Optional Pause Pulse for constant frame length of 282 clock ticks

Supports a range of speeds of external memories (from 5 to 200 ns) Supports external memory power-down, sleep, and wakeup modes

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

Chip Errata for the MB96300/MB96600 Series MOVS/MOVSW Overlap of source and destination region, F 2 MC-16FX Microcontroller

Configurable transfer modes: single transfer, 1D transfer (using X loop) and 2D transfer (using both X and Y loops).

CY8CKIT-002. PSoC MiniProg3 Program and Debug Kit Guide. Doc. # Rev. *H

16-Mbit (512 K words 32 bits) Static RAM with Error-Correcting Code (ECC)

Supports Analog, Digital I/O and Bidirectional signal types

Version February 02, 2018

Shift Register. Features. General Description 1.20

MB39C811-EVB-03. PMIC for Solar/Vibration Energy Harvesting, Evaluation Board Operation Guide. Doc. No Rev. *B

THIS SPEC IS OBSOLETE

16-Mbit (1M words 16 bit) Static RAM

AN F²MC - 8FX Family, New 8FX Series, EEPROM Library. Contents. 1 Introduction

FM Universal Peripheral Driver Library Quick Start Guide

Hardware Design Guidelines for Using EZ-PD CCG3PA Devices in Power Adapter Applications

CE PSoC 4: Time-Stamped ADC Data Transfer Using DMA

THIS SPEC IS OBSOLETE

4-Mbit (256K words 16 bit) Static RAM

PSoC Creator 4.2 Production Release Notes

16K/64K/128K 9 Low-Voltage Deep Sync FIFOs

EZ I2C Slave. Features. General Description. When to use a EZ I 2 C Slave Industry standard Philips I 2 C bus compatible interface

PSoC 1 In-Circuit Emulator Development Kit Guide

Clock Programming Kit

8-Mbit (512K words 16 bit) Static RAM with Error Correcting Code (ECC)

Use the Status Register when the firmware needs to query the state of internal digital signals.

The Emulated EEPROM Component should be used to store nonvolatile data on a target device.

Cypress EZ-PD Configuration Utility User Manual

Use the Status Register when the firmware needs to query the state of internal digital signals.

FM0+ Family S6E1A1 Series, Flash Programming Guide

Cypress HX2VL Configuration Utility Blaster User Guide

External Library. Features. General Description 1.0. The library provides documentation for external components

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

FR Family SOFTUNE Workbench User's Manual for V6

THIS SPEC IS OBSOLETE

CY3660-enCoRe V and encore V LV DVK Kit Guide

Controller Continuum. for Microcontrollers V6.3. Quick Start

Programmer User Guide

Cypress HX2VL Configuration Utility Blaster User Guide

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

Sequencing Successive Approximation ADC (ADC_SAR_Seq) Features. General Description. When to Use the ADC_SAR_Seq Supports PSoC 5LP devices

Voltage Reference (Vref) Features. General Description. Input/Output Connections. When to Use a Vref Voltage references and supplies

PSoC 1 I 2 C Bootloader

for ColdFire Architectures V7.2 Quick Start

Writing to Internal Flash in PSoC 3 and PSoC 5

FTG Programming Kit CY3670. Spec. # Rev. *C

Filter_ADC_VDAC_poll Example Project Features. General Description. Development Kit Configuration

CodeWarrior Development Studio for Freescale 68HC12/HCS12/HCS12X/XGATE Microcontrollers Quick Start SYSTEM REQUIREMENTS Hardware Operating System 200

AN USB On-The-Go (OTG) Basics. Contents. 1 Introduction. 2 Cables

FM3 MB9B100A/300A/400A/500A Series Inverter Solution GUI User Guide

GPIF II Designer - Quick Start Guide

Version June 2, 2017

AN F²MC-16FX Family, Emulator System MB2198. Contents. 1 Introduction. 2 Getting Started. 2.1 Copying the template directory

Energy Harvesting PMIC for Wireless Sensor Node

PSoC Designer Release Notes

CY4701 EZ-USB GX3 Reference Design Guide

PSoC Programmer 3.12 Release Notes

AN1090. NoBL : The Fast SRAM Architecture. Introduction. NoBL SRAM Description. Abstract. NoBL SRAM Operation

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. **

CYClockMaker Programming Kit Guide CY3675. Doc. # Rev. *C

Operational Amplifier (Opamp) Features. General Description. Input/Output Connections. Noninverting Analog Follower or Opamp configuration

TI: Uses a short pulse on spi_select to indicate start of transaction. National Semiconductor (Microwire): Transmission and Reception occur separately

PSoC 4 Voltage Comparator (Comp) Features. General Description. When to Use Comparator Low input offset. User controlled offset calibration

Transcription:

THIS SPEC IS OBSOLETE Spec No: 002-09373 Spec Title: AN209373 - F2MC-FM3 Family OpenOCD GUI Frontend Replaced by: 002-0586

AN209373 This application note describes how to use on-board Open On-Chip Debug hardware with some FM3 evaluation boards. For this the FTDI-Chip chip FT2232D is used to provide one serial port and one JTAG port. Contents Introduction... 2 2 Automatic Installation... 4 2. Start Installation... 4 3 Manual Installation... 9 3. If no FTDI-Chip drivers are installed in the operating system... 9 3.2 If FTDI-Chip drivers are installed in the operating system... 7 4 Use OpenOCD... 24 4. Background Mode... 24 4.2 Graphical Interface... 24 4.3 Configure IAR for use with OpenOCD... 25 A Appendix... 28 A. WWW... 28 Document History... 29 www.cypress.com Document No. 002-09373 Rev.*A

Introduction This Application Note explains how to use on-board Open On-Chip Debug hardware with some FM3 evaluation boards. For this the FTDI-Chip chip FT2232D is used to provide one serial port and one JTAG port. IDE OpenOCD User Application LibUSB Driver Serial Port Channel A Serial Converter Channel B Computer PC s USB Host Controller FTDI FT2232D USB JTAG Serial TTL JTAG UART FM3 Microcontroller Cypress Evaluation Board www.cypress.com Document No. 002-09373 Rev.*A 2

For usage with a graphical frontend, Cypress developed the Cypress OpenOCD Starter. It uses OpenOCD as backend and LibUSB as driver for the FT2232D channel A. OpenOCD is open source and can be found here: http://openocd.sourceforge.net/ See also http://www.yagarto.de/#ocd for OpenOCD binary versions. Unfortunately it is not allowed to distribute binary version of OpenOCD, which is linked to the proprietary library FTD2XX provided by FTDI, so the binary within the installation uses LibUSB to drive the FTDI chip. LibUSB is also open source and can be found here: http://libusb-win32.sourceforge.net/ For auto detection in background mode, LibUsbDotNet library is used which is also open source and can be found here: http://libusbdotnet.sourceforge.net www.cypress.com Document No. 002-09373 Rev.*A 3

2 Automatic Installation Automatically install OpenOCD GUI frontend from Cypress 2. Start Installation Click OK Click Next Read the disclaimer. Agree the disclaimer. Click Next www.cypress.com Document No. 002-09373 Rev.*A 4

Click Next Click Next Click Next www.cypress.com Document No. 002-09373 Rev.*A 5

Click Next Click Install www.cypress.com Document No. 002-09373 Rev.*A 6

To install the drivers,. Select Install Drivers 2. Connect device via USB 3. Click Finish 3 2 During driver installation following dialog appears. www.cypress.com Document No. 002-09373 Rev.*A 7

This dialog should pop-up 4 times. If this dialog appears, press Continue Anyway. www.cypress.com Document No. 002-09373 Rev.*A 8

3 Manual Installation Used for manually install drivers for FTDI for use with LIBUSB This section is normally not needed, because the Cypress OpenOCD Starter automatically installs all required drivers. In some environments manual driver install may be interesting. 3. If no FTDI-Chip drivers are installed in the operating system. Choose No, not this time 2 2. Click Next. Choose Install from a list 2 2. Click Next www.cypress.com Document No. 002-09373 Rev.*A 9

. Select Search for the... 2 2. Choose the Drivers directory, in the OpenOCD folder 3 3. Click Next If following dialogs opens, click Continue Anyway www.cypress.com Document No. 002-09373 Rev.*A 0

Click Finish www.cypress.com Document No. 002-09373 Rev.*A

..Choose No, not this time 2 2. Click Next. Choose Install from a list... 2 2. Click Next. Select Search for the... 2 3 2. Choose the Drivers Directory, in the OpenOCD folder 3. Click Next www.cypress.com Document No. 002-09373 Rev.*A 2

If following dialogs opens, click Continue Anyway Click Finish www.cypress.com Document No. 002-09373 Rev.*A 3

.Choose No, not this time 2 2.Click Next. Choose Install from a list. 2 2. Click Next www.cypress.com Document No. 002-09373 Rev.*A 4

. Select Search for the 2 2. Choose the Drivers directory in the OpenOCD folder 3 3. Click Next If following dialogs opens, click Continue Anyway www.cypress.com Document No. 002-09373 Rev.*A 5

Click Finish Now Drivers are installed and OpenOCD is ready to use. www.cypress.com Document No. 002-09373 Rev.*A 6

3.2 If FTDI-Chip drivers are installed in the operating system In this case Channel A of the USB to dual RS232 bridge will be recognized as Serial Converter A. To use it with LibUSB, the driver of Serial Converter A has to be patched to a LibUSB driver. Go to Control Panel Open System control panel www.cypress.com Document No. 002-09373 Rev.*A 7

Open the Device Manager. www.cypress.com Document No. 002-09373 Rev.*A 8

Expand Universal Serial Bus Controller Here the USB Serial Converter A is listed. Click with right-mouse button USB Serial Converter A and choose Update Driver www.cypress.com Document No. 002-09373 Rev.*A 9

. Choose No, not this time 2 2. Click Next. Choose Install from a list 2 2. Click Next www.cypress.com Document No. 002-09373 Rev.*A 20

. Select Search for the... 2 2. Choose the Drivers directory in the open OCD folder 3 3. Click Next Click Have Disk Click Browse www.cypress.com Document No. 002-09373 Rev.*A 2

Navigate to Drivers folder in the open OCD folder Choose Cypress-OpenOCD- USB Click Open www.cypress.com Document No. 002-09373 Rev.*A 22

Click OK Choose CypressOpenOCD-USB Click Next Now drivers are installed and OpenOCD is ready to use. Click Finish www.cypress.com Document No. 002-09373 Rev.*A 23

4 Use OpenOCD How To Use OpenOCD The Cypress OpenOCD Starter can be used in different ways: As GUI or in background mode. 4. Background Mode If Cypress OpenOCD Starter is configured to start with windows start up, it automatically switches to background mode. If this was not configured at installation, this can be done via tray icon : In background mode the Cypress OpenOCD Starter automatically detects the evaluation board and starts the debugger. To switch into background mode, just minimize the Cypress OpenOCD Starter. You may have to reconnect the board, to start auto detection. 4.2 Graphical Interface Start Cypress OpenOCD Starter (GUI) www.cypress.com Document No. 002-09373 Rev.*A 24

2 5 3 4. Select evaluation board 2. Select firmware file (optional) 3. Download Firmware into flash (optional and experimental) 4. Start OpenOCD Debug Server 5. Reinstall drivers if needed 4.3 Configure IAR for use with OpenOCD Start IAR Workbench. Select Project in the menu Choose Options www.cypress.com Document No. 002-09373 Rev.*A 25

2. Select Debugger 3 2. Select Setup 3. As driver select GDB Server 2. Select GDB Server 2. Enter 27.0.0. in TCP/IP address www.cypress.com Document No. 002-09373 Rev.*A 26

If Cypress OpenOCD Starter is not in background mode, the OpenOCD debugger has to be started manually: In Cypress OpenOCD Starter select your evaluation board Click Start Debug Start debug in IAR Workbench www.cypress.com Document No. 002-09373 Rev.*A 27

A Appendix A. WWW A.. C ypress Semiconductor http://www.cypress.com/cypress-microcontrollers A..2 OpenOCD at Sourceforge.net http://openocd.sourceforge.net/ A..3 LibUSB at Sourceforge.net http://libusb-win32.sourceforge.net/ www.cypress.com Document No. 002-09373 Rev.*A 28

Document History Document Title: AN209373 - F²MC-FM3 Family OpenOCD GUI Frontend Document Number: 002-09373 Revision ECN Orig. of Change ** - MSCH Submission Date 02/0/202 Initial release. 02/24/202 Additional Information Added Description of Change *A 5247657 MSCH 06/29/206 Migrated Spansion Application Note from MCU-AN-300406-E-V to Cypress format. Link to the Hardware and Firmware doesn t exist and this AN to be Obsolete. www.cypress.com Document No. 002-09373 Rev.*A 29

Worldwide Sales and Design Support Cypress maintains a worldwide network of offices, solution centers, manufacturer s representatives, and distributors. To find the office closest to you, visit us at Cypress Locations. Products PSoC Solutions ARM Cortex Microcontrollers Automotive Clocks & Buffers Interface Lighting & Power Control Memory PSoC Touch Sensing USB Controllers Wireless/RF cypress.com/arm cypress.com/automotive cypress.com/clocks cypress.com/interface cypress.com/powerpsoc cypress.com/memory cypress.com/psoc cypress.com/touch cypress.com/usb cypress.com/wireless PSoC PSoC 3 PSoC 4 PSoC 5LP Cypress Developer Community Forums Projects Videos Blogs Training Components Technical Support cypress.com/support PSoC is a registered trademark and PSoC Creator is a trademark of Cypress Semiconductor Corporation. All other trademarks or registered trademarks referenced herein are the property of their respective owners. Cypress Semiconductor 98 Champion Court San Jose, CA 9534-709 Phone : 408-943-2600 Fax : 408-943-4730 Website : www.cypress.com Cypress Semiconductor Corporation, 202-206. This document is the property of Cypress Semiconductor Corporation and its subsidiaries, including Spansion LLC ( Cypress ). This document, including any software or firmware included or referenced in this document ( Software ), is owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights, trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license (without the right to sublicense) () under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2) under those claims of Cypress s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is prohibited. TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document. Any information provided in this document, including any sample design information or programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, life-support devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage ( Unintended Uses ). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause the failure of the device or system, or to affect its safety or effectiveness. Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products. You shall indemnify and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising from or related to any Unintended Uses of Cypress products. Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit cypress.com. Other names and brands may be claimed as property of their respective owners. www.cypress.com Document No. 002-09373 Rev.*A 30