Page 1
FR Family FR81S Series, Emulation System Doc. No. 002-04887 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 http://www.cypress.com...
Page 2
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.
Short version explanation for getting started FR81_tools_ReadMe.pdf The FR81S emulation system allows the designer immediately to start with the software development before his own final target system is available. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
The FR81S emulator system consists of The embedded emulator MB2100-01-E including mini USB cable for power supply Debug interface cable FR81S StarterKit, e.g. SK-91580-001-MC Figure 2-1. General overview of MB2100-01-E connections FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
To disable the UAC function, click on [Control Panel] > [User Accounts and Family Safety] > [User Account] > [User Account Control settings]. Then move the Slider to Never Notify (see Figure 3-1) Figure 3-1. UAC Settings Window FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
After successful installation, open the tool in Windows Start [Start] > [Programs] > [SOFTUNE MultiVersionManager] To install a SOFTUNE propack version, click on [SOFTUNE V6] tab > [Regist & Delete…] button. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 9
Select in the [Where to register] any “Not Registered” line for installation and enter the setup.exe path of the corresponding propack (e.g. “..\911s-rev600012\CD_Image”. The [Title] text field is filled automatically by the SOFTUNE revision number. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 10
Installation of SOFTUNE Workbench is finished. For starting the tool it will be found under [Start] > [Programs] > [SOFTUNE MultiVersionManager] > [SOFTUNE MultiVersionManager]. For uninstallation of one version use also the MultiVersionManager FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
The updated USB driver wdapi1021.dll file for Win7 is replaced by every new installation. After an installation please rename wdapi1021.dll to wdapi1021_old.dll and copy wdapi1021_32.dll into “C:\Windows\sysWOW64” and change filename to wdapi1021.dll. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
1x Operation manual (Japanese version) 4.1.2 Appearance and part names In Figure 2-1 and Table 4-1 the external appearance and component names of the embedded emulator MB2100- 01-E are shown. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 13
50Ω) wire core. The maximum permissible communication speed from the MCU to the emulator is 50Mbps regardless of the cable length. In Table 4-2. Cable Length and Communication Speed for Embedded Emulator MB210100-01-E the cable length and maximum communication speed for emulator is shown. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Please follow the instructions of the USB drive installation guide, before executing next steps Installation Steps: Pick up the USB cable which is packed with the emulator. Plug in the mini-USB interface of the USB cable into emulator FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 15
Select: install from a list or specific location Figure 4-4. Windows Hardware Wizard Found New Hardware (2) Select „search for the best driver“ The driver path can be found under ../Softune6/Drivers FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 16
Windows completing the installation by copying some files „Finish“ to close the window Figure 4-7. Windows Hardware Wizard Found New Hardware (5) The hardware installed and ready to be used FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 17
Connect the emulator and the StarterKit with the co-axial cable to the SMA connector Figure 4-8. Debug Cable Connection to Emulator Figure 4-9. Debug Cable Connection to StarterKit The hardware setup is finished. Keep Power SW off. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
This chapter gives an introduction how to get started with Cypress SOFTUNE Workbench. New Project in SOFTUNE Workbench PREPARING A NEW PROJECT This chapter describes how to set up a new project in Cypress SOFTUNE Workbench. 5.1.1 Getting template project In order to start a new user project use the template project for the specific devices.
Page 19
Edit „my_application.prj“ by using an editor program Rename all „template“ into „my_application Edit „my_application.wsp“ by using an editor program Rename all „template“ into „my_application Figure 5-2. Edit .wsp and .prj file FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 20
For editing the source code files, open them by double-click on the file, e.g. main.c Now a text editor window will open, which shows the contents of “Main.c”. It will look like this: FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Figure 5-6. Error Window after Compiling With double-click on the error notification the SOFTUNE opens the file and indicates the line of error such as shown FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
For second case in general it is recommended to search for 1-byte instruction in “instruction maps” within the programming manual. In the Figure 5-8 one 1-byte instruction map is shown, which that the instruction “BE” is illegal. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 23
Enter [Project] > [Setup Project] > tab [Linker], select category “General” and enter within “Other Option” text field the –fill option for 1-byte fill pattern as follows (see Figure 5-9): -fill <start address>/<end address>,<pattern> FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 24
#pragma intvect Vectors_Isr_Illegal_InstructionHandler 14 ///< Illegal Instruction __interrupt void Vectors_Isr_Illegal_InstructionHandler (void) // disable interrupts __DI(); // halt system or wait for watchdog reset while(1) __wait_nop(); FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
SOFTUNE Workbench Getting Started Debugging in SOFTUNE Workbench Evaluation and Debugging with Softune Workbench This chapter describes how to start debug a project in Cypress SOFTUNE Workbench. 5.2.1 Create and edit setup file Before starting a debug session, some setups have to be done.
Start the debug session via [Debug] -> [Start Debug] from SOFTUNE GUI menu or by double-click on .sup file SOFTUNE asks for “Power on Reset” Power on the StarterKit before clicking “OK” on sub-window FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Mark a variable and click right mouse button -> [Watch] to watch a variable value changed In Figure 5-14 a short overview of the debug functionality is given. For further explanations refer to Cypress SOFTUNE Workbench feature description documents.
8 (500kBaud @ 4MHz Main clock). In addition to standard baud rate the high speed mode can be selected. The baud rate for communication direction from MCU to PC is rated to ‘PLLCK / 2’ (e.g. 40MHz baud rate @ 80MHz PLLCK clock). FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 29
[Setup] > [Debug Environment] > [Debug Environment] > Tab [Frequency] > [Enable] (see Figure 5-17). Enter the integer value of the PLL clock command window line and press on ‘OK’ button. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Select text editor folder as execution directory Click on button [Set] The select your new text editor in the selection box [Available Editor]. Click on [OK] for final confirmation FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
We recommend that you store the procedure into the /prc folder of your Softune Workbench project. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 32
To execute an existing procedure file follow these steps: Open a debug session: Debug-> Start Debug Open a Command Window: View-> Command For executing the procedure files, two options are possible: FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 33
If hexadecimal basis is preferred to enter the data, then enter the following command sequence: set radix/hexadecimal [Press/Click ENTER] batch prc/mb91570_read_clock_settings.prc, 3D0900, 8000 [Press/Click ENTER] Same results are expected. See the picture below for details: FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 34
If a file is not found or a command is not recognized, the command window will display an error message like following (see the picture below): FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Is the User Account Control (UAC) feature (min. Win7) enabled? Please disable UAC (see 3.1.1 ). If a new SOFTUNE Final step: Reopen SOFTUNE and start debug session. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 37
Power off hardware system and debugger and power on again. Any ROM area might be not defined correctly. Please use Cypress Flash Programmer tool, if MCU can be programmed via UART interface. Switch MCU mode pins into “serial write mode” (see Table 6-1)Apply .mhx file from the MCU specific template project and start Flash programming by pressing button [Full Operation (D+E+B+P)] (see chapter 7.
MD1 pin on high level. In default all switches of dip switch from StarterKit are on OFF-setting. Put the switch 2 to the ON-setting to get the programming mode as the following picture shows. Figure 7-2. Dip Switch for Programming Modes FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Page 39
After a successfully downloaded program, put all switches of dip switch back to the OFF-position and push the RESET button. The application is flashed in the MCU and starts after the reset. FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A...
Need help?
Do you have a question about the FR81S Series and is the answer not in the manual?
Questions and answers