background image

CHAPTER  4   HOW TO USE MINICUBE2 WITH 78K0 MICROCONTROLLER 

User’s Manual    U18371EJ1V0UM 

75

(5)  Connecting the USB cable 

Connect MINICUBE2 to the host machine as shown in Figure 4-25, 

before the power to the target system is 

turned on

When the power select switch is set to 

T

, the mode LED 

flashes

 white after connection. 

When the power select switch is set to 

3

 or 

5

, the mode LED 

glows

 white after connection. 

 

Figure 4-25.  Connecting MINICUBE2 to Host Machine 

 

MINICUBE2

USB cable

Host machine

MINICUBE2

USB cable

Host machine

 

 

(6)  Applying power to target system 

Turn on power to the target system.    This step is not necessary if the power select switch is set to 

3

 or 

5

.  

The mode LED glows white after connection after power application. 

 

(7) Debugger startup 

Start the debugger.    The mode LED glows orange after 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 following. 

•  Communication error between MINICUBE2 and target system 

  Whether communication is performed normally can be checked using the OCD Checker.    For details, refer 

to the user

'

s manual for the OCD Checker. 

•  The user resource has not been secured or the security ID has not been set 

  To perform debugging with MINICUBE2, the user resource must be secured and the security ID must be set.   

For details, refer to 

4.2.6  Securing of user resources and setting of security ID

•  Unsupported software (debugger, device file, or firmware) is used 

  The software used may not support debugging of the target device.    Refer to the document 

QB-MINI2 

Operating Precautions

 and check the supported version.  When using software provided by an NEC 

Electronics partner, refer to the documents prepared by the partner company. 

•  Defect of MINICUBE2 

  MINICUBE2 may have a defect.    Refer to 

CHAPTER 7 SELF-TESTING

 

 

 

Содержание QB-MINI2

Страница 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...

Страница 2: ...User s Manual U18371EJ1V0UM 2 MEMO...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: