Atmel AT91EB01 User Manual Download Page 24

Setting Up the AT91EB01 Evaluation Board

3-12

AT91EB01 Evaluation Board User Manual

3.10.1

Serial Host 
Connection

Connect the host computer to the Serial A port USART on the AT91 Evaluation Board
using a 9-pin RS-232 cable. Power up the board (see “Powering Up the Board” on page
3-2)
.

3.10.2

Configuring the 
ARM Debugger for 
Windows to Use 
Angel

To configure the ARM Debugger for Windows (ADW) to access Angel rather than the
ARMulator:

1.

Start the ADW (not via the ARM Project Manager). In its default state, a mes-
sage similar to the following is displayed:

ARMULATOR 2.0 [Jan 6 1997]ARM7DTMI, 15.0MHz, 4Gb, Dummy MMU, Soft  Angel 

1.4,[Angel SWIs, Demon SWIs],FPE, Profiler, Tracer, Little endian

2.

Choose “Configure Debugger...” from the Options menu.

3.

Click on the “Target” tab.

4.

Select “Remote_A”.

5.

Click on “Configure...” and select “Serial”.

6.

Select the serial communication port and line speed. (The AT91 Development 
Board operates at up to 57600 bps).

7.

Click on “OK”.

The debugger is restarted. The Restarting dialog box is displayed. Rapidly changing
numbers are shown, indicating reading and writing to the target.

Note:

If the target board does not respond (the numbers in the Restarting dialog box 
do not change), ADP times out within approximately five seconds and defaults 
back to ARMulator. 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 

AT91EB0x(1.01)

Angel Debug Monitor rebuilt on Sep. 14 1998 at 14:52:22

Serial Rate: 38400

3.10.3

Configuring the 
armsd Debugger to 
Use Angel

To operate armsd with Angel using a serial connection, type:

armsd -li -adp -port s=1 -linespeed 38400 

where:

-li

is the little endian switch

-adp

is the switch to allow communication using ARM Debug 
Protocol required by Angel

-port s=1

indicates that the serial port is port 1 on the host com-
puter.Type the serial port number (1 or 2) or the host device 
name

-linespeed 38400

 

sets the baud rate for serial communications between the 
host computer and the Development System

When this command is entered, the host displays the debugger's opening banner, which
will be similar to:

A.R.M. Source-level Debugger vsn 4.46 (Advanced RISC Machines SDT2.10) [Dec 

13 1996] Angel Debug Monitor for AT91 (serial) 1.04 (Advanced RISC Machines 

SDT 2.11a)

Note:

The options available for armsd can be viewed by typing armsd -h at the com-
mand line.

3.11

Using Angel 

Angel has been ported on the AT91EB01 so that the majority of features of the
AT91M40400 are available to the application. The Angel Debug Monitor is intrusive.
Therefore, this implies some limitations on the use of the resources:

USART 0 is reserved for communications with the debugger.

Summary of Contents for AT91EB01

Page 1: ...AT91EB01 Evaluation Board USER MANUAL...

Page 2: ......

Page 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...

Page 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...

Page 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...

Page 6: ...Table of Contents iv...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 28: ...Setting Up the AT91EB01 Evaluation Board 3 16 AT91EB01 Evaluation Board User Manual...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 43: ......

Page 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...

Reviews: