Page 1
电子发烧友 http://bbs.elecfans.com 电子技术论坛 OKI ML671000 CPU BOARD User’s Guide (Preliminary) Oki ARM7TDMI Emulation Kit First Edition, February 2000 This Technical tutorial can be found on https://www.jotrin.com...
Page 2
10. MS-DOS is a registered trademark of Microsoft Corporation. 11. APM, EmbeddedICE, Multi-ICE, ARM7TDMI, and ARMPOWERED are registered trademarks of ARM Inc. 12. UNIX is a registered trademark in the United States and other countries and is licensed by X/Open Company Limited.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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...
Page 4
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 3.5.2 Normal Debugging ..................26 3.5.2.1 Switch Setting ....................27 3.5.3 Checking Switch Settings................27 3.5.4 Applying Power ....................27 3.5.5 Angel Debugging....................28 3.5.6 Loading Debugger..................28 3.5.7 Normal Debugging ..................32 3.5.8 Loading Oki ICE Server .................33 3.5.9 Loading Debugger..................35 CHAPTER 4 USER INTERFACE ............1 Overview.........................2 User Interface......................3 4.2.1...
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 1 Read Me First functions. This chapter describes the procedures to be followed upon receipt of the ML671000 CPU Board. Verify the items described in this chapter before applying power to the ML671000 CPU Board.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 1 Read Me First 1.4 For Further Information Thank you for purchasing the Oki ML671000 CPU Board. Please direct any questions or comments regarding this product to your Oki distributor or the nearest Oki Electric Sales Office.
Chapter 1 Read Me First 1.5 Verify Package Contents Upon receiving the OKI ML671000 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 ML671000 CPU BOARD Evaluation Version Documents Documents Packing list Test results Manuals Hardware ML671000 CPU BOARD Oki ML671000 CPU Board User's Guide (CD-R) ML671000 CPU BOARD User's Guide Figure 1.1. Package Contents Page 1-8...
Page 13
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 1 Read Me First Option USRCN BOARD User cable USB cable NQPACK for YQPACK for YQSOCKET for QFP128-pin QFP 128-pin QFP 128-pin package Package package Figure 1.2. Oki ML671000 CPU Board Options Page 1-9...
Page 14
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 1 Read Me First Documents This lists the contents of the Oki ML671000 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 ML671000 CPU Test results board at the factory.
Page 15
CPU Board to the user application system.Ord from the nearest Oki QFP128-pin package Electric Sales Office. YQPACK for QFP128-pin package YQSOCKET for QFP 128-pin package USB cable This USB cable is type A-B. Figure 1.3. Oki ML671000 CPU Board Page 1-11...
Page 16
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 1 Read Me First Page 1-12...
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 2 OVERVIEW This Chapter provides an overview of the Oki ML671000 CPU Board, its components, and its functions.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 2 OVERVIEW 2.1 What is it? The Oki ML671000 CPU Board is part of an emulation kit for developers debugging and evaluating embedded user application systems to run on the ML671000, Oki Electric's high- performance 32-bit single-chip microcontroller.
Page 19
Chapter 2 OVERVIEW ! ! ! ! Note 1 ! ! ! ! The Oki ML671000 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.
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 Hardware Emulation Kit ML671000 CPU BOARD Software ARM Software Development Toolkit v2.5...
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 ML671000 CPU Board falls into this category. Oki ML671000 CPU Board Emulation Kit This term covers all Oki Electric hardware, manuals, and accessories used in program development for the ML671000, 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 ML671000 CPU Board to the system power supply (5 V DC ± 5%). RS232C Cable This cable provides a communications link between the Oki ML671000 CPU Board and a development host with an IBM PC/AT-compatible serial port.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 2 OVERVIEW 2.3 Main Components This Section shows the layout of the Oki ML671000 CPU Board and describes the main components. (11) (10) 170mm USBCN RS232C RS232C RS232CSEL2 +5.0V (13) RS232CSEL3 CNU2 RS232CSEL1 (12) RESET...
Page 24
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 2 OVERVIEW (4) Clock selection switch (OSCSEL) This switch specifies the source for the ML671000 operating clock, supplied to the OSC0 pin: the built- in oscillator circuit or the user application system. (5) RS232C interface switches (RS232CSEL1 toRS232CSEL3) These switches specify the connections for the ML671000 serial port pins P4.4 and P4.5 and its 16550A-compatible UART pins P4.6, P4.7, P5.2,...
Page 25
ML671000 pins to the user application system. (13) 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. (14) Indicators These LEDs give the Board's operating status.
This Section describes the main functions of the Oki ML671000 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 (CN7) link to the development host. Figure 2.4 shows this configuration. Development host (Windows)
2.4.2 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 ML671000 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 ML671000 CPU Board's power supply.
(POWER and ANGEL) ! ! ! ! Note 2 ! ! ! ! The Oki ML671000 CPU Board sometimes handles the following ML671000 built-in peripheral ports and pins P0, P1.5, P1.6, P4.4, and P4.5. For further details, see Chapter 5"Notes on Debugging."...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 2 OVERVIEW 2.6 Operating Conditions Use the Oki ML671000 CPU Board only in environments satisfying the following conditions. Oki ML671000 CPU Board Operating Conditions Item Description System input power voltage DC +5V±5%[DC +5V] [rating] Maximum current drain 0.8 A...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation This Chapter describes the procedures for setting up and operating the Oki ML671000 CPU Board.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1 Switches and Settings Figure 3.1 shows the switches and jumpers controlling Oki ML671000 CPU Board operation. This Section describes their uses. RS232C Interface selection switch (RS232CSEL1 to RS232CSEL3) USBCN RS232C...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.1 System Reset Switch (RESET) Pushing this switch resets the Oki ML671000 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.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.3 Clock Selection Switch (OSCSEL) This switch specifies the source for the ML671000 operating clock, supplied to the OSC0 pin: the built-in oscillator circuit or the user application system. OSCSEL SYSTEM USER Figure 3.5.
Page 36
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation Note the 100-kΩ pull-up resistance on the user interface connector pin USER_PLLEN connecting to the corresponding ML671000 pin PLLEN. Note that the ML671000 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 ML671000 pin OSC0.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.4 RS232C interface switches (RS232CSEL1 toRS232CSEL3) These switches specify the connections for the ML671000 serial port pins and its 16550A-compatible UART pins: to the RS232C driver IC (CN7 and CN8) or to the user interface connectors.
Page 38
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation RS232CSEL2 andRS232CSEL3 switches Setting this switch to its ENA position connects the ML671000 16550A-compatible UART pins P4.6, P4.7, P5.2, P5.3, P5.5, P5.6, and P5.7 to the RS232C driver IC(CN8); the DIS position, to the corresponding user interface connector pins. Figure 3.9 shows the related circuitry.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.5 Memory Mask Jumpers (J1 to J4) These jumpers control ML671000 read/write access to external memory (SRAM and Flash) on the Board. x : 2 to 4 Figure 3.10. Memory Mask Jumpers (J1 to J4) These jumpers have the following settings.
Page 40
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation xx_nWRE FLASH_nWE0 (0x00800000 to 0x0081FFFF) FLASH_nOE0 xx_nRD (0x00800000 to 0x0081FFFF) xx_nWRE FLASH_nWE1 (0x00820000 to 0x0083FFFF) FLSAH_nOE1 xx_nRD (0x00820000 to 0x0083FFFF) +3.3V +3.3V P0.0/XA16 xx_nWRE SRAM_nWE0 (0x00000000 to 0x0007FFFF) SRAM_nOE0 xx_nRD (0x00000000 to 0x0007FFFF) +3.3V xx_nWRE SRAM_nWE1...
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.6 EFIQ and EIR0 Input Selection Jumpers (J7 and J8) These jumpers specify the sources for the ML671000 EFIQ and EIR0 pin inputs: the switches on the Board or external signals from the user application system. EFIQ(J7) / EIR0(J8) Figure 3.12.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.1.7 USB Connection Jumpers (J6 and J9) These jumpers control the Oki ML670100 CPU board's USB interface. Figure 3.14. USB Connection Jumpers (J6 and J9) J6 Jumper The P21 position enables the use of the P2.1/EIR1 pin as VBUS connection input, applying a "H"...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.2 Connecting Power Supply Cable The Oki ML671000 CPU Board ships with the power cable shown in Figure 3.16. DC plug Red banana plug Black banana plug VDD(+5V±5%) GND(-) Figure 3.16. Oki ML671000 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 45
RS232C RS232C RS232CSEL2 +5.0V RS232CSEL3 CNU2 RS232CSEL1 RESET EFIQ EIR0 CNU4 OKI ML671000 CPU BOARD MTU-11044 OSCSEL MODE SYSTEM USER ANGEL NORMAL POWER ANGEL Figure 3.17. Power Supply Cable Connections (1/2) (2) Connect the banana plugs to a stabilized DC power supply.
Page 46
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation Stabilized DC power supply (DC+5.0±V5%,1A) Red banana plug Black banana plug (+5.0±V5%) (GND) Figure 3.18. 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.
3.3 Connecting to User Application System These connectors provide access to the I/O pins forming the ML671000 user interface. The Oki ML671000 CPU Board provides two ways to connect them to the user application system. • Directly with the user interface connectors (CNU1 to CNU4) •...
Page 48
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 ML671000 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 128-pin YQSOCKET for connecting the user application system.
Page 49
User connector board (USRCN) ML670100 CPU Board USBCN RS232C RS232C RS232CSEL2 +5.0V RS232CSEL3 CNU2 RS232CSEL1 RESET EFIQ EIR0 CNU4 OKI ML671000 CPU BOARD MTU-11044 OSCSEL MODE ANGE POWER ANGEL SYSTEM NORMAL QFP128pin YQSOCKET QFP128pin YQPACK QFP128pin NQPACK Figure 3.22. Connecting User Cable The pin assignments for the ML671000 and the user application system connector appear in Chapter 6 "Appendices."...
Chapter 3 Setup and Operation 3.4 Connecting to Host 3.4.1 Angel Mode The mode connects the Oki ML671000 CPU Board directly to the development host with the provided RS232C cable plugged into the RS232C interface connector (CN7) in the upper of the Board.
Chapter 3 Setup and Operation 3.4.2 Normal Mode The mode connects the Oki ML671000 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 52
(CNJ) in the upper right corner of the Board. USBCN RS232C RS232C RS232CSEL2 +5.0V RS232CSEL3 CNU2 RS232CSEL1 RESET EFIQ EIR0 CNU4 OKI ML671000 CPU BOARD MTU-11044 OSCSEL MODE SYSTEM USER ANGEL NORMAL POWER ANGEL Figure 3.25. Connecting Interface Unit (1/2) Page 3-22...
Page 53
Figure 3.26 shows the connector location for the Oki Electric ADI Board. OKI ADI BOARD MTU-11009 Figure 3.26. 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.
Chapter 3 Setup and Operation 3.5 Procedures This Section gives the procedures for setting up and using the Oki ML671000 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...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation Necessary Parts • Oki ML671000 CPU Board • RS232C cable • ARM Software Development Toolkit 2.50 • Stabilized DC power supply (5 V DC ± 5%, 1 A) • Development host (Windows or Unix) 3.5.1.1...
ADI Board Necessary Parts • Oki ML671000 CPU Board • Parallel cable • JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE • ARM Software Development Toolkit 2.50 • Stabilized DC power supply (5 V DC ± 5%, 1 A) •...
(CNJ) through the cable joining it to the Oki ML671000 CPU Board. ! ! ! ! Note ! ! ! ! Always apply the power in the order given: Oki ML671000 CPU Board and then the user application system. Page 3-27...
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.31. ARM Multiprocessor Debugger for Windows Starting Screen Page 3-28...
Page 59
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.32. Configuring Debugger Page 3-29...
Page 60
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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).
Page 61
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.5.7 Normal Debugging 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.
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 3 Setup and Operation 3.5.8 Loading Oki ICE Server 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.
Page 64
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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 "Auto-Configure” check boxes.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.38. ARM Multiprocessor Debugger for Windows Page 3-35...
Page 66
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.39. Configuring Debugger Page 3-36...
Page 67
电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.40. Setting Up for Remote Debugging Page 3-37...
Page 68
Figure 3.41. ARM Multiprocessor Debugger for Windows The Oki ML671000 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.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 4 User Interface This Chapter contains the procedures for connecting the Oki ML671000 CPU Board to the user application system for in-place debugging of the user application program.
The evaluation chip on the Oki ML671000 CPU Board features the same memory spaces, peripherals, and I/O pins (See Note 1) as the target ML671000. Connecting the I/O pins available on the Oki ML671000 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 ML671000 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 ML671000 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 77
The user connectors do not provide access to the following ML671000 pins: TCK, TMS, TDI, TDO, nTRST, OSC1, and TEST. Access to the following ML671000 pins is via control circuits on the Oki ML671000 CPU Board: OSC0, PLLEN, DBSEL, nEA, nEFIQ, P2.0/EIR0, and nRST.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 4 User Interface 4.3 User Cable The user cable connects the user application system to the Oki ML671000 CPU Board and user connector Board (USRCN). Figure 4.5 shows this cable. Oki ML671000 CPU Board 128pin YQSOCKET connectors (CNA and CNB) Figure 4.5.
Chapter 4 User Interface 4.4 User Application System Connector Layout The Oki ML671000 CPU Board provides two ways to connect the I/O pins forming the ML671000 user interface to the user application system. • Direct connection to the user interface connectors (CNU1 to CNU4) •...
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 5 Notes on Debugging This Chapter contains important notes on debugging application programs with the Oki ML671000 CPU Board.
电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 5 Notes on Debugging 5.1 Chip Differences The chip at the core of the Oki ML671000 CPU Board differs from the target ML671000 in the following areas. 5.1.1 User Interface The Oki ML671000 CPU Board treats certain I/O pins differently from the target ML671000.
Page 83
The nRST pin only supports input from the user application system during emulation. Not shown in Figure 5.1 are the JTAG port pins (TCK, TMS, TDI, TDO, nTRST). These are not available for debugging with the Oki ML671000 CPU Board. Page 5-3...
0x107ffff). Note that the Angle mode reserves the top 96 KB in the second one for the Angel debugging monitor. The Oki ML671000 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 ML671000 CPU Board. 5.2.1 System Reset Switch (RESET) Do not press the system reset switch (RESET) on the Oki ML671000 CPU Board during normal operation as it also resets the JTAG communications interface unit (Oki Electric ADI Board or ARM Multi-ICE...
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 5 Notes on Debugging 5.3 Angel resources requirements introduce a number of restrictions on application development under Angel. Programmers developing application programs using the Angel debugging monitor should keep the following in mind. 1. Specify the default (0x8000) as the loader address using the following linker syntax. armlink -R0 0x8000 Do not specify the address 0x0 because the Angel debugging monitor requires addresses 0x0 to 0x3c to load the application program.
Page 87
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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 88
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 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.
Page 89
http://www.elecfans.com 电子发烧友 http://bbs.elecfans.com 电子技术论坛 Chapter 5 Notes on Debugging ! Note ! For further details on chaining exception handlers in 3. and 4. above, refer to the SDT250 User's Manual Section 9.3.2 descriptions for C handlers (p. 9-11) and exception handlers (pp.
Need help?
Do you have a question about the OKI ML671000 and is the answer not in the manual?
Questions and answers