background image

 
Document No.  U18371EJ1V0UM00 (1st edition) 
Date Published  November 2006 NS  CP(K) 

Printed in Japan 

User’s Manual 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 
 
 
 
 
 
 

QB-MINI2 

 

On-Chip Debug Emulator with Programming 
Function 
 

Target Devices 
    V850 Microcontrollers 
    78K0R Microcontrollers 
    78K0 Microcontrollers 
    78K0S Microcontrollers 

© NEC Electronics Corporation 2006 

Summary of Contents for QB-MINI2

Page 1: ...ed November 2006 NS CP K Printed in Japan User s Manual QB MINI2 On Chip Debug Emulator with Programming Function Target Devices V850 Microcontrollers 78K0R Microcontrollers 78K0 Microcontrollers 78K0...

Page 2: ...User s Manual U18371EJ1V0UM 2 MEMO...

Page 3: ...le NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated enti...

Page 4: ...ere is a potential difference between the GND of this product and GND of the target system If the connectors or cables are plugged unplugged while this product is in the power on state If excessive lo...

Page 5: ...his Manual It is assumed that the readers of this manual have general knowledge in the fields of electrical engineering logic circuits and microcontrollers This manual describes the basic setup proced...

Page 6: ...rked as such Documents Related to Development Tools User s Manuals Document Name Document Number QB MINI2 On Chip Debug Emulator with Programming Function This document ID850QB Ver 3 20 Integrated Deb...

Page 7: ...configuration 28 3 2 3 System startup procedure 29 3 2 4 System shutdown procedure 31 3 2 5 Securing of user resources and setting of security ID 32 3 2 6 Cautions on debugging 38 3 3 Flash Programmin...

Page 8: ...on 112 5 2 3 System startup procedure 113 5 2 4 System shutdown procedure 115 5 2 5 Securing of user resources 116 5 2 6 Debugging of alternate functions of X1 and X2 pins 120 5 2 7 Cautions on debugg...

Page 9: ...ation 155 6 3 3 System startup procedure 156 6 3 4 Usage examples 158 6 3 5 System shutdown procedure 164 6 3 6 Cautions on flash programming 164 CHAPTER 7 SELF TESTING 165 7 1 System Configuration 16...

Page 10: ...ams to the on chip flash memory of microcontrollers USB connection Can be connected to the host machine via USB interface 2 0 or 1 1 Since MINICUBE2 operates on power supplied via USB an external powe...

Page 11: ...Target system design 5 1 Target System Design On chip debugging 5 2 On Chip Debugging 78K0S Flash memory programming 5 3 Flash Programming CHAPTER 6 HOW TO USE MINICUBE2 WITH 78K0R MICROCONTROLLER Ta...

Page 12: ...0 to 80 RH no condensation Storage environment conditions Temperature 15 to 60 C Humidity 10 to 80 RH no condensation External dimensions 48 48 13 9 mm MINICUBE2 Weight Approximately 40 g Target host...

Page 13: ...r will gain a basic grasp of MINICUBE2 and the self check board that will facilitate reading of subsequent chapters While reading this chapter also check if the hardware has a defect 2 1 Names of Supp...

Page 14: ...rocontroller as target device factory setting 2 Power select switch This switch is used to set the power supplied to the target system Table 2 2 describes the setting details This switch is set to 3 a...

Page 15: ...started and CPU is in the break mode Blue Flashing A debugger for V850 microcontrollers has been started and the CPU is running or a program is being downloaded Glowing A debugger for 78K0 microcontro...

Page 16: ...re an oscillation circuit can be mounted on the 14 pin DIP socket A parts board such as the 160 90 314 manufactured by PRECI DIP can be used with this socket to configure oscillation circuit 2 CN1 Thi...

Page 17: ...he flash memory embedded in a device Erasing writing and verifying the program can be performed on board with the device Read the following chapters if you are using MINICUBE2 for the first time with...

Page 18: ...he name of the pin for the programmer and this pin might not be described as an alternate function pin in the user s manual of the device In such a case connect the relevant port that is assigned to t...

Page 19: ...IN OUT Note Description RESET_IN IN Pin used to input reset signal from the target system RESET_OUT OUT Pin used to output reset signal to the target device CLK OUT Pin used to output clock signal to...

Page 20: ...o the following table and see the relevant circuit connection example Caution The constants described in the circuit connection example are reference values If you perform flash programming aiming at...

Page 21: ...Connect TxD transmit side of the target device to RxD receive side of the target connector and TxD transmit side of the target connector to RxD receive side of the target device Read the serial inter...

Page 22: ...by a dashed line is not required when only flash programming is performed 6 The circuit enclosed by a dashed line is designed for flash self programming which controls the FLMD0 pin via ports Use the...

Page 23: ...refore the reset signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE2 do...

Page 24: ...t device VDD VDD R2 Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 k or more Pull up resistor R2 is not required if the buffer of the reset circuit consists of CMOS output...

Page 25: ...signal Target connector Jumper 1 2 3 Jumper setting When MINICUBE2 is connected 1 2 shorted When MINICUBE2 is not connected 2 3 shorted 3 Resetting the target device by power on clear POC only Figure...

Page 26: ...002PL straight type made by Sumitomo 3M Ltd Compact connectors and loose wire cables are also available as options For more information on these products access the MINICUBE2 information site URL http...

Page 27: ...ntication Download Available Execution Go Go Start from Here Come Here Restart step execution Hardware break 2 points Note 1 commonly used by execution and access ROM area 4 points Software break RAM...

Page 28: ...uration for On Chip Debugging 1 3 4 5 2 Target system 6 1 3 4 5 2 Target system 6 1 Host machine Products with USB ports 2 Software Includes the debugger USB driver device files and so on Download the...

Page 29: ...cable is connected Table 3 5 Setting of Power Select Switch Setting Description 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T...

Page 30: ...al for the debugger If the debugger does not start normally or the operation is unstable the possible causes may be the following Communication error between MINICUBE2 and target system Whether commun...

Page 31: ...rved the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not necess...

Page 32: ...bytes 0x0 reset vector Internal ROM space 0x60 interrupt vector for debugging 0x70 security ID area 2 KB 10 bytes 4 bytes 4 bytes 10 to 16 bytes Internal RAM space Internal ROM end address Internal R...

Page 33: ...s to debug monitor program at 0x0 0x2 nop 0x4 xxxx 0x4 xxxx When two 0xFFFF are successively placed from address 0 already erased device Before writing After writing 0x0 0xFFFF Jumps to debug monitor...

Page 34: ...examples for securing the area using the NEC Electronics compiler CA850 Add the assemble source file and link directive code as shown below Assemble source Add the following code as an assemble source...

Page 35: ...the user program Interrupt mask register When UART is used do not mask receive end interrupts Note When CSI H S is used do not mask transmit end interrupts The following shows an example Example Sett...

Page 36: ...ation may be performed d Security ID setting This setting is required to prevent the memory from being read by an unauthorized person Embed a security ID at addresses 0x70 to 0x79 in the internal flas...

Page 37: ...J1V0UM 37 Address Value 7 0 0x70 0x12 0x71 0x34 0x72 0x56 0x73 0x78 0x74 0x9A 0x75 0xBC 0x76 0xDE 0x77 0xF1 0x78 0x23 0x79 0xD4 If NEC Electronics compiler CA850 is used the security ID can be set usi...

Page 38: ...ped 3 When pseudo real time RAM monitor RRM function and DMM function do not operate The pseudo RRM function and DMM function do not operate if one of the following conditions is satisfied Interrupts...

Page 39: ...iguration dialog box 8 Flash self programming If a space where the debug monitor program is allocated is rewritten by flash self programming the debugger can no longer operate normally 9 Emulation of...

Page 40: ...system can be used Power supply 3 or 5 V maximum current rating 100 mA Acquisition of device specific information Parameter file for NEC Electronics PG FP4 is used Security flag setting Available Stan...

Page 41: ...is supplied from MINICUBE2 to the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T Power supply of the target system is used MINICUBE2 detects the power for the target...

Page 42: ...aution Do not change the switch setting while the USB cable is connected Figure 3 16 Connecting MINICUBE2 to Host Machine MINICUBE2 USB cable Host machine MINICUBE2 USB cable Host machine 5 Applying p...

Page 43: ...ramming GUI Operation User s Manual The conditions used for a series of operations in this section are as follows Target system Target device PD70F3732 Power supply voltage 5 V supplied from MINICUBE2...

Page 44: ...below 1 Click the Device menu on the menu bar and then click Setup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 3 17 Standard Tab of Device Setup Dialog Box 3 Click...

Page 45: ...e PD70F3732 can use the Get Security Settings command so click the OK button to return to the main window click the Device menu and then click Get Security Settings After execution of this command the...

Page 46: ...settings areas in accordance with your programming environment The following figure shows an example Figure 3 21 Advanced Tab of Device Setup Dialog Box 7 By clicking the OK button the programming env...

Page 47: ...rogram file following the steps 1 to 3 described below 1 Click the File menu on the menu bar and then click Load 2 The program file select dialog box appears Figure 3 23 Program File Select Dialog Box...

Page 48: ...e EPV The Blank Check Erase if the flash memory in the target device is not blank Program Verify and Security commands are executed for the target device sequentially The mode LED on MINICUBE2 flashes...

Page 49: ...target system This step is not necessary if the power select switch is set to 3 or 5 3 Unplugging the USB cable Unplug the USB cable from MINICUBE2 or the host machine When the power select switch is...

Page 50: ...he flash memory embedded in a device Erasing writing and verifying the program can be performed on board with the device Read the following chapters if you are using MINICUBE2 for the first time with...

Page 51: ...erface for On Chip Debugging Target system Host machine MINICUBE2 Target device USB communication Communication via X1 X2 or OCD1A OCD1B Communication circuits must be mounted on the target system 78K...

Page 52: ...Table 4 2 Pin Functions Pin Name IN OUT Note 1 Description RESET_IN IN Pin used to input reset signal from the target system RESET_OUT OUT Pin used to output reset signal to the target device CLK OUT...

Page 53: ...Signal names in MINICUBE2 Table 4 4 Pin Functions Pin Name IN OUT Note Description RESET_IN IN Pin used to input reset signal to the target system RESET_OUT OUT Pin used to output reset signal to the...

Page 54: ...ype of circuit connection can be used with on chip debugging emulator QB 78K0MINI 3 Used to perform flash programming Table 4 5 Corresponding Circuit Connection Diagrams Usage Connector Used Programmi...

Page 55: ...Notes 1 Connect TxD transmit side of the target device to RxD receive side of the target connector and TxD transmit side of the target connector to RxD receive side of the target device 2 During debug...

Page 56: ...nect TxD transmit side of the target device to RxD receive side of the target connector and TxD transmit side of the target connector to RxD receive side of the target device 2 During debugging the cl...

Page 57: ...resistance 100 or less For details refer to 4 1 3 Connection of reset pin 5 The circuit enclosed by a dashed line is designed for flash self programming which controls the FLMD0 pin via ports Use the...

Page 58: ...RxD receive side of the target connector and TxD transmit side of the target connector to RxD receive side of the target device 2 During debugging the clock mounted on the 78K0 OCD board can be suppli...

Page 59: ...ce to RxD receive side of the target connector and TxD transmit side of the target connector to RxD receive side of the target device 2 During debugging the clock mounted on the 78K0 OCD board can be...

Page 60: ...put from the N ch open drain buffer output resistance 100 or less For details refer to 4 1 3 Connection of reset pin 5 The circuit enclosed by a dashed line is designed for flash self programming whic...

Page 61: ...k VDD VDD VDD Notes 1 This connection is designed assuming that the RESET signal is output from the N ch open drain buffer output resistance 100 or less For details refer to 4 1 3 Connection of reset...

Page 62: ...he N ch open drain buffer output resistance 100 or less For details refer to 4 1 3 Connection of reset pin 2 OCD1A OCD1B may be a different name such as P31 depending on the device used Check the pin...

Page 63: ...used CLK can be used as a pin to feed the external clock 4 8 16 MHz to the target device For the connection refer to the user s manual for the target device 4 If FLMD1 pin is provided on the target d...

Page 64: ...ection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE2 do not conflict Select one of...

Page 65: ...vice VDD VDD R2 Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 k or more Pull up resistor R2 is not required if the buffer of the reset circuit consists of CMOS output The...

Page 66: ...A LOW Side B 1 to 10 k A B RESET_OUT RESET_IN FLMD0Note Target device _RESET Reset connector RESET signal Selector Target connector VDD 1 to 10 k HI Side A LOW Side B 1 to 10 k A B RESET_OUT RESET_IN...

Page 67: ...T Reset connector RESET signal Target connector Jumper 1 2 3 RESET_OUT RESET_IN Target device _RESET Reset connector RESET signal Target connector Jumper 1 2 3 Jumper setting When MINICUBE2 is connect...

Page 68: ...the reset pin RESET_OUT is valid only when the debugger is running or during flash programming The operation is not guaranteed if the power to the target system is shut down during debugging Note that...

Page 69: ...2 OCD1B pins from the target connector in order to ensure normal clock oscillation When debugging remove capacitors feedback resistors and other elements for the resonator in order to prevent signal d...

Page 70: ...ight angle type made by Sumitomo 3M Ltd 7616 6002PL 16 pin straight type made by Sumitomo 3M Ltd Compact connectors and loose wire cables are also available as options For more information on these pr...

Page 71: ...ions of the debugger used Table 4 6 Debug Functions Functions Specifications Security 10 byte ID code authentication Download Available Execution Go Go Start from Here Come Here Restart step execution...

Page 72: ...7 2 Target system or 6 5 8 1 3 4 7 2 Target system or 6 5 8 1 Host machine Products with USB ports 2 Software Includes the debugger USB driver device files and so on Download these NEC Electronics sof...

Page 73: ...the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T Power supply of the target system is used MINICUBE2 detects the power for the target system The detected power is al...

Page 74: ...tem MINICUBE2 10 16 pin target cable 78K0 OCD board Target system MINICUBE2 10 16 pin target cable 78K0 OCD board Remark Connect the 78K0 OCD board and the 10 16 pin target cable as shown below Do not...

Page 75: ...fter this step refer to the user s manual for the debugger If the debugger does not start normally or the operation is unstable the possible causes may be the following Communication error between MIN...

Page 76: ...rved the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not necess...

Page 77: ...e Main Clock in the Configuration dialog box of the debugger The usable frequency is the same as that of the target device Refer to a when using the oscillator or b when mounting an oscillator The clo...

Page 78: ...s the appearance after mounting the oscillator 160 90 314 made by PRECI DIP can be used as the parts board to be mounted in the socket Figure 4 27 78K0 OCD Board Mounting Diagram and CLK1 Equivalent C...

Page 79: ...target system Remove the oscillator or oscillation circuit on the 78K0 OCD board System is automatically selected as the Main Clock in the Configuration dialog box of the debugger The clock on the ta...

Page 80: ...re 4 29 Reserved Area Used by MINICUBE2 256 bytes 10 bytes 2 bytes 257 bytes 1 byte 2 bytes 85H c Security ID area 190H f Pseudo RRM area 8FH a Debug monitor area 84H b Option byte area 7EH e Software...

Page 81: ...rmed How to secure areas When using NEC Electronics compiler CC78K0 addresses 0x02 0x03 and area starting from address can be secured for debug monitoring using the linker option go Figure 4 28 shows...

Page 82: ...am Refer to the following and add a code to the assembler source Example When setting 0x02 SSS CSEG AT 084H SSS is an arbitrary symbol name eight characters or less DB 2H Caution If address 0x84 is ov...

Page 83: ...es depending on the stack increase and decrease Figure 4 32 illustrates the case where the stack area is increased when the internal high speed RAM starts from 0xFB00 Figure 4 32 Variation of Address...

Page 84: ...0xFB10 to 0xFEDF Note Note Because the area 0xFEDF is used by MINICUBE2 during a break set the initial value of the stack pointer to 0xFEDF not 0xFEE0 when the initial value is set to 0xFEDF the actu...

Page 85: ...etting When Pseudo RAM Monitor and Software Break Are Used How to secure internal extended RAM area Refer to the following and secure the area If this area does not exist in the target device pseudo r...

Page 86: ...Fill dialog box 3 Manipulation in Memory Copy dialog box 4 Manipulation to change memory in Memory window 5 Online assembly in Assemble window 6 Settings when using software breaks 7 Program executio...

Page 87: ...tion for stack pointer initialization failure This function executes a break when an interrupt occurs or a PUSH instruction is executed while the initial setting has not been made for the stack pointe...

Page 88: ...s executed during a standby state the standby state is released 3 The program temporarily operates with PCC 0 during a break This break time is extended when the system clock frequency is low or when...

Page 89: ...10 4 440 s 110 s 16 bytes 110 110 16 1 870 s 110 s A approx 110 s Pseudo real time RAM monitor function processing in progress during a break RRM data collection and RRM data transmission B approx 1 m...

Page 90: ...m can be used Power supply 3 or 5 V maximum current rating 100 mA Acquisition of device specific information Parameter file for NEC Electronics PG FP4 is used Security flag setting Available Standalon...

Page 91: ...n 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T Power supply of the target system is used MINICUBE2 detects the power for the...

Page 92: ...aution Do not change the switch setting while the USB cable is connected Figure 4 36 Connecting MINICUBE2 to Host Machine MINICUBE2 USB cable Host machine MINICUBE2 USB cable Host machine 5 Applying p...

Page 93: ...ions refer to the QB Programmer Programming GUI Operation User s Manual The conditions used for a series of operations in this section are as follows Target system Target device PD78F0547D Power suppl...

Page 94: ...below 1 Click the Device menu on the menu bar and then click Setup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 4 37 Standard Tab of Device Setup Dialog Box 3 Click...

Page 95: ...cordance with your programming environment The following figure shows an example Figure 4 39 Standard Tab of Device Setup Dialog Box After Setting 5 Switch to the Advanced tab Set the items in the Com...

Page 96: ...CROCONTROLLER User s Manual U18371EJ1V0UM 96 6 By clicking the OK button the programming environment is set and the Device Setup dialog box is closed The main window appears as follows Figure 4 41 Com...

Page 97: ...rogram file following the steps 1 to 3 described below 1 Click the File menu on the menu bar and then click Load 2 The program file select dialog box appears Figure 4 42 Program File Select Dialog Box...

Page 98: ...e EPV The Blank Check Erase if the flash memory in the target device is not blank Program Verify and Security commands are executed for the target device sequentially The mode LED on MINICUBE2 flashes...

Page 99: ...target system This step is not necessary if the power select switch is set to 3 or 5 3 Unplugging the USB cable Unplug the USB cable from MINICUBE2 or the host machine When the power select switch is...

Page 100: ...thod to write a program to the flash memory embedded in a device Erasing and writing the program can be performed on board with the device Read the following chapters if you are using MINICUBE2 for th...

Page 101: ...erial communication with the target device on the target system For this communication communication circuits must be mounted on the target system Refer to this section to design circuits appropriatel...

Page 102: ...gnal names in MINICUBE2 Table 5 2 Pin Functions Pin Name IN OUT Note Description RESET_IN IN Pin used to input reset signal from the target system RESET_OUT OUT Pin used to output reset signal to the...

Page 103: ...l DATA CLK CLK DATA _RESETNote 1 X2Note 2 X1Note 2 INTPNote 5 VDD 3 to 10 k VDD 1 k 10 k 1 to 10 k VDD 1 k Notes 1 The RESET pin is used to download the monitor program at debugger startup or to imple...

Page 104: ...herefore the reset signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE2...

Page 105: ...t device VDD VDD R2 Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 k or more Pull up resistor R2 is not required if the buffer of the reset circuit consists of CMOS output...

Page 106: ...T signal Target connector Jumper 1 2 3 Jumper setting When MINICUBE2 is connected 1 2 shorted When MINICUBE2 is not connected 2 3 shorted 3 Resetting the target device by power on clear POC only Figur...

Page 107: ...Circuit Connection See Figure 5 7 2 MINICUBE2 is used only for programming not for debugging See Figure 5 8 3 MINICUBE2 is used for debugging and debugging of the INTP pin is performed only with a re...

Page 108: ...evice External device 1 2 3 Jumper Target connector I O to INTP INTP 12 INTP VDD 1 k Target device External device 1 2 3 Jumper Jumper setting When debugging with MINICUBE2 connected 1 2 shorted Other...

Page 109: ...s Figure 5 10 Circuit Connection for the Case Where X1 and X2 Pins Are Not Used in Target System Target connector X2 3 X2 VDD 3 to 10 k Target device X1 X1 9 1 to 10 k Target connector X2 3 X2 VDD 3 t...

Page 110: ...002PL straight type made by Sumitomo 3M Ltd Compact connectors and loose wire cables are also available as options For more information on these products access the MINICUBE2 information site URL http...

Page 111: ...ty ID Unavailable Download Available Execution Go Go Start from Here Come Here Restart step execution Hardware break Unavailable Software break 2 000 points Forced break Available except while interru...

Page 112: ...iguration for On Chip Debugging 1 3 4 5 2 Target system 6 1 3 4 5 2 Target system 6 1 Host machine Products with USB ports 2 Software Includes the debugger USB driver device files and so on Download t...

Page 113: ...t change the switch setting while the USB cable is connected Table 5 4 Setting of Power Select Switch Setting Description 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied f...

Page 114: ...debugger startup For the operation after this step refer to the user s manual for the debugger If the debugger does not start normally or the operation is unstable the possible causes may be the foll...

Page 115: ...erved the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not neces...

Page 116: ...Figure 5 16 Memory Spaces Where Debug Monitor Programs Are Allocated Internal ROM space 0x0A or 0x18 INTP interrupt vector 0x7E for software break 304 bytes 2 bytes 2 bytes 5 bytes Internal RAM space...

Page 117: ...NEC Electronics assembler RA78K0S Add the assemble source code as shown below Assemble source example that securse INTP interrupt vector SSS CSEG AT 0018h SSS is an arbitrary symbol name eight charac...

Page 118: ...d by the user program the address of this area varies depending on the stack increase and decrease Therefore the stack pointer must be set by making allowances for the stack size 5 bytes used for debu...

Page 119: ...isable interrupts using the interrupt mask flag register corresponding to the INTP pin used Example Setting other than below is prohibited when the target device is the 78K0S KB1 and INTP3 is used 7 6...

Page 120: ...2 Turn on power to the target system and MINICUBE2 in accordance with 5 2 3 System startup procedure 3 Start the debugger At this time do not download the load module Note The monitor program will be...

Page 121: ...setting the PCC or PPCC register 3 Reset processing If the RESET pin of the target device alternately functions as a port enable the RESET pin by the user program settings such as option byte setting...

Page 122: ...ing 8 Debugging with real machine running without using MINICUBE2 If debugging is performed with a real machine running without using MINICUBE2 write the user program using the QB Programmer Programs...

Page 123: ...3 or 5 V maximum current rating 100 mA Acquisition of device specific information Parameter file for NEC Electronics PG FP4 is used Security flag setting Available Standalone operation Unavailable mu...

Page 124: ...on 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T Power supply of the target system is used MINICUBE2 detects the power for the...

Page 125: ...Caution Do not change the switch setting while the USB cable is connected Figure 5 19 Connecting MINICUBE2 to Host Machine MINICUBE2 USB cable Host machine MINICUBE2 USB cable Host machine 5 Applying...

Page 126: ...applications refer to the QB Programmer Programming GUI Operation User s Manual The conditions used for a series of operations in this section are as follows Target system Target device PD78F9234 Pow...

Page 127: ...below 1 Click the Device menu on the menu bar and then click Setup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 5 20 Standard Tab of Device Setup Dialog Box 3 Clic...

Page 128: ...areas in accordance with your programming environment The following figure shows an example Figure 5 22 Standard Tab of Device Setup Dialog Box After Setting 5 Next set the items in the Command optio...

Page 129: ...CROCONTROLLER User s Manual U18371EJ1V0UM 129 6 By clicking the OK button the programming environment is set and the Device Setup dialog box is closed The main window appears as follows Figure 5 24 Co...

Page 130: ...program file following the steps 1 to 3 described below 1 Click the File menu on the menu bar and then click Load 2 The program file select dialog box appears Figure 5 25 Program File Select Dialog Bo...

Page 131: ...re EPV The Blank Check Erase if the flash memory in the target device is not blank Program Verify and Security commands are executed for the target device sequentially The mode LED on MINICUBE2 flashe...

Page 132: ...target system This step is not necessary if the power select switch is set to 3 or 5 3 Unplugging the USB cable Unplug the USB cable from MINICUBE2 or the host machine When the power select switch is...

Page 133: ...the flash memory embedded in a device Erasing writing and verifying the program can be performed on board with the device Read the following chapters if you are using MINICUBE2 for the first time with...

Page 134: ...arget device USB communication Single wire UART communication 1 wire 2 wire mode Note Communication circuits must be mounted on the target system Target system Host machine MINICUBE2 Target device USB...

Page 135: ...nctions Pin Name IN OUT Note 1 Description RESET_IN IN Pin used to input reset signal from the target system RESET_OUT OUT Pin used to output reset signal to the target device FLMD0 OUT Pin used to se...

Page 136: ...15 16 GND RESET_OUT RXDNote 1 VDD TXDNote 1 R F U R F U R F U R F U R F U R F U R F U R F U FLMD0 RESET_INNote 3 CLK_IN GND _RESET TOOL0 VDD X1 X2 TOOL1Note 2 FLMD0 Reset circuit RESET signal 1 k 10...

Page 137: ...herefore the reset signal connection varies depending on whether MINICUBE2 is connected For flash programming the circuit must be designed so that the reset signals of the target system and MINICUBE2...

Page 138: ...t device VDD VDD R2 Remark Make the resistance of at least R1 ten times that of R2 R1 being 10 k or more Pull up resistor R2 is not required if the buffer of the reset circuit consists of CMOS output...

Page 139: ...mper 1 2 3 RESET_OUT RESET_IN Target device _RESET Reset connector RESET signal Target connector Jumper 1 2 3 Jumper setting When MINICUBE2 is connected 1 2 shorted When MINICUBE2 is not connected 2 3...

Page 140: ...6002PL straight type made by Sumitomo 3M Ltd Compact connectors and loose wire cables are also available as options For more information on these products access the MINICUBE2 information site URL htt...

Page 141: ...art from Here Come Here Restart step execution Hardware break 1 point commonly used by execution and access Software break 2 000 points Forced break Available Pseudo real time RAM monitoring RRM Avail...

Page 142: ...guration for On Chip Debugging 1 3 4 5 2 Target system 6 1 3 4 5 2 Target system 6 1 Host machine Products with USB ports 2 Software Includes the debugger USB driver device files and so on Download th...

Page 143: ...ot change the switch setting while the USB cable is connected Table 6 5 Setting of Power Select Switch Setting Description 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied...

Page 144: ...ger If the debugger does not start normally or the operation is unstable the possible causes may be the following Communication error between MINICUBE2 and target system Whether communication is perfo...

Page 145: ...erved the target system or MINICUBE2 may be damaged 1 Debugger termination Terminate the debugger 2 Target system power shutdown Shutdown the power supplied to the target system This step is not neces...

Page 146: ...Programs Are Allocated 1024 bytes 10 bytes 2 bytes 10 bytes 1 byte C4H D7H C3H b On chip debug option byte area Internal ROM space Internal ROM end address 6 bytes Internal RAM space Internal RAM end...

Page 147: ...d an area of 1 024 bytes before the internal ROM end address In addition reset vector is rewritten to address allocated to a monitor program How to secure areas The following shows an example for secu...

Page 148: ...chip flash memory is not erased no matter how many times the security ID code authentication fails 0x84 All on chip flash memory areas are erased if the security ID code authentication fails Other th...

Page 149: ...event the flash memory from being read by an unauthorized person The security ID functions as a password for starting the debugger The debugger starts only when the security ID that is input during de...

Page 150: ...8K0R MICROCONTROLLER User s Manual U18371EJ1V0UM 150 Figure 6 14 Security ID Setting Example Caution If you have forgotten the security ID erase the flash memory by flash programming or self programmi...

Page 151: ...xFCF00 Figure 6 15 Variation of Address of Stack Area for Debugging 6 bytes Stack area Stack area for debugging Available space In internal high speed RAM 0xFCF00 0xFFEDF 6 bytes 0xFCF00 0xFFEDF 6 byt...

Page 152: ...hine running without using MINICUBE2 write the user program using the QB Programmer Programs downloaded by the debugger include the monitor program and such a program malfunctions if it includes proce...

Page 153: ...l for about 100 s after reset release When Not Permit is selected Low level 11 Operation at voltage with which flash memory cannot be written Do not perform the following operations at a voltage with...

Page 154: ...r the CPU operating clock breaks may not occur normally if the frequency variation between debugger startup and break occurrence except for when changing the CKC register is too large This situation m...

Page 155: ...ed Power supply 3 or 5 V maximum current rating 100 mA Acquisition of device specific information Parameter file for NEC Electronics PG FP4 is used Security flag setting Available Standalone operation...

Page 156: ...on 3 3 V is supplied from MINICUBE2 to the target system Note 5 5 V is supplied from MINICUBE2 to the target system Note T Power supply of the target system is used MINICUBE2 detects the power for the...

Page 157: ...Caution Do not change the switch setting while the USB cable is connected Figure 6 18 Connecting MINICUBE2 to Host Machine MINICUBE2 USB cable Host machine MINICUBE2 USB cable Host machine 5 Applying...

Page 158: ...ations refer to the QB Programmer Programming GUI Operation User s Manual The conditions used for a series of operations in this section are as follows Target system Target device PD78F1166 Power supp...

Page 159: ...below 1 Click the Device menu on the menu bar and then click Setup 2 The Device Setup dialog box appears in which the Standard tab is active Figure 6 19 Standard Tab of Device Setup Dialog Box 3 Clic...

Page 160: ...areas in accordance with your programming environment The following figure shows an example Figure 6 21 Standard Tab of Device Setup Dialog Box After Setting 5 Next set the items in the Command optio...

Page 161: ...CROCONTROLLER User s Manual U18371EJ1V0UM 161 6 By clicking the OK button the programming environment is set and the Device Setup dialog box is closed The main window appears as follows Figure 6 23 Co...

Page 162: ...program file following the steps 1 to 3 described below 1 Click the File menu on the menu bar and then click Load 2 The program file select dialog box appears Figure 6 24 Program File Select Dialog Bo...

Page 163: ...ocedure EPV The Blank Check Erase if the flash memory in the target device is not blank Program and Verify commands are executed for the target device sequentially The mode LED on MINICUBE2 flashes ye...

Page 164: ...target system This step is not necessary if the power select switch is set to 3 or 5 3 Unplugging the USB cable Unplug the USB cable from MINICUBE2 or the host machine When the power select switch is...

Page 165: ...m Configuration Figure 7 1 illustrates the system configuration for self testing Figure 7 1 System Configuration for Self Testing 1 3 4 2 1 3 4 2 1 Host machine Products with USB ports 2 Software Incl...

Page 166: ...ecting the USB cable Connect MINICUBE2 to the host machine Do not connect MINICUBE2 to the target system The mode LED glows white after connection Figure 7 2 Connecting MINICUBE2 to Host Machine USB c...

Page 167: ...may no longer operate if firmware is updated incorrectly 8 1 System Configuration Figure 8 1 illustrates the system configuration for updating firmware Figure 8 1 System Configuration for Firmware Up...

Page 168: ...ng the USB cable Connect MINICUBE2 to the host machine Do not connect MINICUBE2 to the target system The mode LED glows white after connection Figure 8 2 Connecting MINICUBE2 to Host Machine USB cable...

Page 169: ...Singapore 307684 Tel 6253 8311 http www sg necel com NEC Electronics Korea Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 02 558 3737 http www kr necel com For furt...

Page 170: ...352C EE2 24TNU UPD43256BCZ 85 LL UA2 4 5SNU QF62V1 UD2 9NU EE2 3TNUX UA2 4 5NU UD2 4 5NE NL6448AC30 09 UPA1572H RB06H2C12 65LHS 3L EE2 5SNU EC2 24NJ MN41C4256A 07 EE2 4 5SNUX EF2 1 5SNU MR62 5SR EC2 4...

Reviews: