Atmel AT91EB01 Скачать руководство пользователя страница 10

The Debugging System

2-2

AT91EB01 Evaluation Board User Manual

The EmbeddedICE macrocell to provide access to the extensions from the outside 
world

The ARM EmbeddedICE interface, to provide communication between the 
EmbeddedICE macrocell and the debugger resident on the host computer

The EmbeddedICE macrocell is the integrated on-chip logic that provides debug support
for the ARM7TDMI processor. The EmbeddedICE macrocell is programmed in serial
through the Test Access Port (TAP) controller on the ARM7TDMI, via the JTAG inter-
face. This is usually achieved via the EmbeddedICE interface. The EmbeddedICE
macrocell consists of two real-time watchpoint units, together with a control and status
register. One or both watchpoint units can be programmed to halt the execution of
instructions by the ARM7TDMI.

The ARM EmbeddedICE interface is a JTAG protocol conversion unit. This translates
the debug protocol messages generated by the debugger into JTAG signals that can be
sent to the EmbeddedICE macrocell, and vice versa. The interface can be connected to
the host computer using either the built-in serial port, or the built-in serial and parallel
ports. The serial port is used for bidirectional transfers, but the parallel port is only used
to download code. Using the parallel port increases the maximum download speed with
EmbeddedICE to approximately 20K bytes/s. This is considerably greater than using the
serial ports alone (even at 38400 baud), and so is the recommended method of using
EmbeddedICE (host permitting).

Although EmbeddedICE is generally non-intrusive, there are two exceptions:

When an ARM debugger is started, it attempts to find out the state of the target 
microcontroller. To do this, it halts the target and inspects the state of the ARM 
registers. This, however, can be considered non-intrusive if the debugging session 
begins after the debugger has been started.

Watchpoints on structures or arrays that are larger than one word may cause the 
target microcontroller to halt execution when writes occur close to the watchpointed 
area. EmbeddedICE will restart execution transparently to the user, but this may still 
cause problems if the application is real-time.

Note:

The Debug Comms Channel is currently not supported on the AT91EB01 
board.

2.1.3

Multi-ICE

Multi-ICE is the latest ICE-compatible debug solution from Advanced RISC Machines. It
comprises an interface unit which connects between the parallel port of a PC and the
JTAG interface and software to allow an ARM debugger to communicate with the inter-
face unit. 

The Multi-ICE system is very similar to EmbeddedICE except that the Embedded ICE
interface unit contains a processor and software, whereas the Multi-ICE interface unit
contains no processor and the interface software runs on the host PC. There are a num-
ber of advantages to this approach - a smaller, lighter interface unit with a lower power
consumption (it can be target powered), easier updating of software, more flexible
interfaces.

Features of Multi-ICE:

Stored/Automatic configuration

Networked connections

High-performance code download

Low-voltage target operation

Small, lightweight unit improves ease of use

Additional power supply not normally required (powered from target)

Easy-to-use parallel port connection

Содержание AT91EB01

Страница 1: ...AT91EB01 Evaluation Board USER MANUAL...

Страница 2: ......

Страница 3: ...ion Board 3 1 3 1 Electrostatic Warning 3 1 3 2 Requirements 3 1 3 3 Layout 3 1 3 4 Jumper Settings 3 2 3 5 Powering Up the Board 3 2 3 5 1 Measuring Current Consumption on the AT91M40400 3 3 3 6 Gett...

Страница 4: ...l 3 12 3 10 3 Configuring the armsd Debugger to Use Angel 3 12 3 11 Using Angel 3 12 3 11 1 Memory Mapping 3 13 3 11 2 Interrupt Handling 3 13 3 11 3 Stacks Setup 3 13 3 12 Using the Flash Downloader...

Страница 5: ...Table of Contents iii 6 2 Surface Mount Links LK1 LK3 9 6 1 6 3 Increasing Memory Size 6 2 Section 7 Appendix B Schematics 7 1...

Страница 6: ...Table of Contents iv...

Страница 7: ...ables The evaluation board is supplied with a DB9 plug to DB9 socket straight through serial cable to connect the target evaluation board to a PC There is also a bare power lead with a 2 1 mm jack on...

Страница 8: ...h 64K bytes is available for user software 20 pin JTAG interface connector If required user defined peripherals can also be added to the board See Appendix A Configuration Links and SRAM Bank 1 on pag...

Страница 9: ...environment for the devel opment of AT91 targeted software on non ARM based host systems A target system is not necessary to use the ARMulator The ARMulator is included in the ARM Software Developmen...

Страница 10: ...gh EmbeddedICE is generally non intrusive there are two exceptions When an ARM debugger is started it attempts to find out the state of the target microcontroller To do this it halts the target and in...

Страница 11: ...ions on the AT91 Evaluation Board bring into operation new hardware that includes an ARM processor port operating systems to the AT91 microcontroller These activities require some understanding of how...

Страница 12: ...xecute the application code An ICE does not provide a memory emulation EmbeddedICE and Multi ICE may pollute the exception vectors if semihosting and or vector catch are enabled EmbeddedICE and Multi...

Страница 13: ...ing the component pins or any other metallic element 3 2 Requirements Requirements in order to set up the AT91EB01 Evaluation Board are the host computer running the ARM Software Development Toolkit a...

Страница 14: ...x A Configuration Links and SRAM Bank 1 on page 6 1 3 5 Powering Up the Board DC power is supplied to the board via the 2 1mm socket J4 shown below in Figure 1 The polarity of the power supply is not...

Страница 15: ...button The amber and red LEDs light up Release the IRQ0 The LEDs go off and the green LED blinks twice 3 6 2 Building the Software Library Copy the AT91 library complete folder and sub folder onto yo...

Страница 16: ...f the PC to the DB09 connector of the Embedded ICE Box with the crossed cable not delivered with the AT91EB01 Connect the parallel port of the PC to the DB25 connector of the Embedded ICE Box with the...

Страница 17: ...t Refer to the sections above Execute the programming sequence as described in the section Using the Flash Downloader on page 3 13 top_of_memory 0x02200000 Note This line should not be entered if usin...

Страница 18: ...a jumper or a link on the footprint J7 Note If the lower 64K are not protected the user must be especially careful Even though one of the features of the boot is the ability to restore Angel it canno...

Страница 19: ...essed down Wait for the red LED to light up and then release the TIOB1 button 4 Start the BINCOM utility located in the folder MyFolderAT91 Tools on the host computer Select the port and the baud rate...

Страница 20: ...in 5 Power up the EmbeddedICE interface and press the red reset button 6 On releasing the reset button the LED on the unit lights up If the LED immedi ately blinks off once for a fraction of a second...

Страница 21: ...an image you must reconfigure the EmbeddedICE Error during initialization Recoverable error in RDI initialization Target processor not stopped Note Ensure that the selected configuration is correct ot...

Страница 22: ...nd agent facilities from within armsd listconfig lists the configurations known to the debug agent Note that the first configuration listed is the default for the version of the agent in use selectcon...

Страница 23: ...Configu ration property sheet is displayed 6 Click on the Target tab 7 If this is the first time using Multi ICE click on add and select multi ice dll If not jump to step 9 8 Click on OK 9 Select Mul...

Страница 24: ...tor When the configuration has completed successfully a mes sage similar to the following is displayed in the host console window Angel Debug Monitor serial 1 04 Advanced RISC Machines SDT 2 11a for A...

Страница 25: ...n in the new defined interrupt handling to test if the interrupt which has occurred comes from the USART 0 Interrupt source number 2 and in this case branch at address saved in AIC_SVR 2 3 11 3 Stacks...

Страница 26: ...mming flash 1 sector Flash written and verified successfully The sequence described above can be automatically executed by using a command file Build a file command_file with the commands top_of_memor...

Страница 27: ...Boot ing with the Flash on page 3 5 In any case when an attempt to download the lower 64K is done the Flash downloader asks for a confirmation Extra caution is required when the lower 64K are not prot...

Страница 28: ...Setting Up the AT91EB01 Evaluation Board 3 16 AT91EB01 Evaluation Board User Manual...

Страница 29: ...Memory 7 H7FFFFFFF H70000000 1 4 16 or 64M bytes not used undefined External Memory 6 H6FFFFFFF H60000000 1 4 16 or 64M bytes not used undefined External Memory 5 H5FFFFFFF H50000000 1 4 16 or 64M by...

Страница 30: ...ry 0 H01FFFFFF H01000000 128K bytes 16 bit Flash 1M byte page size undefined On chip RAM reboot H00300FFF H00300000 4K bytes Reserved On chip device H002FFFFF H00200000 1M byte Reserved On chip device...

Страница 31: ...on a 0 1 2 54 mm pitch to gain access to the data address chip select read write oscillator output and wait state pins Pin 8 on this connector can be used to apply an external clock frequency to the b...

Страница 32: ...1 P4 and TIOB0 P2 5 7 Serial Interface Two 9 way D type connectors J5 6 are provided for serial port connection Serial port A J5 is used primarily for Host PC communication and is a DB9 Female connect...

Страница 33: ...nes can be made available by disabling some of the on board peripherals This is done using the surface mount links detailed below If these links need to be changed then a fine tipped soldering iron is...

Страница 34: ...he two SRAM sizes cannot be mixed LK4 Function A C RXD lines are set tri state on the RS 232 transceiver so that the receiver signals to AT91 can be used for external I O via the I O connector B C Rec...

Страница 35: ...rupts and LEDs Figure 5 I O Expansion Figure 6 Power Crystal Oscillator and Clock Distribution Figure 7 AT91M40400 in TQFP Package Figure 8 Serial Interface The pin connectors are indicated on the sch...

Страница 36: ...OA1 TIOB0 IRQ0_ONB SERIAL INTERFACE RS232 TXD_ONB 1 0 RXD 1 0 OSCILLATOR POWER OSCPOWER AT91CLK EBI_MCKI I O EXPANSION IOEXP SCK 1 0 TIOA 2 0 TIOB 2 0 TXD 1 0 RXD 1 0 TCLK 2 0 IRQ 2 0 P12 FIQ TXD_ONB...

Страница 37: ...74LVC139D GROUND SIGNAL FROM DB9 PLUG WILL BE PLACED OVER CHASSIS PLANE AND WILL CONNECT TO GROUND NEAR STARPOINT 124 3mm 112mm SRAM SRAM SRAM 0 1 PITCH LEAVE SPACE AROUND 2x32 HEADER TO FIT A DIN 416...

Страница 38: ...9 A18 A20 A18 A20 SW_A16 FLASH_WE SW_A16 D12 D9 D13 A5 NRD NOE D0 D1 D2 D3 GND A16 NWR0 NWR FLASH_WE A16 VDD VDD VDD VDD VDD VDD VDD VDD VDD VDD VDD R1 10K U6 74LVC139D 1 2 3 4 5 6 7 8 12 11 10 9 14 1...

Страница 39: ...actory fitted ARM EOI 0042 JTAG SCH B JTAG interface Reset Interrupts LEDs c ARM Ltd 90 Fulbourn Road Cherry Hinton Cambridge CB1 4JN B 4 8 Thursday August 20 1998 Title Size Document Number Rev Date...

Страница 40: ...OA2 P18 P19 TIOB2 TIOB0 VDD P12 FIQ_EXP P16 TCLK2 TXD0 P17 TXD0_EXP TXD_ONB0 TXD0_EXP TXD1_EXP TIOB1_EXP IRQ2 TXD1 TXD1_EXP TXD_ONB1 TIOB1_ONB IRQ0 IRQ0_EXP IRQ0_ONB RXD1 SCK1 P12 FIQ_ONB P12 FIQ P12...

Страница 41: ...r the various clock frequencies i e MAST 8 4 2 EBI Place capacitors as close as possible to the connector Print on PCB Power ARM EOI 0042 OSCPOWER SCH B Power Crystal oscillator and clock distribution...

Страница 42: ...R0 NWR NWAIT NWAIT RXD 1 0 NWDOVF AT91CLK P24 BMS TIOA0 D3 D7 D6 D5 D14 D2 D8 D9 D11 D12 TCLK0 D0 D10 D13 D15 D4 D1 P24 BMS VDD_PROC VDD VDD_PROC VDD VDD C38 10u WL2 WIRE LINK LK3 SMLINK 4K7 1 2 3 A C...

Страница 43: ......

Страница 44: ...arters 2325 Orchard Parkway San Jose CA 95131 TEL 408 441 0311 FAX 408 487 2600 Europe Atmel U K Ltd Coliseum Business Centre Riverside Way Camberley Surrey GU15 3YL England TEL 44 1276 686 677 FAX 44...

Отзывы: