To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts
its warranties and its liability for all products delivered free of charge (eg. software include or
header files, application examples, target boards, evaluation boards, engineering samples of IC’s
etc.), its performance and any consequential damages, on the use of the Product in accordance with
(i) the terms of the License Agreement and the Sale and Purchase Agreement under which
agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying
written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu
icroelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the
M
Product and any consequential damages in cases of unauthorised decompiling and/or reverse
engineering and/or disassembling. Note, all these products are intended and must only be used in an evaluation laboratory environment.
1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in
accordance with the accompanying written materials for a period of 90 days form the date of
receipt by the customer. Concerning the hardware components of the Product, Fujitsu
Microelectronics Europe GmbH warrants that the Product will be free from defects in material
and workmanship under use and service as specified in the accompanying written materials
for a duration of 1 year from the date of receipt 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 packing and without further defects resulting from the customer´s use or the transport.
However, this warranty is excluded if the defect has resulted from an accident not attributable
to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the
customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH.
3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH
disclaims all other warranties, whether expressed or implied, in particular, but not limited to,
warranties of merchantability and fitness for a particular purpose for which the Product is not
designated.
4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH´s
and its suppliers´ liability is restricted to intention and gross negligence.
NO LIABILITY FOR CONSEQUENTIAL DAMAGES
To the maximum extent permitted by applicable law, in no event shall Fujitsu
Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever
(including but without limitation, consequential and/or indirect damages for personal
injury, assets of substantial value, loss of profits, interruption of business operation,
loss of information, or any other monetary or pecuniary loss) arising from the use of
the Product.
Should one of the above stipulations be or become invalid and/or unenforceable, the remaining
stipulations shall stay in full effect
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.
This section describes the procedure for actual machine verification using the
emulator. The equipment used for explanation of the emulator is listed below:
•MB2146-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 board if jumper settings (JP3 & JP4) on evaluation
board are set to 5V. Higher voltage may damage MCU board, Evaluation board
and BGM adapter!
Connect the adapter to the host machine using the USB cable.
Figure 3: Connecting the USB Cable
If the BGM adapter is connected 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 on the user system.
When plugging the user interface connector, align its index mark (pin no. 1) with the
adapter interface connector's counterpart.
Table 1 shows a pin out of the adapter interface connector mounted on the user
system. Figure 5 shows the connector pins.
Table 1: Adapter Interface Connector Pin out
Connector
pin No.
1VCC
2GND
3BRSTX
4BDBMX
5BSOUT
6BEXCK
7BSIN
8N.C
9GND
10 N.C
*: “BGMA” in the “Input/output” column in the table indicates the BGM adapter.
Connector
pin name
Input/output Remarks
BGMA MCU
BGMA MCU
BGMA MCU
BGMA MCU
BGMA MCU
BGMA MCU
Connected to the MCU's Vcc pin.
Connected to the MCU's Vss pin.
Connected to the MCU's RSTX pin.
Connected to the MCU's MOD pin.
Connected to the MCU's UO0 pin.
Connected to the MCU's UCK0 pin.
Connected to the MCU's UI0 pin.
Not connected
Connected to the MCU's Vss pin.
Not connected
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 system. When both the
adapter power and microcontroller's user power are turned on, the tool reset is
canceled automatically to enable the microcontroller to be evaluated. The following
shows how to generate a tool reset and how long it remains in effect.
Tool reset generation methods and reset "L" pulse width:
1. Set the micorocontroller’s user power from OFF to ON (power-on reset). The
reset remains in effect for about 16 to 70 ms after the microcontroller’s user
power is supplied.
2. Set the adapter power from OFF to ON (by unplugging and plugging the USB
cable). The reset remains in effect for about 32 to 140 ms after the adapter
power is supplied again.
If the user system and adapter cause an uncontrollable error and the system cannot
be recovered by tool reset generation method 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. Position the boards correctly without letting the incorrect
insertion prevention keys interfere with each other and plug connectors together
completely.
Figure 6: Connection of MCU board and Evaluation board
Plug crystal oscillator or ceramic resonator into the crystal oscillator mounting
sockets (for the main clock and sub clock) on the MCU board. The MCU board has
one crystal oscillator mounting 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.
For the following steps a Softune 8FX/8L version later than V30L29 is needed.
4.1 Download Monitor Program
Using the Emulator Debugger requires downloading a monitor program to the ICE
(In-Circuit Emulator) according to the chip to 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 Emulator
4.2.1 Procedure for Setting Setup File by Setup Wizard
This section explains the procedure for making an additional setup file for the
emulator.
1. Right click on ‘Debug’ in project-window and choose [Add Setup] -> [New…].
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.
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.
4.2.2 Optimization of response speed during debugging
The communication speed of user system and MB2146-09 change by the operating
frequency of the target microcontroller. When the operating frequency is reduced,
especially in the sub clock mode, communication speed is also reduced. In this case,
optimize the communication 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 frequency, disable the
clock-up mode.
If a break occurs immediately after changing the system clock mode by the user
program, no clock up is performed during oscillations stabilization wait state. Clock
up will be performed when oscillations are stabilized.
While the Debugger executes a program, the execution of the program can be
stopped when 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 (IP).
Select [Breakpoint] from the [Debug] menu to open the [Break] dialog.
This dialog can also set breakpoints. It also provides a list of set breakpoints.
•Code breakpoint
Code breakpoint is a breakpoint to stop the program when the PC attempts to
execute a set address. For both Simulator and Emulator, the PC stop position
is a breakpoint before execution. Up to 256 code breakpoints can be set.
•Data 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 enabled, data is always sampled and stored in the trace
buffer during execution.
Trace information to be actually displayed is that on the 16 branches immediately
preceding suspension of execution.
The trace buffer is structually a ring-shaped, so data is overwritten automatically
from the beginning of the sequence buffer when the trace buffer is full.
1. Select [Trace] from the [View] menu to open the trace window.