background image

MB2146-09 – Installation Guide 

Contents 

MCU-AN-395002-E-V10 

- 4 - 

© Fujitsu Microelectronics Europe GmbH 

Contents 

REVISION HISTORY ................................................................................................. 2

 

WARRANTY AND DISCLAIMER .............................................................................. 3

 

CONTENTS ............................................................................................................... 4

 

1 INTRODUCTION ................................................................................................... 5

 

2 HARDWARE REQUIREMENTS............................................................................ 6

 

2.1

 

Devices.......................................................................................................... 6

 

3 SETTING UP THE EMULATION SYSTEM ........................................................... 7

 

3.1

 

System Configuration .................................................................................... 7

 

3.2

 

BGM Adapter................................................................................................. 8

 

3.2.1

 

Connection to the Host Machine

................................................... 8

 

3.2.2

 

Connection to the User System

..................................................... 8

 

3.2.3

 

Adapter Interface Specifications

................................................... 9

 

3.2.4

 

Tool Reset Specifications

.............................................................. 9

 

3.3

 

MCU Board.................................................................................................. 10

 

3.3.1

 

Connecting the MCU board to the Evaluation board

................. 10

 

3.3.2

 

Jumper settings and switches on MCU board

........................... 11

 

3.3.3

 

How to mount oscillator on MCU board

...................................... 12

 

3.4

 

Evaluation board.......................................................................................... 13

 

3.4.1

 

Jumper settings on Evaluation board

......................................... 13

 

4 SETTING UP THE EMULATION SOFTWARE.................................................... 14

 

4.1

 

Download Monitor Program ......................................................................... 14

 

4.2

 

Making Setup File by Setup Wizard for Emulator ........................................ 14

 

4.2.1

 

Procedure for Setting Setup File by Setup Wizard

.................... 14

 

4.2.2

 

Optimization of response speed during debugging

.................. 19

 

4.3

 

Executing Program ...................................................................................... 20

 

4.3.1

 

Run Program

................................................................................. 20

 

4.3.2

 

Setting Breakpoints

...................................................................... 21

 

4.3.3

 

Types of breakpoints and how to set

.......................................... 22

 

4.3.4

 

Trace Windows

.............................................................................. 22

 

4.3.5

 

Display format for trace data

....................................................... 23

 

4.3.6

 

Saving setup file for the Emulator

............................................... 23

 

Содержание MB2146-09

Страница 1: ...Fujitsu Microelectronics Europe Application Note MCU AN 395002 E V10 F MC 8FX FAMILY 8 BIT MICROCONTROLLER MB95100 SERIES EMULATOR HW SETUP APPLICATION NOTE ...

Страница 2: ...MB2146 09 Installation Guide Revision History MCU AN 395002 E V10 2 Fujitsu Microelectronics Europe GmbH Revision History Date Issue 2004 10 12 V1 0 M Vogel This document contains 23 pages ...

Страница 3: ...pt by the customer 2 Should a Product turn out to be defect Fujitsu Microelectronics Europe GmbH s entire liability and the customer s exclusive remedy shall be at Fujitsu Microelectronics Europe GmbH s sole discretion either return of the purchase price and the license fee or replacement of the Product or parts thereof if the Product is returned to Fujitsu Microelectronics Europe GmbH in original...

Страница 4: ...necting the MCU board to the Evaluation board 10 3 3 2 Jumper settings and switches on MCU board 11 3 3 3 How to mount oscillator on MCU board 12 3 4 Evaluation board 13 3 4 1 Jumper settings on Evaluation board 13 4 SETTING UP THE EMULATION SOFTWARE 14 4 1 Download Monitor Program 14 4 2 Making Setup File by Setup Wizard for Emulator 14 4 2 1 Procedure for Setting Setup File by Setup Wizard 14 4 ...

Страница 5: ...ectronics Europe GmbH 5 MCU AN 395002 E V10 1 Introduction This installation guide will help you setting up the MB2146 09 BGM ADAPTER with the MB2146 301 or MB2146 303 MCU Board for Fujitsu 8FX microcontroller and its usage with 8bit Softune Workbench V30L29 or higher ...

Страница 6: ... 09 BGM Adapter MB2146 301 MCU board with MB95V100 101 3V version MB2146 303 MCU board with MB95V100 103 5V version MB95FV100 101 3V evaluation chip MB95FV100 103 5V evaluation chip MB2146 401 Evaluation board Crystal oscillator 4 MHz Power supply for MB2146 401 5 VDC USB A B cable USB V1 1 Warning Do only supply 5 volts DC to MB2146 401 evaluation board Power supply is directly connected to MCU b...

Страница 7: ...395002 E V10 3 Setting up the Emulation System HARDWARE INSTALLATION 3 1 System Configuration Connect the adapter between the host machine and the user system so that the adapter can serve as an emulator under control of the host machine Figure 1 System Configuration Figure 2 Configuration overview PC Evaluation board ...

Страница 8: ...nected the first time to the host machine it is possible the operation system searches for a valid device driver This driver can be found in your Softune installation directory in subfolder Drivers for example C Softune Drivers SiUSBdB inf 3 2 2 Connection to the User System Connect the adapter to the user system Plug the user interface connector of the adapter into the adapter interface connector...

Страница 9: ...BGMA MCU Connected to the MCU s UI0 pin 8 N C Not connected 9 GND Connected to the MCU s Vss pin 10 N C Not connected BGMA in the Input output column in the table indicates the BGM adapter Figure 5 Adapter Interface Connector Pins 3 2 4 Tool Reset Specifications A tool reset is a hardware reset by the adapter to reset the entire system of the microcontroller including the BDSU module on the user s...

Страница 10: ...od 1 execute tool reset generation method 2 3 3 MCU Board For details refer the following manuals MB2146 301 Operation Manual MB2146 303 Operation Manual 3 3 1 Connecting the MCU board to the Evaluation board Align the MCU board and evaluation board facing each other then plug their mating connectors together The connectors are provided with incorrect insertion prevention keys located diagonally P...

Страница 11: ...SW1 3 to OFF 4 Set the C pin selector switch SW1 4 to OFF 5 Set the clock input selector switch SW2 to OFF 6 Set the product selector switch SW3 according to table 2 set to 0 100 pin package type for evaluation chip 7 Set the LVD selector switch SW4 to OFF middle 8 Set the power supply selector switch SW5 to 3V or 5V 9 Set the jumper plug S2 to LVD0 right 10 Set the jumper plug S1 1 2 to CB 11 Mou...

Страница 12: ...ounting socket for the main clock SC1 SC3 and another for the sub clock SC4 SC6 To distinguish them from each other the board has the MAIN CLOCK and SUB CLOCK labels printed near the main clock socket and sub clock socket respectively Mount the crystal oscillator along with two capacitors on the MCU board By use of a ceramic resonator these capacitors are nit required Figure 8 Crystal or ceramic o...

Страница 13: ...n MCU and MCU board 1 2 5V 2 3 3 3V 2 Set analogue power supply jumper plug JP5 AVCC pin is connected to VCC of evaluation board 3 Set analogue reference input jumper plug JP6 AVR pin is connected to VCC of evaluation board 4 Set analogue power supply GND jumper plug JP7 AVSS pin is connected to VSS of evaluation board 5 Set operation mode jumper plug JP8 MOD pin connected to GND run mode 6 Set LE...

Страница 14: ...be used The ICE checks the type and version of the monitor program at start of debugging and loads the monitor program automatically Figure 10 automatic download of monitor program This sample gives an example of the connection between the ICE MB2146 09 and personal computer via USB For details refer to the following manual Softune 8FX 8L First Step Guide 4 2 Making Setup File by Setup Wizard for ...

Страница 15: ... Emulation Software Fujitsu Microelectronics Europe GmbH 15 MCU AN 395002 E V10 2 Enter a name for the new setup file and click OK 3 Follow the steps in the upcoming setup wizard Click Next to go to the next window 4 Select Emulator Debugger as Debug Type ...

Страница 16: ... Guide Chapter 4 Setting up the Emulation Software MCU AN 395002 E V10 16 Fujitsu Microelectronics Europe GmbH 5 Select MB2146 09 as ICE type 6 Choose USB for Device Name 7 Enter oscillator frequency in MHz In this case 4MHz ...

Страница 17: ...N 395002 E V10 8 Here a batch file to be executed directly after start of debugger can be specified not needed in this case 9 Activate Auto load when starting debug option by checking the box Here a batch file executed before or after load can be specified not in this case 10 Choose Select All under Select setting item ...

Страница 18: ...rope GmbH 11 Click Finish to end the setup wizard and to complete setup 12 The added setup file appears in the project window The setup file which starts up when the Start debug command in the Debug menu is executed is displayed in blue Double clicking the setup file the Debugger starts up according to its setup information ...

Страница 19: ...ication speed The function increasing the operating frequency automatically is called clock up mode The default is ON at that time Also this setting is performed at the setup wizard or Setup Debug Environment Debug Environment Response speed tab Note When the clock up mode is used the operating frequency is changed automatically at breaking If the failure is caused by changing the operating freque...

Страница 20: ... 4 3 1 Run Program 1 Turn on the user power to the MB2146 401 2 The MB2146 09 POWER LED turns orange 3 Double click emulator_usb sup or however you named setup file before in the debug folder in the project window to start the emulator debugger 4 Reset MCU before executing the program 5 Run your user program 6 To stop user program click the marked button ...

Страница 21: ...the program counter PC passes a certain address or accesses data at a certain address The position where the execution of the program is stopped is called a breakpoint The user can set the code breakpoints data monitoring breakpoints and sequence breakpoints Click the left circle of the source window to set the breakpoint X The yellow line indicates the current position of the instruction pointer ...

Страница 22: ...ata breakpoint Data breakpoint is a breakpoint to stop program when the PC accesses data at a set address Read write and read write can be set as access conditions Up to two data breakpoints can be set Sequence breakpoint This breakpoint stops the program being executed when the program is executed at two specified addresses from Level 1 to Level 2 4 3 4 Trace Windows When the trace function is en...

Страница 23: ...two display formats for trace data Display in order of instruction execution Instruction Display in source lines Source Use the shortcut menu to switch between the display format for trace data No trace stamp is displayed 4 3 6 Saving setup file for the Emulator A setup file is not saved automatically until debugging is terminated When updated save the setup file Select the Save command from the F...

Отзывы: