background image

How to make on board debug V1.1 

Chapter 4 Hardware Design 

MCU-AN- 500018-E-11 – Page 7 

4  Hardware Design 

This chapter introduces the circuit of debugging interface. 

As the MB95200 series has two types of flash, i.e. single flash and dual flash, there are two 
types  of  debugging  circuits  corresponding  to  them.  This  chapter  will  introduce  the  two 
programming circuits. Make sure to choose the correct circuit in application. 

4.1  Single Flash MCU Debugging Circuit 

Figure 4-1 shows the circuit diagram of the in-system debugging interface. To design the in-
system debugging interface, four pins, UVCC_EV, GND, RSTIN and DBG, are needed. (Add 
pin RST_OUT if necessary). 

.  

 

Figure 4-1 Basic Connector Circuit for Single Flash MCU 

Component Recommendation:  

D1: VF < 0.3V when IF = 1mA. E.g. LL103A, 1SS294. 

Below is a list of functions of the interface connector. 

(1)  J1 is a 10-pin connector, used as the circuit interface.  

(2)  The write voltage (VCC = 4.5V to 5.5V) is supplied from the user system. The UVCC_EV 

and DBG pins control the PGM mode entry. 

(3)  Pin 2 of the connector connects to the GND. 

(4)  The debugger provides 10 V directly to the RSTX pin during flash erase/write operation. 

If  it  is  pulled  high  in  the  user  system,  please  consider  to  add  a  low-drop  diode  for 
separate H voltage. 

(5)  The DBG pin provides 1-line UART communication with the debugger. Serial write mode 

can be set by providing special timing of DBG and VCC pins. 

Target Board 

Summary of Contents for MB95200 Series

Page 1: ...Fujitsu Microelectronics Shanghai Co Ltd Application Note MCU AN 500018 E 11 F MC 8FX FAMILY 8 BIT MICROCONTROLLER MB95200 SERIES HOW TO MAKE ON BOARD DEBUG APPLICATION NOTE ...

Page 2: ... of copyright industrial property right or other rights of a third party caused by the use of information or drawings described in this manual 3 The contents of this manual may not be transferred or copied without the express permission of Fujitsu 4 The products contained in this manual are not intended for use with equipments which require extremely high reliability such as aerospace equipments u...

Page 3: ...ENT 5 2 1 Debug Tool 5 2 2 SOFTUNE 5 3 MCU PRODUCTS 6 4 HARDWARE DESIGN 7 4 1 Single Flash MCU Debugging Circuit 7 4 2 Dual Flash MCU Debugging Circuit 9 5 DEBUGGING OPERATION 10 5 1 Preparation before using F2MC 8L 8FX SOFTUNE 10 5 2 Debugging with F2MC 8L 8FX SOFTUNE 11 6 ADDITIONAL INFORMATION 16 7 APPENDIX 17 7 1 Tables 17 7 2 Figures 17 ...

Page 4: ...1 Introduction Debugging on the target board is a very important step in project design This document will describe how to debug on a target board The debugging interface described in this document can be used both as the in circuit debugging tool and the in circuit programming tool ...

Page 5: ... 08 E as shown in the picture below It is available in the MB95200 MCU Starter Kit PN MB2146 410A 01 E Figure 2 1 BGM Adaptor 2 2 SOFTUNE SOFTUNE is used as software development environment for programming and debugging The version currently being used is F2MC 8L 8FX SOFTUNE Workbench V30L31 as shown below in the picture It is available in the MB95200 MCU Starter Kit PN MB2146 410 01 E or download...

Page 6: ...MB95F202K MB95F262K MB95F202H MB95F262H MB95F203K MB95F263K MB95F203H MB95F263H MB95F204K MB95F264K MB95F200H Single Flash MB95F204H MB95F260H Dual Flash MB95F264H MB95F212K MB95F272K MB95F212H MB95F272H MB95F213K MB95F273K MB95F213H MB95F273H MB95F214K MB95F274K MB95F210H Single Flash MB95F214H MB95F270H Dual Flash MB95F274H MB95F222K MB95F282K MB95F222H MB95F282H MB95F223K MB95F283K MB95F223H MB...

Page 7: ... and DBG are needed Add pin RST_OUT if necessary Figure 4 1 Basic Connector Circuit for Single Flash MCU Component Recommendation D1 VF 0 3V when IF 1mA E g LL103A 1SS294 Below is a list of functions of the interface connector 1 J1 is a 10 pin connector used as the circuit interface 2 The write voltage VCC 4 5V to 5 5V is supplied from the user system The UVCC_EV and DBG pins control the PGM mode ...

Page 8: ... Connector and Reset Circuit for Single Flash MCU Pin 4 of the connector is used to connect to the reset circuit Please design a switch K1 between the reset circuit and the reset pin RSTX Make sure to cut off K1 to stop the high voltage flowing through the reset circuit during the debugging operation Turn on K1 to supply the reset circuit to the target MCU when the debugging operation is over Targ...

Page 9: ...rface of this circuit 2 The write voltage VCC 4 5V to 5 5V is supplied from the user system The UVCC_EV and DBG pins control the PGM mode entry 3 Pin 2 of the connector connects to the GND 4 The DBG pin provides 1 line UART communication with the debugger Serial write mode can be set by providing special timing of DBG and VCC pins If the MCU target need a reset circuit and please design a reset ci...

Page 10: ...n by F2MC 8L 8FX SOFTUNE 5 1 Preparation before using F2MC 8L 8FX SOFTUNE 1 Connect the BGMA to a PC 2 Connect the EV board to the BGMA Note that user can only power on the MCU after connecting the target board to the BGM adaptor 3 Power on the EV board Figure 5 1 Step 1 3 4 Open a project E g IO_LED using SOFTUNE Figure 5 2 Open the Demo Project 3 2 1 ...

Page 11: ...peration MCU AN 500018 E 11 Page 11 5 2 Debugging with F2MC 8L 8FX SOFTUNE After the 3 step preparation introduced in chapter 5 1 user can start debugging as shown below 1 Start debugging by clicking start debug in the Debug tag Figure 5 3 Start Debugging ...

Page 12: ... V1 1 Chapter 5 Debugging Operation MCU AN 500018 E 11 Page 12 2 Start Debugging Code Update Click Debug Run to start debugging or use the shortcut key as indicated in figure 5 5 Figure 5 4 Run Operation Figure 5 5 Shortcut Keys ...

Page 13: ...p menu select Setup to add delete registers in the register window Select Edit and then Register from the pull down list enter the value in Register value press OK button to store the new value to the register Figure 5 6 Register Operation 4 Memory Operation Then select View Memory to get the Memory window Address content can be modified by highlight the address and then type the new value Figure ...

Page 14: ...he symbol to be watched and press the right button of the mouse A menu pops up and selects Watch in the menu Figure 5 8 Select the Watch Window Put the mouse pointer inside the window and press the right button to display a pop up menu Select Monitoring to monitor symbols continuously Figure 5 9 Continuously Monitoring ...

Page 15: ...by mouse clicking the inside of the green circle in the code as shown in the figure below Figure 5 10 Breakpoints Setting Method 1 Another way to set breakpoints is specifying the program address or data address by selecting Debug and then Breakpoints Figure 5 11 Breakpoints Setting Method 2 Click here to set reset break point ...

Page 16: ...AN 500018 E 11 Page 16 6 Additional Information For more information on FUJITSU MB95200 products please visit following website Simplified Chinese Version http www fujitsu com cn fmc services mcu mb95200 English Version http www fujitsu com cn fmc en services mcu mb95200 ...

Page 17: ...Circuit for Single Flash MCU 8 Figure 4 3 Dual Flash MCU Debugging Circuit 9 Figure 4 4 In system Debugger Interface 9 Figure 5 1 Step 1 3 10 Figure 5 2 Open the Demo Project 10 Figure 5 3 Start Debugging 11 Figure 5 4 Run Operation 12 Figure 5 5 Shortcut Keys 12 Figure 5 6 Register Operation 13 Figure 5 7 Memory operation 13 Figure 5 8 Select the Watch Window 14 Figure 5 9 Continuously Monitoring...

Reviews: