Page 1
OKI ML670100 CPU BOARD User’s Guide (Preliminary) Oki ARM7TDMI Emulation Kit First Edition, February 2000...
Page 2
4. Use of this product or information or drawings contained in this Manual does not constitute a warranty or a usage license for any third-party industrial rights, intellectual property rights, or other rights. Oki Electric Industry shall therefore be in no way held responsible for violation of such third-party rights arising from the use thereof.
CONTENTS CHAPTER 1 READ ME FIRST ............1 Precaution for Safe and Proper Use ..............2 Important Safety Notes..................3 Notation........................5 For Further Information ..................6 Verify Package Contents ..................7 CHAPTER 2 OVERVIEW ..............1 What is it? ......................2 System Components ....................4 Main Components ....................7 Main Components ....................10 2.4.1 Angel Debugging ...................10...
Page 4
3.5.4 Applying Power ....................26 3.5.5 Angel Debugging....................27 3.5.6 Loading Debugger..................27 3.5.7 Normal Debugging ..................31 3.5.8 Loading Oki ICE Server .................32 3.5.9 Loading Debugger..................34 CHAPTER 4 USER INTERFACE............1 Overview.........................2 User Interface......................3 4.2.1 User Interface Connectors (CNU1 to CNU4) ...........3 4.2.2 User Connector Board (USRCN) ..............6...
Chapter 1 Read Me First This chapter describes the procedures to be followed upon receipt of the ML670100 CPU Board. Verify the items described in this chapter before applying power to the ML670100 CPU Board.
Chapter 1 Read Me First 1.1 Precaution for Safe and Proper Use This User’s Guide uses various labels and icons that serve as your guides to operating this product safely and properly so as to prevent death, personal injury, and property damage.
Chapter 1 Read Me First 1.2 Important Safety Notes Please read this page before using the product. Warning Use only the specified voltage. Using the wrong voltage risks fire and electrical shock. At the first signs of smoke, an unusual smell, or other problems, unplug the emulator and disconnect all external power cords.
Page 8
Chapter 1 Read Me First Please read this page before using the product. Caution Do not use this product on an unstable or inclined base as it can fall or overturn, producing injury. Do not use this product in an environment exposing it to excessive vibration, strong magnetic fields, or corrosive gases.
Chapter 1 Read Me First 1.3 Notation This manual utilizes the following notational conventions for convenience. ! Caution ! A “caution” indicates a section of the manual that requires special attention. ! Reference ! A “reference” provides information related to the current topic and indicates the page number of a related section of the manual.
Chapter 1 Read Me First 1.4 For Further Information Thank you for purchasing the Oki ML670100 CPU Board. Please direct any questions or comments regarding this product to your Oki distributor or the nearest Oki Electric Sales Office. Page 1-6...
Chapter 1 Read Me First 1.5 Verify Package Contents Upon receiving the OKI ML670100 CPU Board, verify that the package contains all the components listed in Table 1. Although every effort has been made to minimize damage and eliminate mistakes, please report any damaged or missing parts to your Oki distributor or the nearest Oki Electric Sales Office.
Page 12
CD-2 RS232C cable cable ARM SDT2.5 ML670100 CPU BOARD Evaluation Version Documents Documents Packing list Test results Manuals Hardware Oki ML670100 CPU Board ML670100 CPU BOARD User's Guide (CD-R) ML670100 CPU BOARD User's Guide Figure 1.1. Package Contents Page 1-8...
Page 13
Chapter 1 Read Me First Option USRCN BOARD User cable NQPACK for YQPACK for YQSOCKET for QFP144-pin QFP 144-pin QFP 144-pin package Package package Figure 1.2. Oki ML670100 CPU Board Options Page 1-9...
Page 14
Chapter 1 Read Me First Documents This lists the contents of the Oki ML670100 CPU board Packing list package. Check the contents against this list when you first open the package. This lists the results of testing the Oki ML670100 CPU Test results board at the factory.
Page 15
Chapter 1 Read Me First Options USRCN BOARD user cable These optional components are for connecting the Oki ML670100 NQPACK for CPU Board to the user application system.Ord from the nearest Oki QFP144-pin package Electric Sales Office. YQPACK for QFP144-pin package YQSOCKET for QFP 144-pin package Figure 1.3.
Chapter 2 OVERVIEW 2.1 What is it? The Oki ML670100 CPU Board is part of an emulation kit for developers debugging and evaluating embedded user application systems to run on the ML670100, Oki Electric's high- performance 32-bit single-chip microcontroller. This document distinguishes two setups for debugging user application programs.
Page 19
Chapter 2 OVERVIEW ! ! ! ! Note 1 ! ! ! ! The Oki ML670100 CPU Board's Flash memory contains the Angel debugging monitor, for use in developing applications based on the ARM CPU. For further details on this program, refer to the ARM Software Development Toolkit User Guide and ARM Software Development Toolkit Reference Guide.
Chapter 2 OVERVIEW 2.2 System Components Figure 2.2 lists the components making up a program development support system using the Oki ARM7TDMI Interface Unit (ADI Board). Oki ARM7TDMI Program Development Support System Oki ARM7TDMI Emulation Kit Oki ML671000 CPU Board...
Page 21
RISC Machines. Oki ARM7TDMI Emulation Kit This term covers all Oki Electric support hardware and software used in program development for the ARM7TDMI core. The Oki ML670100 CPU Board falls into this category. Oki ML670100 CPU Board Emulation Kit This term covers all Oki Electric hardware, manuals, and accessories used in program development for the ML670100, Oki Electric's high-performance 32-bit single-chip microcontroller.
Page 22
Oki ADI board. Oki ICE Server initializes the JTAG port using the contents of this file. Power Supply Cable This cable is for connecting the Oki ML670100 CPU Board to the system power supply (5 V DC ± 5%). RS232C Cable This cable provides a communications link between the Oki ML670100 CPU Board and a development host with an IBM PC/AT-compatible serial port.
Chapter 2 OVERVIEW 2.3 Main Components This Section shows the layout of the Oki ML670100 CPU Board and describes the main components. 170mm EIR0 EFIQ EIR0 EFIQ +5.0V RESET (12) CNU2 (11) VDDSEL (10) RS232C CNU4 ML670100 CPUBOARD OSCSEL VREFSEL...
Page 24
(9) EIR0 and EFIQ switches (EIR0 and EFIQ) These switches are for generating external interrupt request signals to the ML670100 EIR0 and EFIQ pins. (10)RS232C interface connector (RS232C) This connects the Oki ML670100 CPU Board to the development host for debugging in Angel mode. Page2-8...
Page 25
(12) ICE interface connector (CNJ) This connects to a JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE ) for debugging in normal mode. (13) Indicators These LEDs give the Board's operating status.
Chapter 2 OVERVIEW 2.4 Main Components This Section describes the main functions of the Oki ML670100 CPU Board. 2.4.1 Angel Debugging This configuration provides remote debugging and emulation of the user application program with the ARM Software Development Toolkit over a direct serial (RS232C) link to the development host.
Normal Debugging This configuration provides remote debugging and emulation of the user application program with the ARM Software Development Toolkit through a JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE Figure 2.5 shows this configuration. Development host (Windows )
Chapter 2 OVERVIEW 2.4.3 Indicators (POWER & ANGEL) The Oki ML670100 CPU Board has two LEDs that give the system's operating status. For the locations, see Figure 2.3 in Section 2.3 above. These LEDs have the following meanings. POWER (green): This LED indicates the status of the Oki ML670100 CPU Board's power supply.
(POWER and ANGEL) ! ! ! ! Note 2 ! ! ! ! The Oki ML670100 CPU Board sometimes handles the following ML670100 built-in peripheral ports and pins PIO0, PIO1, PIO2.5, PIO2.6, PIO5.6, PIO5.7 and PIO8. For further details, see Chapter 5"Notes on Debugging."...
Chapter 2 OVERVIEW 2.6 Operating Conditions Use the Oki ML670100 CPU Board only in environments satisfying the following conditions. Oki ML670100 CPU Board Operating Conditions Item Description System input power voltage DC +5V±5%[DC +5V] [rating] Maximum current drain 0.8 A Operating temperature: 5 to 35°C...
Chapter 3 Setup and Operation 3.1 Switches and Settings Figure 3.1 shows the switches and jumpers controlling Oki ML670100 CPU Board operation. This Section describes their uses. Memory mask jumpers (J1 to J4) System reset switch (RESET) EIR0 EFIQ EIR0 EFIQ +5.0V...
Chapter 3 Setup and Operation 3.1.1 System Reset Switch (RESET) Pushing this switch resets the Oki ML670100 CPU Board. RESET Figure 3.2. System Reset Switch (RESET) The Board has two types of reset: • A power on reset produced by applying the power for the first time •...
Setting this switch to its ANGEL position debugs with a direct link to the development host; the NORMAL position, with a link through a JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE Figure 3.4 shows the related circuitry.
Figure 3.5. Clock Selection Switch (OSCSEL) Setting this switch to its SYSTEM position connects the ML670100 OSC0 pin to the 6- MHz clock signal from the built-in oscillator circuit. It also drives the ML670100 FSEL and PLLEN pins at "H" level to quadruple the internal frequency to 24 MHz.
Page 36
Note the 100-kΩ pull-up resistances on the user interface connector pins USER_FSEL and USER_PLLEN connecting to the corresponding ML670100 pins FSEL and PLLEN. Note that the ML670100 internal oscillator circuit is not available. For the USER position, the user application system must supply a clock signal with guaranteed duty to the interface connector pin USER_OSC0 connecting to the corresponding ML670100 pin OSC0.
Page 37
SYSTEM USER Figure 3.7. Selection Switch (VREFSEL) Setting this switch to its SYSTEM position connects the ML670100 V pin to the internal +3.3-volt power supply; the USER position, to the corresponding user interface connector pin. Figure 3.8 shows the related circuitry.
RS232C Figure 3.9. Serial Interface Switch (RS232C) Setting this switch to its ENA position connects the ML670100 serial port pins PIO5.6 and PIO5.7 to the RS232C driver IC; the DIS position, to the corresponding user interface connector pins. Figure 3.10 shows the related circuitry.
Page 39
The Angel mode requires that this switch be in its ENA position so that the Board can use the ML670100 serial port pins PIO5.6 and PIO5.7 to communicate with the development host. As result, the user application system does not have access to these two pins.
Chapter 3 Setup and Operation 3.1.6 Memory Mask Jumpers (J1 to J4) These jumpers control ML670100 read/write access to external memory (SRAM and Flash) on the Board. x: 1,3,4 Figure 3.11. Memory Mask Jumpers (J1 to J4) These jumpers have the following settings.
Page 41
Chapter 3 Setup and Operation FLASH_nWE0 xx_nWRE (0x00800000 to 0x0081FFFF) FLASH_nOE0 xx_nRD (0x00800000 to 0x0081FFFF) xx_nWRE FLASH_nWE1 (0x00820000 to 0x0083FFFF) xx_nRD FLSAH_nOE1 (0x00820000 to 0x0083FFFF) +3.3V +3.3V P0.0/XA16 xx_nWRE SRAM_nWE0 (0x00000000 to 0x0007FFFF) xx_nRD SRAM_nOE0 (0x00000000 to 0x0007FFFF) +3.3V SRAM_nWE1 xx_nWRE (0x00100000 to 0x0017FFFF) SRAM_nOE1...
Chapter 3 Setup and Operation 3.1.7 EIR0 and EFIQ Input Selection Jumpers (EIR0 and EFIQ) These jumpers specify the sources for the ML670100 EIR0 and EFIQ pin inputs: the switches on the Board or external signals from the user application system.
Chapter 3 Setup and Operation 3.2 Connecting Power Supply Cable The Oki ML670100 CPU Board ships with the power cable shown in Figure 3.15. DCplug Red banana plug Black banana plug VDD(+5V±5%) GND(-) Figure 3.15. Oki ML670100 CPU Board Power Supply Cable Supply power to the Board by connecting it with this cable to a stabilized DC power supply (5 V DC ±...
Page 44
Board. DC jack DC5V Power supply cable EIR0 EFIQ EIR0 EFIQ RESET +5.0V CNU2 VDDSEL RS232C CNU4 ML670100 CPU BOARD MTU-11037 OSCSEL VREFSEL MODE POWER ANGEL SYSTEM USER SYSTEM USER ANGEL NORMAL Figure 3.16. Power Supply Cable Connections (1/2) (2) Connect the banana plugs to a stabilized DC power supply.
Page 45
Chapter 3 Setup and Operation Stabilized DC power supply (DC+5.0±V5%,1A) Red banana Black banana plug plug (+5.0±V5%) (GND) Figure 3.17. Power Supply Cable Connections (2/2) Warning Make sure that the banana plugs go into the correct outlets. Reversing the polarity leads to breakdown or fire and risks electrical shock. Page 3-15...
3.3 Connecting to User Application System These connectors provide access to the I/O pins forming the ML670100 user interface. The Oki ML670100 CPU Board provides two ways to connect them to the user application system. • Directly with the user interface connectors (CNU1 to CNU4) •...
Page 47
Chapter 3 Setup and Operation The user connector Board (USRCN) has four connectors, labeled CNU1 to CNU4, that plug into their counterparts on the Oki ML670100 CPU Board and two, labeled CNA and CNB, for connecting the user cable. The user cable has two connectors, labeled CNA and CNB, that plug into their counterparts on the user connector Board (USRCN) and a 144-pinTQSOCKET for connecting the user application system.
Page 48
MTU-11037 OSCSE VREFSE SYSTE POWER ANGEL NORMAL SYSTEM USER ANGEL QFP144-pin YQSOCKET QFP144-pin YQPACK QFP144-pin NQPACK Figure 3.21. Connecting User Cable The pin assignments for the ML670100 and the user application system connector appear in Chapter 6 "Appendices." Page 3-18...
3.4 Connecting to Host 3.4.1 Angel Mode The mode connects the Oki ML670100 CPU Board directly to the development host with the provided RS232C cable plugged into the RS232C interface connector (RS232C) in the lower left corner of the Board.
Chapter 3 Setup and Operation 3.4.2 Normal Mode The mode connects the Oki ML670100 CPU Board to the development host through a JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE connected to the ICE interface connector (CNJ) in the upper right corner of the Board.
Page 51
(1) Plug the 20-pin cable provided with the interface unit into the ICE interface connector (CNJ) in the upper right corner of the Board. EIR0 EFIQ EIR0 EFIQ RESET +5.0V CNU2 VDDSEL RS232C CNU4 ML670100 CPU BOARD OSCSEL VREFSEL MODE MTU-11037 ANGEL POWER SYSTEM USER SYSTEM USER ANGEL NORMAL igure 3.24.
Page 52
OKI ADI BOARD MTU-11009 Figure 3.25. Connecting Interface Unit (2/2) For further details on connecting to the Oki Electric ADI Board or ARM Multi-ICE , refer to the User's Manual included with the interface unit. (3) Plug the parallel cable into the parallel interface connector on the interface unit.
Chapter 3 Setup and Operation 3.5 Procedures This Section gives the procedures for setting up and using the Oki ML670100 CPU Board. It assumes that the ARM Software Development Toolkit has already been installed. If the ARM Software Development Toolkit has not been installed, insert the ARM Software Development Toolkit 2.50 CD-ROM in the drive and follow the automatic installation...
Chapter 3 Setup and Operation Necessary Parts • Oki ML670100 CPU Board • RS232C cable • ARM Software Development Toolkit • Stabilized DC power supply (5 V DC ± 5%, 1 A) • Development host (Windows or Unix) 3.5.1.1 Switch Setting...
ADI Board Necessary Parts • Oki ML670100 CPU Board • Parallel cable • JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE • ARM Software Development Toolkit • Stabilized DC power supply (5 V DC ± 5%, 1 A) •...
! ! ! ! Note ! ! ! ! Always apply the power in the order given: Oki ML670100 CPU Board and then the user application system. The normal mode powers the JTAG communications interface unit (Oki Electric ADI Board or...
Chapter 3 Setup and Operation 3.5.5 Angel Debugging The following are the procedures for Angel debugging. 3.5.6 Loading Debugger On the development host, load the debugger. The first time, it starts in ARMulator (software emulation) mode. Figure 3.30. ARM Multiprocessor Debugger for Windows Starting Screen Page 3-27...
Page 58
Chapter 3 Setup and Operation To change the debugger from ARMulator mode to remote debugging mode, choose "Configure debugger" on the "Options" menu. Figure 3.31. Configuring Debugger Page 3-28...
Page 59
Chapter 3 Setup and Operation In the "Debugger configuration" dialog box that appears, choose "remote_a" as the target and push the "Configure" button. In the "Remote connection" dialog box that appears, select "Serial" and then specify the port and baud rate (9600or 19200). Figure 3.32.
Page 60
Chapter 3 Setup and Operation Push the "OK" button to return to the "Debugger configuration" dialog box. Push the "OK" button to restart the debugger and establish the link to the Angel debugging monitor. If communications are properly established, a boot message similar to the following appears in debugger's console window.
The following are the procedures for Normal debugging. The first step is to run Portmap.exe on the development host running Windows. Open an MS-DOS box, change to the directory containing the Oki ICE server software, and type Portmap. Figure 3.34 shows the Portmap starting screen.
The next step is to run Oki ICE Server on the development host. Note that the power to both the user application system and the Oki ADI board must be on. Otherwise, the software simply aborts when it cannot find the latter.
Page 63
Chapter 3 Setup and Operation To have the Oki ICE Server automatically run Portmap.exe and load the configuration file the next time, choose "Start-up settings" on the "Settings" menu to display the following dialog box, select both the "Start port map service" and "Load configuration check boxes, and specify the complete path to the configuration file.
Chapter 3 Setup and Operation 3.5.9 Loading Debugger On the development host, load the debugger. The first time, it starts in ARMulator (software emulation) mode. Figure 3.37. ARM Multiprocessor Debugger for Windows Page 3-34...
Page 65
Chapter 3 Setup and Operation To change the debugger from ARMulator mode to remote debugging mode, choose "Configure debugger" on the "Options" menu. Figure 3.38. Configuring Debugger Page 3-35...
Page 66
Chapter 3 Setup and Operation In the "Debugger configuration" dialog box that appears, specify the target JTAG communications interface unit: Oki Electric ADI Board or ARM Multi-ICE Figure 3.39. Setting Up for Remote Debugging Page 3-36...
Page 67
Figure 3.40. ARM Multiprocessor Debugger for Windows The Oki ML670100 CPU Board is now ready for remote debugging. For further details on remote debugging with the ARM Software Development Toolkit, see the ARM Software Development Toolkit User Guide.
Chapter 4 User Interface This Chapter contains the procedures for connecting the Oki ML670100 CPU Board to the user application system for in-place debugging of the user application program.
The evaluation chip on the Oki ML670100 CPU Board features the same memory spaces, peripherals, and I/O pins (See Note 1) as the target ML670100. Connecting the I/O pins available on the Oki ML670100 CPU Board to the user application system with the user interface connectors and optional user cable permits in-place debugging.
4.2 User Interface 4.2.1 User Interface Connectors (CNU1 to CNU4) These four connectors are for directly connecting the Oki ML670100 CPU Board to the user application system for in-place debugging. Figure 4.2 shows the location; Table 4.1, the pin assignments.
Chapter 4 User Interface 4.2.2 User Connector Board (USRCN) This optional Board fits between the Oki ML670100 CPU Board and the user cable leading to the user application system. Tables 4.3 and 4.4 show the pin assignments for the CNA and CNB connectors.
Page 76
Figure 4.4. User Interface Connector Peripheral Circuits As Figure 4.4 shows, the Oki ML670100 CPU Board connects the AVDD pin to VDD (+3.3 V), connects AGND and VCOM to GND, and pulls RESET/, PLLEN, FSEL, and DBSEL, up to +3.3 V with 100-kΩ resistances, and . pull nEA down to GND with 100- kΩ...
Chapter 4 User Interface 4.3 User Cable The user cable connects the user application system to the Oki ML670100 CPU Board and user connector Board (USRCN). Figure 4.5 shows this cable. Oki ML670100 CPU Board connectors CNA and CNB 144-pin TQSOCKET TQ-SOCKET Figure 4.5.
Chapter 4 User Interface 4.4 User Application System Connector Layout The Oki ML670100 CPU Board provides two ways to connect the I/O pins forming the ML670100 user interface to the user application system. • Direct connection to the user interface connectors (CNU1 to CNU4) •...
Chapter 5 Notes on Debugging 5.1 Chip Differences The chip at the core of the Oki ML670100 CPU Board differs from the target ML670100 in the following areas. 5.1.1 User Interface The Oki ML670100 CPU Board treats certain I/O pins differently from the target ML670100.
Page 83
The RESET/ pin only supports input from the user application system during emulation. Not shown in Figure 5.1 are the PIO8 port pins (PIO8[7:0]). These are not available for debugging with the Oki ML670100 CPU Board. Page 5-4...
Page 85
0x107ffff). Note that the Angle mode reserves the top 96 KB in the second one for the Angel debugging monitor. The Oki ML670100 CPU Board also adds 256 KB of Flash memory (0x800000 to 0x80ffff). Note that the Angle mode uses software stored in the first quarter (0x800000 to 0x80ffff), so protect this area.
Oki ML670100 CPU Board. 5.2.1 System Reset Switch (RESET) Do not press the system reset switch (RESET) on the Oki ML670100 CPU Board during normal operation as it also resets the JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE...
PFS5[6],PFS5[7] 0x600703 PWCON For further details on these registers, refer to the ML670100 User's Manual. 3. Chain IRQ handlers. If the application program uses IRQ interrupts, modify it to chain its IRQ handler to the Angel debugging monitor counterpart with a procedure similar to the following.
Page 88
Chapter 5 Notes on Debugging application program's handler. unsigned Install_Handler (unsigned *location, unsigned address) unsigned vec, oldvec; oldvec = *location; *location = address; return (oldvec); The return value provides the IRQ handler entry address before calling this function. Near the beginning of the main() function, place the following code for installing the application program's IRQ handler.
Page 89
Chapter 5 Notes on Debugging 4. Note the following with regard to SWI instructions. * Do not use SWI 0x123456 or SWI 0xab. The Angel debugging monitor uses these SWIs to support C library semihosting requests. * The application must restore registers to their states before the SWI instruction. * If the application program uses SWI instructions, modify it to chain its SWI handler to the Angel debugging monitor's SWI handler.
Page 90
User's Manual Section 9.3.2 descriptions for C handlers (p. 9-11) and exception handlers (pp. 9-39 and 9-19). 6. When connecting the ML670100 CPU board to a user application system, we recommend the use of fast interrupts (FIQs) because the Angel debugging monitor does not use them.
Need help?
Do you have a question about the ML670100 and is the answer not in the manual?
Questions and answers