Cypress MB91460 Manual 

Specifications

Brand: Cypress
Category: Computer Hardware
Model: MB91460 (Manual )
File Type: PDF
File Size: —
Pages: 41

Read Online

Read the Cypress MB91460 Manual  online using the built-in PDF viewer.

Text of the manual

FR Family, MB91460 Emulation System

Doc. No. 002-05146 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 http://www.cypress.com

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

2 Copyrights © Cypress Semiconductor Corporation, 2005-2016. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life- support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Trademarks All other trademarks or registered trademarks referenced herein are property of the respective corporations. Source Code Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress. Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress‟ product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Use may be limited by and subject to the applicable Cypress software license agreement.

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

3 Contents 1. Introduction .................................................................................................................................................................... 5 2. Hardware Requirements ............................................................................................................................................... 6 3. Software Installation ...................................................................................................................................................... 7 3.1 Softune Workbench ............................................................................................................................................... 7 4. Installation of the Emulation System ........................................................................................................................... 8 4.1 Providing a Clock Source ...................................................................................................................................... 8 4.2 Checking the Jumpers ........................................................................................................................................... 8 4.3 Connecting the Emulation System ......................................................................................................................... 9 4.3.1 Cabling the Emulator MB2198-01 ............................................................................................................. 9 4.3.2 Mounting the Evaluation MCU ................................................................................................................ 10 4.3.3 Connecting and Cabling the Adapter Board to the Evaluation Board ..................................................... 10 4.4 Power up the Emulation System .......................................................................................................................... 13 5. Jumpers and Switches ................................................................................................................................................ 14 5.1 Jumpers of the MB91V460 Adapter Board (MB2198-300) .................................................................................. 14 5.1.1 V-Chip Options ....................................................................................................................................... 14 5.1.2 Emulator Interface .................................................................................................................................. 15 5.1.3 External Emulation Memory .................................................................................................................... 16 5.1.4 Clock Control .......................................................................................................................................... 17 5.1.5 Power Settings ........................................................................................................................................ 18 5.1.6 Signal Routing ........................................................................................................................................ 18 5.1.7 Default Jumper Settings .......................................................................................................................... 19 5.2 Jumpers of the evaluation board SK-91460-MAIN V1.2 ...................................................................................... 20 5.2.1 Analogue Power Supply Voltage ............................................................................................................ 20 5.2.2 Default Jumper Settings .......................................................................................................................... 21 5.3 Default Jumper Settings of the evaluation board SK-91F467D-208PFV ............................................................. 22 5.4 Default Jumpers Settings of the probe cable PB-91467D-208PFV ..................................................................... 23 5.5 Default Jumpers Settings of the probe cable PB-91467D-LS-208PFV ................................................................ 24 6. Softune Workbench Getting Started .......................................................................................................................... 25 6.1 Copying the “template” directory .......................................................................................................................... 25 6.2 Adjusting the project files ..................................................................................................................................... 25 6.3 Opening the Softune Workbench ......................................................................................................................... 26 6.4 Entering the code................................................................................................................................................. 28

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

4 6.5 Compiling the Project ........................................................................................................................................... 28 6.6 Enter Debugging Mode ........................................................................................................................................ 29 6.6.1 Executing the Program ........................................................................................................................... 30 6.7 Ending the Debugging ......................................................................................................................................... 30 6.8 Last steps ............................................................................................................................................................ 30 7. Setup / Change Connection PC – Emulation System ............................................................................................... 31 7.1 Setup Serial Connection ...................................................................................................................................... 31 7.1.1 Overview ................................................................................................................................................. 31 7.1.2 Settings ................................................................................................................................................... 31 7.2 Setup USB ........................................................................................................................................................... 31 7.2.1 Overview ................................................................................................................................................. 31 7.2.2 Updating the USB-Drivers ....................................................................................................................... 31 7.3 Setup LAN ........................................................................................................................................................... 34 7.3.1 Overview ................................................................................................................................................. 34 7.3.2 Configuring the LAN Adapter .................................................................................................................. 34 7.3.3 Configuring Operating System “WindowsTM”........................................................................................... 35 7.3.4 Checking the network-connection ........................................................................................................... 38 7.3.5 Troubleshooting ...................................................................................................................................... 38 7.3.6 Softune Workbench ................................................................................................................................ 40 Revision History ................................................................................................................................................................... 41 Document Revision History ........................................................................................................................................... 41

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

5 1. Introduction The chapter gives short overview of this guide This user guide describes the first steps how to use the MB91460 emulation system. It describes also the software and hardware installation procedure. Further information can be found in the following manuals:  „Softune Workbench Installation Manual for V6‟ for information about the installation procedure of the software  „MB2198-01 Hardware Manual‟ for information about the emulator  „SK-91460-MAIN V1.2 User Guide‟ for information about the evaluation board SK-91460-MAIN and its jumpers and options.  „SK-91F467D-208PFV V1.1 User Guide‟ for information about the evaluation board SK-91F467D-208PFV and its jumpers and options.  „PB-91467D-208PFV User Guide‟ for information about the probe cable PB-91467D-208PFV and its jumpers and options. The MB91460 emulation system allows the designer immediately to start with the software development before his own final target system is available.

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

6 2. Hardware Requirements The chapter lists the required hardware for the MB91460 emulation system. The MB91460 emulator system consists of  The emulator MB2198-01 incl. 16 V DC power supply  The DSU-FR cable MB2198-10  The MB91V460 adapter board (MB2198-300) incl. 16 V DC power supply  And an evaluation board, e.g.  The evaluation board SK-91460-MAIN V1.2 incl. 9 V DC power supply Or  The evaluation board SK-91F467-208PFV V1.1 incl. 9 V DC power supply and  The probe cable PB-91467-208PFV or the probe cable PB-91467-LS-208PFV

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

7 3. Software Installation This chapter describes the software installation procedure This installation procedure is valid for Windows XP/2000/NT 4.0. For other operating systems and for further details, please refer to the Softune Workbench installation manual for V6 and to the hardware manual of the Emulator MB2198-01 3.1 Softune Workbench Please install the Softune Propack 911s FRSTAPACK600007FME02 Execute FRSTAPACK600007FME02 and follow installation process. This file presents the styles that are available in a chapter file for a Reference Design Guide. Styles are located in the Styles and Formatting bar. (Leave blank Body paragraph marker here to add space between opening sentences and main content of chapter.) Rule 1: To install the software under Windows XP/2000/NT 4.0, the user requires administration authority.

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

8 4. Installation of the Emulation System This chapter describes, what should be considered and checked before power-up the emulation system. Also the start-up procedure of the emulation system is described. In order to properly install the emulation system, please follow the following steps. 4.1 Providing a Clock Source The adapter board can be equipped with two clocks, a main and a sub clock. The following figure depicts who to install the crystal and the capacities for the main clock in connector SC30. The same applies analogously for the sub clock in connector SC31. Figure 4-1. Installing the crystal for the main clock The crystal for the main clock has a frequency of 4 MHz and the crystal for the sub clock has a frequency of 32 kHz. The capacity of the capacitor should be 22 pF. 4.2 Checking the Jumpers Rule 2: To prevent damages, check all jumpers and switches before powering up the emulation system. Jumpers of the MB91V460 adapter board (MB2198-300) and all jumpers of the evaluation board SK-91460- MAIN V1.2 or SK-91F467D-208PFV and the probe cable PB-91467D-208PFV influencing the adapter board are described in chapter 5.

Installation of the Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 9 4.3 Connecting the Emulation System The following connections have to be established: 4.3.1 Cabling the Emulator MB2198-01 There are some connections necessary for the emulator MB2198-01. The following lists each step. 1. Connect the emulator MB2198-01 (1) e.g. with the USB-Cable (2) to the USB port of the PC. (Analogously for other connection types. Please also refer to chapter 7. 2. Plug the DSU-FR Cable MB2198-10 (3) into the port labeled „DSU Cable‟ (4). The correct position of cable and port is marked with arrows. 3. Finally, connect the 16 V DC power supplies (5) to the port „DC in‟ (6) and to 230 V. Please, be aware, that the emulator is switched off. Figure 4-2 illustrates the necessary connections of the emulator MB2198-01. Figure 4-2. Connections of the Emulator MB2198-01

Installation of the Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 10 4.3.2 Mounting the Evaluation MCU 1. Press down the top of the IC socket. Take care when you press the IC socket; Hold the board against the pressure not to bend the board. 2. Confirm that the hook is open, and put the evaluation MCU on the socket. The index shows the A1 pin of the evaluation MCU. 3. Release the socket slowly and confirm that the evaluation MCU is fastening to the socket. The following figure shows the socket of the evaluation MCU MB91V460. Figure 4-3. Mounting the Evaluation MCU 4.3.3 Connecting and Cabling the Adapter Board to the Evaluation Board Depending on the evaluation board, a probe cable is required or not. The following sections describe the connection of the adapter board to the evaluation board SK-91460-Main or to the evaluation board SK-91F467D- 208PFV with the probe cable PB-91467D-208PFV or PB-91467D-LS-208PFV. 4.3.3.1 Connecting the Adapter Board to the SK-91460-MAIN 1. Connect both boards. Be aware, that the boards are tight connected. Figure 4-4 shows the connected boards. Figure 4-4. Connected Adapter Board and Evaluation Board

Installation of the Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 11 After connecting both boards together it is necessary to connect the DSU-FR Cable MB2198-10 and the power supplies. 2. Connect the DSU-FR Cable MB2198-10 to the evaluation board. 3. Connect the 16 V DC power supply to the port „DC in‟ and to 230 V. Please, be aware, that „SW2 Power‟ is off. 4. Provide the 9 V DC power supply and connect it to 230 V. The following figure shows the correct polarization. Do not power up the evaluation board by connecting the power supply yet Figure 4-5. The Correct Polarization of the 9 V DC Power Supply Figure 4-6 shows the cabling of the adapter and evaluation boards. Figure 4-6. Cabling the Adapter Board and Evaluation Board 4.3.3.2 Connecting the Adapter Board to the SK-91F467D-208PFV 1. Connect the adapter board with the probe cable. Be aware, that the boards are tight connected. 2. Unscrew the YQ-PACK of the SK-91F467D-208PFV and remove carefully the microcontroller from the socket. 3. Connect the probe cable PB-91467D-208PFV to the SK-91F467D-208PFV and tighten the screw. The same procedure applies for the probe cable PB-91467D-LS-208PFV. 9 V GND

Installation of the Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 12 Figure 4-7 shows the connected boards. Figure 4-7. Connected Adapter Board, Probe Cable and Evaluation Board After connecting the boards it is necessary to connect the DSU-FR Cable MB2198-10 and the power supplies. 4. Connect the DSU-FR Cable MB2198-10 to the evaluation board. 5. Connect the 16 V DC power supply to the port „DC in‟ and to 230 V. Please, be aware, that „SW2 Power‟ is off. 6. Provide the 9 V DC power supply and connect it to 230 V. The following figure shows the correct polarization. Do not power up the evaluation board by connecting the power supply yet. Figure 4-8. The Correct Polarization of the 9 V DC Power Supply 9 V GND

Installation of the Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 13 The following figure shows the cabling of the boards. Figure 4-9. Cabling the Adapter Board, Probe Cable and Evaluation Board 4.4 Power up the Emulation System To avoid damages, please always follow this procedure to power up the emulation system. 1. Switch on the main switch at the back of the emulator MB2198-01. The „Power‟ LED and the „UVCC‟ LED have to be illuminated. 2. Power on the MB91V460 Adapter Board (MB2198-300) „SW2 Power‟. The „Power‟ LED has to be illuminated. 3. Power on the evaluation board SK-91460-MAIN V1.2 Rule 3: To power down the emulation system, please follow the procedure reversely.

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

14 5. Jumpers and Switches This chapter describes the jumpers and switches which can be modified on the MB91V460 adapter board (MB2198-300). Also the jumpers of the evaluation board SK-91460-MAIN V1.2 influencing the adapter board are explained. The default settings are mentioned. 5.1 Jumpers of the MB91V460 Adapter Board (MB2198-300) 5.1.1 V-Chip Options Some options of the V-chip can be enabled or disabled. Jumper Setting Description S1 ALARM_SEL EN – X Old alarm comparator X – DIS New alarm comparator S2 ADC_SEL EN – X 5V ADC is enabled X – DIS 3V ADC is enabled S3 HWWDG_KILL EN – X Hardware watchdog is disabled X – DIS Hardware watchdog is enabled S4 FIX_ENX EN – X Fixed Mode / Reset Vector is enabled X – DIS Fixed Mode / Reset Vector is disabled S5 CSV_KILL EN – X Clock supervisor is disabled X – DIS Clock supervisor is enabled S6 SRAM_SFX EN – X Flash Mode X – DIS SRAM Mode S7 FSC_DISABLE EN – X Disable flash security of emulation flash X – DIS Enable flash security of emulation flash Default: S1 = X–DIS S2 = EN–X S3 = X-DIS S4 = EN–X S5 = X–DIS S6 = X–DIS S7 = EN–X Note: 1. ALARM_SEL: The 91V460 is equipped with two different alarm comparators. The devices 91F467D and 91461 are equipped with the new alarm comparator. 2. ADC_SEL: Depending on the voltage supply the respective ADC have to be selected. 3. HWWDG_KILL: The hardware watchdog has to be enabled also in the Softune workbench. (Debug Mode: Setup-> Dev. Environment-> Dev. Environment-> Execution-> watchdog)

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 15 4. SRAM_SFX: Depending on the connected emulation memory, the respective mode has to be selected. By default a SRAM is connected. 5.1.2 Emulator Interface The emulator interface can be terminated if the in-circuit-emulator (ICE) is not used. Jumper Setting Description S14 INITX USER – INITX INITX is controlled by the evaluation board INITX – ICE INITX is controlled by the emulator S15 TRSTX USER – TRSTX TRSTX is controlled by the evaluation board TRSTX – ICE TRSTX is controlled by the emulator S16 ICD3 PD_OFF – ICD3 Disconnect pull-down resistor to ICD3 ICD3 – PD_ON Connect pull-down resistor to ICD3 S17 ICD2 PD_OFF – ICD2 Disconnect pull-down resistor to ICD2 ICD2 – PD_ON Connect pull-down resistor to ICD2 S18 ICD1 PD_OFF – ICD1 Disconnect pull-down resistor to ICD1 ICD1 – PD_ON Connect pull-down resistor to ICD1 S19 ICD0 PD_OFF – ICD0 Disconnect pull-down resistor to ICD0 ICD0 – PD_ON Connect pull-down resistor to ICD0 S20 BREAK PD_OFF – BREAK Disconnect pull-down resistor to BREAK BREAK – PD_ON Connect pull-down resistor to BREAK Default: S14 = INITX–ICE S15 = TRSTX–ICE S20 = OFF-BREAK S16 = OFF–ICD3 S17 = OFF–ICD2 S18 = OFF–ICD1 S19 = OFF–ICD0 Note: 1. If the in-circuit-emulator (ICE) is used, the default settings have to be used.

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 16 5.1.3 External Emulation Memory The size of the external emulation memory and the emulation memory width is selectable. Jumper Setting Description S13 D32_D16SL D32 – X External emulation memory is used in a 32 bit width X – D16 External emulation memory is used in a 16 bit width Jumper MDENS2 MDENS1 MDENS0 Size S10 MDENS1 S11 MDENS0 S12 MDENS2 1 1 1 8 MByte 1 1 0 4 MByte 1 0 1 2 MByte 1 0 0 1 MByte 0 1 1 512 kByte 0 1 0 Prohibited 0 0 1 Prohibited 0 0 0 0 Byte Default: S13 = D32-X MDENS0 = 0 MDENS1 = 0 MDENS2 = 0

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 17 5.1.4 Clock Control The source of the main and the sub clock is selectable between the adapter board and the evaluation board. MCLKI and MCLKO of the external bus interface can be connected to the evaluation board or can be shorten on the adapter board. Jumper Setting Description S22 EML – X0 Main clock provided from adapter board X0 - USER Main clock provided from evaluation board S23 EML – X1 Main clock provided from adapter board X1 - USER Main clock provided from evaluation board S24 EML – X0A Sub clock provided from adapter board X0A - USER Sub clock provided from evaluation board S25 EML – X1A Sub clock provided from adapter board X1A - USER Sub clock provided from evaluation board S30 / S31 MCLKI / MCLKO EVA – MCLKI EVA – MCLKO MCLKI and MCLKO are not connected to evaluation board. MCLKI and MCLKO are shorten MCLKI – USER MCLKO – USER MCLKI and MCLKO are connected to evaluation board. MCLKI and MCLKO are not shorten Default: S22 = EML-X0 S23 = EML-X1 S24 = EML-X0A S25 = EML-X1A S30 = MCLKI-USER S31 = MCLKO-USER By default the clocks are provided from the adapter board. By default MCLKI and MCLKO are connected to the evaluation board.

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 18 5.1.5 Power Settings The voltage sources are selectable. Jumper Setting Description S26 SHDNSEL UVCC5 – SHDNSEL Keep watching VCC5 of evaluation board SHDNSE – UVCC3 Keep watching VCC3 of evaluation board S27 VCCC3SEL 3.3V – VCCC3SEL MB91V460‟s VCC3 is supplied by evaluation board VCCC3SEL – 3.5V 3.5V is supplied to VCC3 of MB91V460 S28 VCC5 UVCC3 – VCC5 Connect VCC3 of the adapter board to VCC3 of evaluation board VCC5 – UVCC5 Connect VCC5 of the adapter board to VCC5 of evaluation board S29 UVCC3H UVCC5 – UVCC3H VCC5H is generated from VCC5 by adding +1 V UVCC3H – UVCC3 VCC5H is generated from VCC3 by adding +1 V S8 C VCC3 – C Connect to VCC3 of MB91V460 C – VCC3C Connect to the C terminal of the evaluation board Default: S26 = SHDNSEL–UVCC3 S27 = VCCC3SEL–3.5V S28 = VCC5–UVCC5 S29 = UVCC3H–UVCC3 S8 = VCC3 – C Note: 1. SHDNSEL: VCC3 or VCC5 can be supervised. If the selected voltage fails, the power supply of the evaluation chip will be cancelled. 5.1.6 Signal Routing Some signal can be routed depending on the application of the evaluation board. Jumper Setting Description S21 P10_7 PULLDOWN – P10_7 Pull-down resistor is connected to P10_7 P10_7 – PULLUP Pull-up resistor is connected to P10_7 S32/S33 P224/P242 P224 – CN2_B68 P242 – CN3_A6 P22_4 is connected to CN2_B68 P24_2 is connected to CN3_A6 P224 – CN3_A6 P242 – CN2_B68 P22_4 is connected to CN3_A6 P24_2 is connected to CN2_B68 S34/S35 P225/P243 P225 – CN2_B67 P243 – CN3_A5 P22_5 is connected to CN2_B67 P24_3 is connected to CN3_A5 P225 – CN3_A5 P243 – CN2_B67 P22_5 is connected to CN3_A5 P24_3 is connected to CN2_B67 Default: S21 = PULLDOWN – P10_7 S32 = P224 – CN2_B68 S33 = P242 – CN3_A6 S34 = P225 – CN2_B67 S35 = P243 – CN3_A5

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 19 5.1.7 Default Jumper Settings In Figure 5-1 the default jumper settings of the adapter board are marked. The resistor can be removed, beside of R71, R74 and R75. Figure 5-1. Default Jumper Settings of the Adapter Board

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 20 5.2 Jumpers of the evaluation board SK-91460-MAIN V1.2 In this section only the jumpers, influencing the adapter board are explained. Please refer to the user guide of the evaluation board SK-91460-MAIN V1.2 for the other jumpers and switches. 5.2.1 Analogue Power Supply Voltage The power supply for the ports of the adapter board is generated by the evaluation board. The voltage is selectable between 3.6 V and 5 V. Jumper Setting Description SL260 closed The microcontroller interface is powered with 3,3V open The microcontroller interface is powered with 5V SL262 closed Power supply MCU_Vcc is connected open Power supply MCU_Vcc is disconnected ST370 closed 3,3V is supplied to UVCC3 open 3,3V is not supplied to UVCC3 ST371 closed 3,3V is supplied to VCC3C open 3,3V is not supplied to VCC3C Default: SL260 = open SL262 = closed ST370 = closed ST371 = closed By default, the I/O-ports are supplied by 5 V. Note: 1. The Jumper S28 of the adapter board selects UVCC3 or MCU_VCC (UVCC5) as power supply for the I/O- port. By default this Jumper selects MCU_VCC (UVCC5).

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 21 5.2.2 Default Jumper Settings In Figure 5-2 the default jumper settings are marked. For detailed information about the jumpers, please refer to the hardware manual of the evaluation board. Figure 5-2. Default Jumper Settings of the Evaluation Board SK-91460-MAIN

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 22 5.3 Default Jumper Settings of the evaluation board SK-91F467D- 208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board. Figure 5-3. Default Jumper Settings of the Evaluation Board SK-91F467D-208PFV

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 23 5.4 Default Jumpers Settings of the probe cable PB-91467D-208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board. Figure 5-4. Default Jumper Settings of the Probe Cable PB-91467D-208PFV

Jumpers and Switches

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 24 5.5 Default Jumpers Settings of the probe cable PB-91467D-LS-208PFV In the following figure the default jumper settings are marked. For detailed information about the jumpers, please refer to the user guide of the evaluation board. Figure 5-5. Default Jumper Settings of the Probe Cable PB-91467D-LS-208PFV

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

25 6. Softune Workbench Getting Started Preparing a New Project 6.1 Copying the “template” directory If you want to create a new project it is strongly recommended to use the “template project” as a base of operations. The “template project” includes all basic settings for a quick and safe start. It includes the header and includes files of the latest released version. To start, copy the “template” directory with all its sub folders. For example, we want to create a project, called LED. For that, rename the copy of the “template” folder to “LED”. Figure 6-1. Copy the Template Project 6.2 Adjusting the project files First click into the new “LED” folder and rename the following files: Template.prj  Led.prj Template.wsp  Led.wsp Now open the file “Led.prj” with your favorite text editor. You will find an entry like this: [DirInfo] PRJ=C:\

Softune Workbench Getting Started

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 26 In the line “PRJ=” please edit the file path to your correct path. Of course, the “template” has to be renamed to “led”. Save and close the file. Attention: If you use MS Word, please be sure to save the file as a normal text file, not as a word document! Now open the file “Led.wsp” also with a text editor. Do the following changes: [PrjFile] Count=1 FILE-0=Template.prj  FILE-0=Led.prj ActivePrj=Template.prj  ActivePrj=Led.prj [SubPrj-Template.prj]  [SubPrj-Led.prj] Like in the Prj-File, you have to set your correct project folder path in the “WSP=” line: [DirInfo] WSP=C:\ Now save and close the file also as a normal text file. The new project environment is now adjusted. 6.3 Opening the Softune Workbench Now you can open the Softune Workbench. For installation of this tool please refer to the Installation Guide App. Note. Choose the Menu File/Open. The following pop up window will occur: Figure 6-2. Open a Workspace Click “OK” for “Workspace/Project file”, and then browse to the file “Led.wsp”. Open it.

Softune Workbench Getting Started

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 27 Then the following project structure will be displayed on the left side of the Softune screen. The next level contains the ABS-File of the Project, which contains the compiled program data The source files, their dependencies and the debugger settings follow. For the moment the Source Files are in the point of interest. Open the Source File of the Main Program “Main.c” by double clicking it in the window shown left. Now a text editor window will open, which shows the contents of “Main.c”. It will look like this:

Softune Workbench Getting Started

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 28 Figure 6-3. The MAIN.C Code of the Template The code only contains the chip specific header inclusion and in the main routine a frame for the interrupt initialization. 6.4 Entering the code Now the development of the application can begin, therefore the main-function is already prepared. Interrupt definition is done in the file „vectors.c'. 6.5 Compiling the Project Because of the usage of the “Template Project”, you now can compile this example at this moment. No other settings have to be done. There are two ways to build to the whole project data. Either choose Project/Build or click the button in the circle in the illustration below:

Softune Workbench Getting Started

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 29 6.6 Enter Debugging Mode After a successful project built you can enter the debugger mode via three different interfaces depending on your hardware set up:  PC-COM-Port (RS232)  LAN Interface  USB Port By double clicking on the correct connection type of the Debug dependency in the Project window (*.sup-files), your PC will connect to the MB2198-01 Emulator and the Softune Workbench will enter the Debugging Mode. After a successful connection, the Softune Workbench will look like this: Figure 6-4. Debugging Mode after a successful Connection Note: The interface has to be determined only once. Later you can choose the menu Debug/Start debug to enter this mode.

Softune Workbench Getting Started

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 30 6.6.1 Executing the Program Now choose Debug/Run/Go, press F5 or click the button. Look at the Starter Kit. A “scrolling” LED has to be flashing on the Board. To halt the execution, choose Debug/Abort or click the button (Note, that this button is only active in execution mode). The emulator system now is being halted. The execution can be continued by entering the “Go”-Mode again. 6.7 Ending the Debugging To end the debugging just choose the menu Debug/End debug. 6.8 Last steps To save the project data choose File/Close Workspace. Click “Yes”. Afterwards you can close the Softune Workbench. Note, that in the next start of the Workbench, your new LED-Project will occur in the menu list File/Recent Workspace File. By simply clicking to “Led.wsp”, the whole project will open again.

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

31 7. Setup / Change Connection PC – Emulation System This chapter describes who to establish the connection between PC and emulation system. The emulator MB2198-01 offers three possibilities to program and to debug a device, namely via  Serial connection  USB  LAN In the template for the 91V460 all three connection types are already preconfigured, but for some device additional settings have to be made. 7.1 Setup Serial Connection 7.1.1 Overview The emulator MB2198-01 offers the possibility to program and debug a device via a serial connection. Even though this is a very easy to install connection, the transmission speed is very slow. 7.1.2 Settings The default setting for debugging via a serial connection is COM 1 and a baud rate of 115200 Baud. 7.2 Setup USB 7.2.1 Overview The emulator MB2198-01 is provided with a USB port that can be used to program and debug a device. No additional hardware connection is required for this purpose. 7.2.2 Updating the USB-Drivers To operate the emulator MB2198-01 on the PC, the USB-Drivers of the PC have to be updated. The following procedure describes the update-process. 1. Connect the USB-Cable to the emulator MB2198-01 and to the PC. Connect the 16 V DC power supply to the port „DC in‟ and to 230 V. Please, be aware, that the emulator is switched off. Also refer to Figure 4-2. 2. After the PC is booted, power up the emulator. Windows will register a new hardware component and will start the hardware wizard. Select the option „No, not this time‟ to search the drivers manually and press „Next‟.

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 32 Figure 7-1. Installing the USB-driver I 3. Select the option „Install from a list or specific location (Advanced) and press „Next‟ Figure 7-2. Installing the USB-driver II

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 33 4. Include the subfolder „Drivers‟ of the unpacked the softune propack 911s Rev 60006, e. g. „c:\temp\rev600006\Drivers‟ in the search. Press „Next‟ to install the drivers. Figure 7-3. Choose the search options 5. Finish the update procedure by pressing „Finish‟. Figure 7-4. Close the hardware wizard Rule 4: To install the software under Windows XP/2000/NT 4.0, the user requires administration authority.

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 34 7.3 Setup LAN 7.3.1 Overview The emulator MB2198-01 is provided with a local area network port that can be used to program and debug a device over a network connection. No additional hardware connection except the LAN connection itself is required for this purpose Using the Cypress LAN-remote controlled debug facility,  A Cypress support engineer can easily help solving a concrete problem by debugging your application out of a Cypress support centre.  You can control the emulator from different locations without having to move your hardware installation from one place to another.  Program download will be more than 6 times faster than with RS232C 7.3.2 Configuring the LAN Adapter 1. Connect emulator and PC by the serial RS232-Port (or USB-Port) 2. Start the „LAN Address“ Program in the Softune Workbench Folder 3. Click on Communication to define the serial RS232 Port where the emulator is connected to or use USB connection. 4. Read current status from the emulator 5. Set the unique IP address given from your network manager. This is a very important point; every IP- address within a network has to be unique. 6. Check the Port address: must be 5001 7. Make settings valid by “Set”, and reset the emulator when prompted 8. Close Program “LAN Address”

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 35 Figure 7-5. Changing the IP-Address 7.3.3 Configuring Operating System “WindowsTM” 1. Within your WindowsTM-directory (e.g. C:\windows or C:\WINNT\system32\drivers\etc) you should find three files:  services  hosts  lmhosts[.sam] (Note: The files may not have a file-extension!) 2. Make a copy off all three files, like for an example: services to sevices.old , etc. Edit file services and add the following line: fjicesv 5001/tcp # Cypress emulator

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 36 Figure 7-6. Add a Service (Note: if 5001/tcp is already contained in the file services, use an unused number beginning with 5002 or greater, e.g. fjicesv 5002/tcp. In that case also the emulator address given by the program “LAN address”(see above) has to be changed! 3. When saving again the file Services be sure that your editor (e.g. notepad) will not add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: File save as: “services” 4. The file hosts is used to make a redefinition of the complex IP-number with a simple name within your global network. This may be important if you use a DNS-Server. Of course, you can define different names for the same IP-Address, as shown below. Edit file hosts and add the following line: “The unique IP address (as set by LAN-Address, see above)” “Nickname of emulator” e.g. 141.187.6.82 Emulator

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 37 Figure 7-7. Add a Host When saving again the file Hosts be sure that your editor (e.g. notepad) will not add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: File save as: “hosts” 5. The file lmhosts (or lmhosts.sam) is used to make a redefinition of the complex IP-number with a simple name within your local network. Of course, you can define different names for the same IP-Address, as shown below. Edit file lmhosts and add the following line:

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 38 Figure 7-8. : Edit the File Imhosts.asm “The unique IP address (as set by LAN-Address, see above)” “nickname of emulator” e.g. 141.187.6.82 fjicescv 141.187.6.82 Emulator When saving again the file Imhosts get sure that your editor (e.g. notepad) will not add any extension, e.g. .txt, to your file. To get sure, use quotation marks for the filename: e.g. File save as: “lmhosts” (or lmhosts.sam) 7.3.4 Checking the network-connection Disconnect serial RS232 (or USB) cable from Emulator and try to find the emulator:  Open DOS-Window (or open RUN (Ausführen) in the Start-Menu)  The command ping Emulator should acknowledge with some time-values, that means the network is set up right. The emulator with LAN-adapter is successfully integrated in the network environment and can be used by the Softune Workbench. 7.3.5 Troubleshooting If the command ping my_emulator will reply with a timeout-message, try to find the emulator by its IP- address: Type command ping IP-address, e.g. ping 141.187.6.82. If this will work, then check settings (nickname and IP-address) within Imhosts and Hosts. If neither nickname (my_emulator) nor IP-address will work, check settings done by the program LAN-address and check the file Services. Also check your physical network interconnection cables. When using a HUB for 10Base-T then a standard (1:1) network cable has to be used. If the emulator is connected directly to the PC a “crossed network cable” is necessary. Good answer: Emulator/LAN-adapter replies with time-values:

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 39 Figure 7-9. Testing the IP-Connection to the Emulator I “Failed”-answer: Emulator/LAN-adapter replies with timeout message: Figure 7-10. Testing the IP-Connection to the Emulator II

Setup / Change Connection PC – Emulation System

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A 40 7.3.6 Softune Workbench Within the Softune Workbench the LAN interface can be used instead of a serial RS232C communication. Detail- Host: can be the “nickname” as defined in the files hosts and lmhosts or the IP-address of the emulator, set by the program “LAN-Address”, can be used. Figure 7-11. Changing the IP-Address of the Host in the Softune Workbench Nickname or IP address

FR Family, MB91460 Emulation System, Doc. No. 002-05146 Rev. *A

41 Revision History Document Revision History Document Title: FR Family, MB91460 Emulation System Document Number: 002-05146 Revision Issue Date Origin of Change Description of Change ** 05/18/2005 NOFL V1.0; UMa :Initial Release 07/18/2005 V1.1; UMa 07/28/2005 V1.2; UMa 08/16/2005 V1.3; UMa 09/02/2005 V1.4; PHu: specify board in 4.1 Providing a Clock Source; clarify jumper setting in 5.1.4 Clock Control 10/20/2005 V1.5; UMa: Installation procedure changed Default jumper settings changed: HWWD is enabled (S3:EN_X) Def. jumper settings corrected: SL260 is open, SL262 is closed 01/17/2006 V1.6; UMa: Typos corrected 04/12/2006 V1.7; Resistors on adapter board can be removed; Changed software installation procedure; Added SK-91F467D-208PFV 09/27/2006 V1.8; UMa: Corrected typo in defaults of 5.1.2 Emulator interface. Table was Corrected. 12/14/2007 V1.9 UMa: Corrected number of document *A 01/19/2016 NOFL Migrated Spansion Guide from MCU-AN-300005-E-V19 to Cypress format

Other Computer Hardware Manuals