background image

 

SOFTUNE Workbench Getting Started 

 

FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A 

28 

5.2.4   

Automatic Flash Synchronisation 

Usually during active debug session loading new compiled code is only possible, when the debug session is 
stopped and the “reset” button in the GUI is pressed. In order to synchronize the changed software code with the 
code inside the Flash automatically during stopped debug session, following setps must be done: Stop debug 
session, enter [Setup] > [Debug Environment] > [Debug Environment...], tab [Load] and enable the tick of the 
functionality [Synchronize after load] (see Figure 5-15). After that save the setting changes by close the window 
with the ‘OK’. 

Figure 5-15. Flash Synchronisation F

unction in ‘Setup Debug Environment’ Window 

5.2.5   

High Speed Mode 

Usually the Standard clock is selected for the debug communication, which corresponds to the baud rate: Main 
clock frequency divided by 8 (500kBaud @ 4MHz Main clock). In addition to standard baud rate the high speed 
mod

e 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). 

 

 

Summary of Contents for FR81S Series

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: ...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...

Page 3: ...the Emulation System 12 4 1 Features MB2100 01 E 12 4 1 1 Checking the delivered product 12 4 1 2 Appearance and part names 12 4 1 3 General Specifications 14 4 2 Connecting and installation of MB210...

Page 4: ...4887 Rev A 4 5 2 5 High Speed Mode 28 5 3 Integration of external text editor 30 5 4 Script Files Procedure Files 31 5 5 External Text Editor Notepad 35 6 SOFTUNE Trouble Shooting 36 7 Flash Programmi...

Page 5: ...following manuals SOFTUNE Workbench Installation Manual for V6 for information about the installation procedure of the software MB2100 01 E Hardware Manual SS01 00026 1E pdf for information about the...

Page 6: ...apter lists the required hardware for the MB91460 emulation system The FR81S emulator system consists of The embedded emulator MB2100 01 E including mini USB cable for power supply Debug interface cab...

Page 7: ...for V6 and to the hardware manual of the Emulator MB2100 01 E 3 1 Notes on Win7 operating system 3 1 1 User Account Control UAC function of Windows 7 When the UAC function is enabled the USB driver w...

Page 8: ...When using different MCU families 8 16 32bit MCUs different installation paths for different propack versions for the corresponding MCU families must be applied 8bit MCU SoftuneV3 896s rev3xxxxx 16bi...

Page 9: ...Doc No 002 04887 Rev A 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...

Page 10: ...lid for this propack version C Softune6 911s revXXXXXX Press on Install button to execute installation Installation of SOFTUNE Workbench is finished For starting the tool it will be found under Start...

Page 11: ...Note 1 To install the software under Windows 7 Vista XP 2000 the user requires administration authority Please refer to chapter 3 1 On the CD image you will find a folder SOFTUNE Unpack the CD_Image...

Page 12: ...chapters the features of the MB2100 01 E embedded emulator are explained For further explanation refer to MB2100 01 E Hardware Manual SS01 00026 1E pdf 4 1 1 Checking the delivered product Before usi...

Page 13: ...the communication status of the debug interface bus The light turns on during communication 5 USB LED Indicates the communication status of the USB bus The light turns on during communication 6 READY...

Page 14: ...mmunication scheme USB 2 0 compliant USB communication speed theoretical value 480 Mbps Hi Speed 12 Mbps Full Speed Operating temperature 5 C to 40 C Operating humidity 20 to 80 no condensation Storag...

Page 15: ...e MB2100 01 E and the windows hardware wizard should start automatically Note2 The installation procedure may differ with different operating systems Do not connect to Windows Updates to search for So...

Page 16: ...3 Click Next for installing driver Maybe a window occurs for installation software please click on Continue Anyway Figure 4 6 Windows Hardware Wizard Found New Hardware 4 Windows completing the insta...

Page 17: ...k the Softune6_MB2100_20101105 zip to a local storage Copy the files Wv911e3 dll and SiDRVo dll from folder bin into your local SOFTUNE folder Softune6 Bin Copy the file Lib 911 EmlOcd_911 MHX and int...

Page 18: ...Software is available from CD image or under following link http www cypress com 16lx A specific template project can be downloaded from web site This project includes the startup code header files a...

Page 19: ...91787 prj into 91780_my_application_91787 prj Rename 91780_template_91787 wsp into 91780_my_application_91787 wsp Rename 91780_template_91787 dat into 91780_my_application_91787 dat Edit my_applicatio...

Page 20: ...shown in Figure 5 3 Figure 5 3 Project structure in SOFTUNE Workbench The top level is the Workspace itself my_application The next level contains the ABS File of the Project which contains the compi...

Page 21: ...view Header file h must not be added to project they will be included as dependencies Interrupt definition is done in the file vectors c 5 1 4 Compiling the project When finished coding the project c...

Page 22: ...ings 5 1 5 1 Fill Option By employment of the fill option unused area can be filled with a pattern There two use cases Fill RAM area with pattern for stack overflow check Fill unused ROM area for ille...

Page 23: ...ction Map from Programming Manual To fill unused Rom area in Softune Workbench following steps must be done Enter Project Setup Project tab Linker select category General and enter within Other Option...

Page 24: ...pt see below and the corresponding interrupt handler must be defined After finishing these steps the abs file will be filled with the pattern in unused ROM areas and the illegal instruction handling c...

Page 25: ...setup file Before starting a debug session some setups have to be done Click the Debug of the explore window with right mouse click and select Add Setup New with the right click Figure 5 10 Setup New...

Page 26: ...t specified e g insert a prc file which should be loaded before or after loading file Select setting item Select All 5 2 2 Start debug session Before starting the debugging with On Chip Debugger pleas...

Page 27: ...bug Abort or the button The emulator system now is being halted The execution can be continued by entering the Go Mode again Set a breakpoint or sequence by pressing right mouse click into window Brea...

Page 28: ...session enter Setup Debug Environment Debug Environment tab Load and enable the tick of the functionality Synchronize after load see Figure 5 15 After that save the setting changes by close the window...

Page 29: ...some system information is prompted In the line with text PLL clock the left value marked in red shows the real VCO clock e g 80MHz in Figure 5 16 The right value corresponds to selected frequency of...

Page 30: ...mming source code and jumping to erroneous code line by double clicking error message in the output window Following settings must be done for selection of alternate editor 1 Click on Setup Editor 2 E...

Page 31: ...rocedure Files A procedure file is a batch file which can be executed at any time while the Softune Workbench is in Debug session and can be used to control the debug session in order it follows the f...

Page 32: ...en the procedure file input parameters are P0 4000000 P1 32768 A maximum of 10 parameters are allowed P0 P9 This procedure file configures the system clocks and print out the results in the command wi...

Page 33: ...ecimal Press Click ENTER batch prc mb91570_read_clock_settings prc 4000000 32768 Press Click ENTER where batch command to execute procedure files prc path inside the Softune Workbench project were the...

Page 34: ...ure 5 19 Usage of Batch File in Command Window Batch commands are not case sensitive Then set radix hexadecimal and SET RADIX HEXADECIMAL will get the same results If a file is not found or a command...

Page 35: ...rtable software development Plugin Function list All functions within a selected source file are listed within additional window Plugin Open CTags Jump to function variable definitions and Defines by...

Page 36: ...tp www cypress com 16lx If USB driver update installed and either SOFTUNE was reinstalled or a new version was installed please do following steps Replace SiUSB dll manually from the new USB driver up...

Page 37: ...ished to the target MCU Figure 6 3 Trouble Shooting 3 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...

Page 38: ...of the board via UART A or UART B connector to the PC Start the FR Flash Programmer Select the Target Frequency and the HEX File mhx as the following picture shows Figure 7 1 FR Flash Programmer The...

Page 39: ...nd click on OK CAUTION DO NOT INTERRUPT OR CUT OFF POWER DURING ERASE When the download was not successful message on PC check the jumper settings of UART and the cable connections After a successfull...

Page 40: ...f Change 03 28 2011 MKEA Initial Release 06 09 2011 Changed contact mailing address 04 20 2012 Chapter high speed mode added 04 23 2012 Chapter Automatic Flash Synchronisation added 11 01 2012 Chapter...

Reviews: