background image

STARTERKIT MB91360 

Chapter 7 Appendix 

UG-910006-13 

- 42 - 

© Fujitsu Microelectronics Europe GmbH 

Problem 

Solution 

evaluation board fails 
(Communication errors) 
 

(see debugger introduction).  

Make sure no other programs are 

using the same COM-port on your PC. 
Close all other applications (e.g. Flash 
programmer utilities, terminals etc.) 

Use the provided RS232-cable (1:1 

extension type) to connect from your PC 
to the „Monitor COM“ connector. 

If you are using a PC without a fast 

UART (16550 type), you have to switch 
to a lower baudrate (e.g. 38400 Baud) 
and re-program the kernel according to 
this baudrate (see „flash programming“ 
section). 

The program stops at the label 
„uninitialized interrupt !“ 

Before downloading a new project to 

the evaluation board, re-initialize using 
the Monitor-Reset. This will erase all 
valid interrupt definitions from previous 
programs executed on the starterkit. 

Make sure you haven’t enabled any 

interrupts that have no interrupt handler 
(see the 

INTVECT.INC

 file) ! 

Note : Since the „Abort“-function uses 
the external interrupt 0, interrupts are 
usually enabled ! 

Hardware units such as LEDs, 
user buttons, UART0 or CAN are 
not working. 

Make sure you have enabled these 

units on the evaluation board using the 
appropriate jumpers (e.g. JP13 for 
LEDs). See the provided examples and 
the hardware manual for information on 
how to control the peripherals. 

CAN devices do not respond 

Adjust the potentiometer RV2 (slew 

rate) according to the line. 

Table 5: Trouble Shooting 

For more information see the Softune Workbench on-line help, the provided manuals, last 
minute information and additional or updated documentation on our web-site. 

 

Summary of Contents for MB91360 SERIES

Page 1: ...Fujitsu Microelectronics Europe User Guide FMEMCU UG 910006 13 MB91360 SERIES EVALUATION BOARD STARTERKIT MB91360 USER GUIDE ...

Page 2: ...vision History UG 910006 13 2 Fujitsu Microelectronics Europe GmbH Revision History Date Issue 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 ...

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

Page 4: ...ftune 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 Si...

Page 5: ...STARTERKIT MB91360 Contents Fujitsu Microelectronics Europe GmbH 5 UG 910006 13 7 7 Development tools and accessories 39 7 8 Related Documents 40 7 9 Trouble Shooting 41 7 10 Figures 43 7 11 Tables 43 ...

Page 6: ...kbench 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 ...

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

Page 8: ...es 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 f...

Page 9: ...e 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 monit...

Page 10: ... 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 h...

Page 11: ...older 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...

Page 12: ...ll 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 comp...

Page 13: ...nnected 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 websit...

Page 14: ... evaluation board is powered on ready to use and the RS232 cable is connected properly Also see the trouble shooting section in the appendix After starting the debugger additional windows will appear which contain locate arrows for each possible source line the original source code Figure 3 SWB Debugging window breakpoint indicators and the assembler code in mixed view The actual program position ...

Page 15: ...re not disabled during a continuous CALL RETURN execution STEP OUT Executes the program continuously to the parent function until RETURN Interrupts are enabled Note that debug information is required for this function EXECUTE UNTIL CURSOR Automatically sets a breakpoint at the actual cursor position and executes continuously until this breakpoint which will be deleted afterwards Each valid code li...

Page 16: ... external interrupt All examples provided use the USER0 button for this purpose If you wish to use the USER0 button for Abort make sure you have the ABORT option in STARTUP ASM enabled define ABORT 1 The USER0 button is an external interrupt source which will be initialized at the highest priority In the interrupt service routine located in STARTUP ASM you will find a software trap INTE which will...

Page 17: ... WINDOW Displays the current variables to watch Double click on any variable in your code then specify watch in context menu to add to watch window All listed variables in a watch window can be displayed in any number format Use Edit to directly change the contents Example Open the Leddemo1 Project and execute until you see the first LED pattern Then double click on PDRJ in the debugger window and...

Page 18: ...before DEBUG LOAD TARGET FILE Starts a new download of the current load module ABS file Usually this function will be executed automatically after starting the debugger defined in debug settings see Project Setup Debug However this function can be useful to re initialize the debugger for the current debug session VIEW SYMBOL This function displays all global symbols of the current project Informat...

Page 19: ...imple text files with the extension PRC and can be created by the Softune Workbench editor or any other text editor To execute a procedure file use the command window menu or the file open menu during debugging Procedure files can be very helpful to automatically configure the debug environment perform automated tests e g when a new C module has to be tested or to enhance basic emulator functions ...

Page 20: ... Therefore it should be used to re program the monitor kernel On the CD ROM you will find some kernel files MHX format which are fixed for various baud rates Make sure you have the latest version available The tool can also be used to program any applications directly without the possibility to have any debugging functions later on In this case the evaluation board will act as a target system only...

Page 21: ...o generate MHX files For kernel updates select a MONxxx MHX file xxx is the Starterkit baudrate E g MON115 MHX is the kernel for 115200 Baud 4 Specify the COM port and the desired baud rate for programming 5 Click on Automatic Mode and press monitor reset on the Starterkit The programming sequence will be executed automatically CAUTION DO NOT INTERRUPT THE FLASH PROGRAMMING OR CUT OFF THE POWER DU...

Page 22: ...tor UART and RS232 connector DC input On Off 512k SRAM Oscillators PAL User buttons on external Ints 0 1 Mode LCD Prototyping CAN line slew rate CAN tranceiver and RS232 driver and connector User LEDs on Port J 5V Regulator LCD on Port JP15 PWM and Pulsgen outputs JP25 Addressbus and JP24 Databus JP16 Analog Ports AD DA JP20 INTs ICU and JP14 Serial Interfaces Power on LED Reset Circuit and Reset ...

Page 23: ... 1 2 closed Left JP4 LPF for 32kHz Oscillator Vcc Enabled 2 3 closed Up JP5 Clock Select Pin Vcc 4 MHz 2 3 closed Up JP6 Hardware Standby Pin Vcc Disabled 2 3 closed Up JP7 Select Source MD0 Vcc PAL 2 3 closed Up JP8 10 Test Mode Enable Open no test mode Open JP13 LED enable Closed LEDs active Closed JP17 19 Analog Supply Voltage Closed A D active Closed JP22 23 Driver Supply Voltage Closed Driver...

Page 24: ...s JP14 Serial communication pins UART0 3 CAN0 2 JP15 Puls generator outputs 0 7 Stepper motor PWM outputs 0 4 JP16 A D inputs 0 7 Alarm comp Input Sound gen Output D A outputs 0 1 JP20 External Interrupts 0 7 Input Capture 0 3 Output Compare 0 3 I2 C JP25 Adressbus A0 A20 and Bus control signals JP24 Databus D0 D31 Table 2 Grouped jumpers on MB91360 Starterkit ...

Page 25: ... manual for details on the resource functions JP16 Analog Inputs ADC Analog Outputs DAC Sound Generator Alarm Comparator JP20 External Interrupts Input Capture Units Output Compare Units I C Interface JP14 UARTs Sync serial interfaces CANs JP15 Stepper Motor Drivers PWMs Puls Generators The available resource pins can also be used as general purpose IO ports using the Port function registers PFRx ...

Page 26: ...nput Channel 5 072 AN6 PH6 ADC Input Channel 6 073 AN7 PH7 ADC Input Channel 7 074 AVSS Analog Reference Low 077 ALARM Alarm Comparator Input 080 ATGX PI3 ADC Trigger Input 126 SGO PM0 Sound Generator Output 127 SGA PM1 Sound Generator Amplitude 075 DA0 DAC Output Channel 0 076 DA1 DAC Output Channel 1 JP20 094 INT0 PK0 Ext Interrupt 0 095 INT1 PK1 Ext Interrupt 1 096 INT2 PK2 Ext Interrupt 2 097 ...

Page 27: ...P3 CAN 1 RX 150 TX2 PP4 CAN 2 TX 151 RX2 PP5 CAN 2 RX 152 SIN0 PQ0 UART 0 Input 153 SOT0 PQ1 UART 0 Output 154 SIN1 PQ2 UART 1 Input 155 SOT1 PQ3 UART 1 Output 156 SIN2 PQ4 UART 2 Input 157 SOT2 PQ5 UART 2 Output 130 SOT4 PN0 SIO Output 131 SIN4 PN1 SIO Input 132 SCK4 PN2 SIO Clock 133 SIN3 PN3 SIO Input 134 SOT3 PN4 SIO Output 135 SCK3 PN5 SIO Clock JP15 136 OCPA0 PO0 PPG Output 0 137 OCPA1 PO1 P...

Page 28: ...2P0 PR2 SMC 0 165 PWM2M0 PR3 SMC 0 166 HVDD SMC Driver Vdd 167 PWM1P1 PR4 SMC 1 168 PWM1M1 PR5 SMC 1 169 PWM2P1 PR6 SMC 1 170 PWM2M1 PR7 SMC 1 171 HVSS SMC Driver Vss 172 PWM1P2 PS0 SMC 2 173 PWM1M2 PS1 SMC 2 174 PWM2P2 PS2 SMC 2 175 PWM2M2 PS3 SMC 2 177 PWM1P3 PS4 SMC 3 178 PWM1M3 PS5 SMC 3 179 PWM2P3 PS6 SMC 3 180 PWM2M3 PS7 SMC 3 Table 3 Overview of available resource functions and IO ports on ...

Page 29: ...endix Fujitsu Microelectronics Europe GmbH 29 UG 910006 13 7 Appendix 7 1 Memory Mappings MB91F362 7 1 1 MODE 000 Single Chip Monitor Mode MB91F362 Memory Map Recommended Mappings Figure 5 Memory Mapping Single Chip Mode Monitor Mode ...

Page 30: ...IT MB91360 Chapter 7 Appendix UG 910006 13 30 Fujitsu Microelectronics Europe GmbH 7 1 2 MODE 001 External Bus User Mode MB91F362 Memory Map Recommended Mappings Figure 6 Memory Mapping External Mode User Mode ...

Page 31: ...ssigned to the internal RAM In addition certain Flash sectors have special meanings such as the boot sector application always starts from 0F4000 or the kernel of the debugger stored from 0F0000 Therefore make sure the following memory map is applied Memory Type Used for Area Sections Data RAM Stack 3D000 3DFFF STACK Data RAM Variables 3E000 3FFFF DATA INIT Flash ROM User Code 080000 0EFFFF CODE F...

Page 32: ...unctions which are reserved for the MB91360 Starterkit Flash ROM area 0F0000 0F3FFF reserved for Monitor kernel Port G upper ADC inputs used for LCD and mode input Security Vector used to call the kernel in Monitor mode External Interrupt 0 used for Abort function Chip selects 0 2 and 7 used for MCU and board hardware External memory space 200000 3FFFFF used for board hardware ...

Page 33: ...STARTERKIT MB91360 Chapter 7 Appendix Fujitsu Microelectronics Europe GmbH 33 UG 910006 13 7 4 Board Schematics ...

Page 34: ...STARTERKIT MB91360 Chapter 7 Appendix UG 910006 13 34 Fujitsu Microelectronics Europe GmbH ...

Page 35: ...STARTERKIT MB91360 Chapter 7 Appendix Fujitsu Microelectronics Europe GmbH 35 UG 910006 13 ...

Page 36: ...STARTERKIT MB91360 Chapter 7 Appendix UG 910006 13 36 Fujitsu Microelectronics Europe GmbH 7 5 Silk Screen ...

Page 37: ... 2 DEFAULT COMBINATORIAL INPUT PIN 3 AUXIN COMBINATORIAL INPUT PIN 4 A19 COMBINATORIAL INPUT PIN 5 A20 COMBINATORIAL INPUT PIN 6 CS0 COMBINATORIAL INPUT PIN 7 CS2 COMBINATORIAL INPUT PIN 8 MONRES COMBINATORIAL INPUT PIN 9 FLASHRES COMBINATORIAL INPUT PIN 10 USERRES COMBINATORIAL INPUT PIN 11 DTR COMBINATORIAL INPUT PIN 13 UNUSED1 COMBINATORIAL PIN 12 GND PIN 14 UARTRES COMBINATORIAL OUTPUT PIN 15 ...

Page 38: ...if LEDGRN USERRES FLASHRES MONRES User Reset button pressed A20 A19 CS2 or Remote User reset request LEDYEL LEDRED hold condition LEDYEL is indicating the Flash Reset state if LEDYEL USERRES FLASHRES MONRES Flash Reset button pressed PONFLAG DEFAULT or Power on Default Mode Flash LEDGRN LEDRED hold condition MODE LEDGRN Mode Pin MD0 is 1 if User Reset state otherwise 0 PG5 LEDYEL Flash Ind Pin is ...

Page 39: ...ols for MB91360 Series Emulation Main Unit MB2197 01 Emulation Board MB2197 120 Emulation Header Probe MB2197 127 Evaluation Device MB91FV360GCR Evaluation Board StarterkitMB91360 In Circuit Emulation Tools for MB91100 Series Emulation Main Unit MB2197 01 RAM Stack FR RAM STACK1 100P M06 Header MB2197 111 Header MB2197 112 Header MB2197 115 Evaluation Device MB91V10x A CR Evaluation Board Starterk...

Page 40: ...ual 2 MB91F36X Datasheet General Specification 3 FR Family C Compiler Manual 4 FR Family Instruction Manual 5 FR Family Assembler Manual 6 FR Family Simulator Manual 7 FR Family Emulator Manual 8 FR Family Linkage Kit Manual 9 FR Family Softune Workbench Manual Note All documents are available from the provided CD ROM Fujitsu s Microcontroller CD ROMs or from our web site ...

Page 41: ...y LED D11 Reset should flash If D11 lights up permantantly the voltage is too low below 4 25V Increase the voltage to solve the problem JP33 DTR reset should be left open This option allows to reset the board from a connected PC using the DTR line not used by Softune WB Remove all user extensions on the board to avoid shorts or leakage currents After power on the initial monitor message is not sho...

Page 42: ...the evaluation board re initialize using the Monitor Reset This will erase all valid interrupt definitions from previous programs executed on the starterkit Make sure you haven t enabled any interrupts that have no interrupt handler see the INTVECT INC file Note Since the Abort function uses the external interrupt 0 interrupts are usually enabled Hardware units such as LEDs user buttons UART0 or C...

Page 43: ... SWB Debugging window 14 Figure 4 MB91360 Flash Programmer 20 Figure 5 Memory Mapping Single Chip Mode Monitor Mode 29 Figure 6 Memory Mapping External Mode User Mode 30 7 11 Tables Table 1 Selection jumpers on MB91360 Starterkit 23 Table 2 Grouped jumpers on MB91360 Starterkit 24 Table 3 Overview of available resource functions and IO ports on jumpers 28 Table 4 Memory Map 31 Table 5 Trouble Shoo...

Reviews: