Fujitsu MB91360 User Manual

Fujitsu Microelectronics Europe
User Guide
STARTERKIT MB91360
FMEMCU- UG-910006-13
MB91360 SERIES
EVALUATION BOARD

Revision History

STARTERKIT MB91360
Revision History
ate
D
1999 1.0 MM
First draft 2001 1.2 MM 09 July 2003 V1.3, MSt
new format, Info about MB91F361 removed
This document contains 43 pages.
ssue
I
UG-910006-13 - 2 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360

Warranty and Disclaimer

Warranty and Disclaimer
To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for STARTERKIT MB91360 and all its deliverables (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,
ujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of
F the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. Note, the STARTERKIT MB91360 and all its deliverables 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
© Fujitsu Microelectronics Europe GmbH - 3 - UG-910006-13
STARTERKIT MB91360

Contents

Contents
REVISION HISTORY............................................................................................................ 2
WARRANTY AND DISCLAIMER ......................................................................................... 3
CONTENTS .......................................................................................................................... 4
1 INTRODUCTION.............................................................................................................. 6
1.1 Abstract................................................................................................................... 6
1.2 Key Features........................................................................................................... 6
1.3 General Board Usage.............................................................................................. 7
1.4 Mode Selection ....................................................................................................... 8
2 INSTALLATION ............................................................................................................... 9
2.1 Hardware Installation............................................................................................... 9
2.2 Software Installation.............................................................................................. 10
3 GETTING STARTED...................................................................................................... 11
3.1 Softune Workbench Development Introduction...................................................... 11
3.2 Softune Workbench Debugging Introduction ......................................................... 13
4 DETAILS OF THE INCLUDED MONITOR-DEBUGGER................................................ 15
4.1 Basic debugger features........................................................................................ 15
4.2 Advanced debugger features................................................................................. 17
5 FLASH PROGRAMMING............................................................................................... 20
5.1 Generic Flash Programmer ................................................................................... 20
6 EVALUATION BOARD HARDWARE ............................................................................ 22
6.1 Board Components ............................................................................................... 22
6.2 Overview of Jumpers............................................................................................. 23
6.3 Connectors for resources and IO-signals............................................................... 25
7 APPENDIX..................................................................................................................... 29
7.1 Memory Mappings MB91F362............................................................................... 29
7.1.1 MODE 000 (Single-Chip / Monitor Mode)................................................. 29
7.1.2 MODE 001 (External Bus / User Mode) ................................................... 30
7.2 Tool options for own projects................................................................................. 31
7.3 Starterkit limitations............................................................................................... 32
7.4 Board Schematics ................................................................................................. 33
7.5 Silk Screen............................................................................................................ 36
7.6 PAL Listing .......................................................................................................... 37
UG-910006-13 - 4 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360
Contents
7.7 Development tools and accessories.................................................................. 39
.8
7
elated Documents............................................................................................. 40
R
7.9 Trouble Shooting................................................................................................. 41
7.10 Figures 43
7.11 Tables 43
© Fujitsu Microelectronics Europe GmbH - 5 - UG-910006-13
STARTERKIT MB91360
Chapter 1 Introduction

1 Introduction

1.1 Abstract
The Fujitsu MB91360 evaluation board is a stand-alone application board that makes it easy to evaluate and demonstrate almost all features of the MB91360 microcontroller series. Along with the supplied Windows-based development tools, it can be used as a system for user program developments.
The board can be configured as a target for the MB91360 emulation-system or as a stand­alone evaluation unit. When using the system in stand-alone mode, a monitor debugger is available to allow high-level debugging using Softune Workbench.
All peripheral functions are available on external pin-headers in order to design and test user applications cost- and time-effectively. For some resource functions, additional hardware is already present on the board (e.g. CAN- and UART-transceivers, LEDs, Buttons, etc).
The included Windows-based Software “Softune Workbench” is an integrated front-end for development and debugging. It allows fast development of “ANSI C”-based applications for the evaluationboard. To get started quickly, a number of example projects and templates are available.
Related documents such as “MB91360 Hardware Manual” are available and should always be used in addition to this manual (see appendix).
1.2 Key Features
< Footprint QFP208 (0.5mm pitch) + socket for MB91F362 (or emulation socket),
surrounded by headers for test-pins etc.
< 4MHz and 32kHz crystal
< DC Power-supply circuit (incl. testpins for Vcc, GND, LED and switch)
< 512kB external SRAM available for user code and data
< External 16550 UART (supports transfer-rates up to 115.2 kBaud)
< 22V10-PAL for various control functions
< Resets (“Monitor”=Start monitor mode, “User”=exec user program from external
RAM, “Flash”=exec user program from flash-ROM)
< MAX232 + DB9 (female) connectors for monitor and internal UART
< CAN tranceiver and DB9 (male) for internal CAN0
< External Interrupt 0 and 1 connected to buttons for user interaction
< Various jumpers for individual configuration
< 2x16 char LCD (on Port G)
< 8 LEDs (on Port J)
< External bus and all resources logically grouped on pin-headers
UG-910006-13 - 6 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360
Chapter 1 Introduction
< Area for extensions (2.54mm grid)
< Standard Euro-format (16x20 cm)
< Built-in monitor debugger (in Flash)
< Software includes Softune Workbench, a set of tools (e.g. flashloader) and example
projects.
1.3 General Board Usage
The MB91360 Starterkit can be used as stand-alone evaluation board or as a target system for the MB2197-01 In-Circuit-Emulator.
To use the board as stand-alone evaluation board, a pre-programmed flash device (MB91F362 with monitor software) must be present inside the QFP-208 socket. The chip will use the built-in monitor to handle communication with the PC and makes use of the 512k SRAM onboard as program-memory for user’s application. This manual explains how to use the MB91360 Starterkit as a stand-alone evaluation board.
To use the board as target for the In-Circuit-Emulator, unscrew the socket and remove the MB91F362 from the socket. Be careful not to bend any pins of the chip! Using a vacuum chip-handler is highly recommended.
Then mount the emulator probe-cable on top of the QFP-socket. Use the provided screws and make sure the cable has the right orientation. Follow the emulator set-up manual on the CD-ROM for any further steps.
Figure 1: Using the Starterkit as target board for the ICE
© Fujitsu Microelectronics Europe GmbH - 7 - UG-910006-13
STARTERKIT MB91360
Chapter 1 Introduction
1.4 Mode Selection
The board has three different “modes”, which are represented by the three reset-buttons “USER”, “FLASH” and “MONITOR”.
By default, the board will startup in the “MONITOR”-mode, which automatically invokes the debugger kernel. The board now can communicate with Softune Workbench. This means, any application can be downloaded and debugged with all provided features such as breakpoints, watches, single step etc. (see chapter “Softune Debugging Features”).
Once any code has been downloaded to SRAM, the application can also be executed directly from a “USER” reset. The application will run without any intervention from the host (e.g. breakpoints). This mode should mainly be used to test the application before programming the entire contents to flash.
If finally the application has been transferred to flash-ROM, execution can start from the flash-ROM using the “FLASH”-reset. This is the stand-alone mode for any user application. As a last step, the board can be configured to start directly in the “FLASH”-mode after power-on (by jumper JP34). This allows creating of a “real” stand-alone application.
UG-910006-13 - 8 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360
Chapter 2 Installation

2 Installation

2.1 Hardware Installation
What you’ll need :
< Host : IBM(-comp) PC with Windows 9x or Windows NT ; 1 COM-port
< Power Requirements: A power supply, capable of supporting 9-12V DC at about 500
mA. Note that the power connector must be + at the shield and - in the centre. Power supplies are available from Fujitsu.
< RS232 : An ‘extension’ (1:1) RS232 cable with DB9 m+f connectors
Connect the power-supply (9-12V DC-input) and the RS232-cable
and switch on the Starterkit.
LED D10 should light up (power-indicator)
and LED D11 flashing (reset indicator).
During the initialization phase
the red monitor LED is on.
After that, a start message from the monitor
(“91360-STARTERKIT MONITOR VxLx”)
will be displayed on the LCD and the green user LED will light up.
The board is now ready to use.
© Fujitsu Microelectronics Europe GmbH - 9 - UG-910006-13
STARTERKIT MB91360
Chapter 2 Installation
2.2 Software Installation
Insert the provided CD-ROM, browse to the installation page and select the Installation option for Softune Workbench. Follow the instructions to unpack and install Softune Workbench for FR ,as well as some example projects and additional tools for the MB91360 Starterkit. It is recommended to use the default installation path C:\Softune.
After the installation, you will find all language tools, the IDE and other system files within the directory Softune\Bin. Samples for the Starterkit can be found in the \smplFR directory. The \tools directory contains additional software tools (flashloader etc.).
Execute “FR Family Softune Workbench” from your Start-Menu.
If any errors occur during installation, remove any previous versions of Softune Workbench from your PC and retry. Make sure you have enough disk space available and you have a supported Windows OS installed. For more information see the provided installation information and last-minute information.
Refer to the getting started session (next chapter) for more details on how to use Softune Workbench for developing and debugging.
UG-910006-13 - 10 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360
Chapter 3 Getting Started

3 Getting Started

Make sure you have Softune Workbench for FR installed on your PC and the evaluation board is ready to use. For details refer to the Hardware and Software Installation chapters. This chapter uses the available examples to illustrate some features of Softune Workbench.
3.1 Softune Workbench Development Introduction
Start Softune Workbench. Select “File – Open Project” to load the first example “LEDdemo1.Prj”. In the project tree on the left side, you can open the “source”-folder which contains the source-files registered to this project. A double-click on one of the files will invoke the built-in editor, which supports syntax-highlighting, tags and various other functions.
Figure 2: Softune Workbench Editor
You may customize the editor by a right-click on the editor window.
Whenever you make changes to your source-files, you have to re-compile and link the related files to produce a valid loadmodule (ABS-file). This is done using the MAKE-function. MAKE invokes the assembler, C-compiler and linker for FR whenever necessary (only the changed files will be re-compiled).
If you wish to re-compile the entire project regardless of any changes, you can use the BUILD-function. To check for syntax-errors on a specific source-file, use the COMPILE/ASSEMBLE function.
© Fujitsu Microelectronics Europe GmbH - 11 - UG-910006-13
STARTERKIT MB91360
Chapter 3 Getting Started
These three functions are available on the button-bar or from the main menu (Project – Compile / Make / Build / Abort).
Click on MAKE or BUILD. Messages from the individual language tools will be fed into the output window at the bottom of the main screen. If the tool chain (C-compiler R Assembler R Linker) was completed successfully, the message “No Error” will appear.
If you get any errors during compilation, an appropriate message will be generated. Try this with a simple syntax-error (e.g. delete a semicolon “;” from the end of a C-line) and click on MAKE again. You will now see a message like this:
Now Making...
main.c
*** c:\softune\sample\..\leddemo1\src\main.c(43) E4062C: syntax error near `for'
------------------------------
Error detected.
------------------------------
To locate the position in the source-file, where the error has occurred, double-click on the message. The editor will open the appropriate source-file, indicating the error highlighted in red, depending on the customise settings of the editor. Correct the error and re-compile the project as explained above.
If more errors occurred, you can go through the error list step by step using the menu “Edit – Top/Previous/Next/Bottom Error” or using the appropriate buttons which have the same functions:
To get on-line help about a specific error, select the error message and press F1. In many
cases, you can get some useful hints how to solve the problem. Of cource, you can also use the HELP-menu anytime during development or debugging.
UG-910006-13 - 12 - © Fujitsu Microelectronics Europe GmbH
STARTERKIT MB91360
Chapter 3 Getting Started
3.2 Softune Workbench Debugging Introduction
Whenever you have successfully created a valid load module, you may switch from the development mode to the debugging mode of Softune Workbench.
Basically, there are 3 types of debugging systems supported :
1. The software simulator: This type of debugger is always present and does not require any special hardware extensions. The simulator will cover the FR-core features, but no peripheral functions. Therefore, you can use the simulator to verify program flow, check for dynamic errors, look at the generated assembler code and so on.
2. The monitor debugger: This debugger type requires an evaluation board like the MB91360 Starterkit connected to one of the COM-ports of your PC. Therefore, make sure you have the evaluation board connected and powered-up as described before. Explanations in this manual refer to the monitor debugger only.
3. The emulator debugger: The in-circuit-emulator (ICE) is a system, which allows a connection to any target system using a probe-cable. The appropriate system for the MB91360 series is the MB2197-01 system. More information about this system can be found on the Fujitsu Micros CD-ROM or on our website.
Which debugger is used for the actual project can be configured in the “Project – Setup – Debug” menu:
Always verify the settings before you start debugging a new project ! The current “setup” is indicated by the selected item in the “Available Setup Name” dropdown-box. The provided examples contain 3 setups (simulate, emulate and monitor). Ensure “monitor” is selected.
Click on “monitor” in the “Setup Name List” and click “Change”. A debug setup wizard will appear to guide you through the possible settings.
Make sure you are using the right COM-port number and Baudrate !
The default-settings for the monitor-debugger are fixed to :
COM-Port1 and 38400 Baud. Change the settings if necessary.
© Fujitsu Microelectronics Europe GmbH - 13 - UG-910006-13
Loading...
+ 30 hidden pages