Atmel AT91EB01 User Manual Download Page 25

Setting Up the AT91EB01 Evaluation Board

AT91EB01 Evaluation Board User Manual

3-13

A Flash space is used for code saving.

A SRAM space is used for code running, data and stacks of Angel.

Care must be taken with the stacks and the interrupt handling.

3.11.1

Memory Mapping

Angel is stored in the Flash from address 0x0100 2000, and occupies with the boot the
entire lower 64K bytes of the Flash. When started, Angel automatically copies itself into
the SRAM at address 0x0200 8000. This allows faster execution than if running from the
Flash; moreover, Angel can be used by the Flash programmer. 

Stacks and variables needed by Angel are based from 0x0200 0000 up to 0x0200 7FFF.
As 64K bytes are reserved for Angel and its future versions, it is mandatory to link any
application running in SRAM at addresses higher than 0x0201 8000. Otherwise, the
download of the image will overwrite Angel’s code, and communications between Angel
and the debugger will be lost.

3.11.2

Interrupt Handling

The Angel’s interrupt handling uses the vectoring feature of the AT91’s Advanced Inter-
rupt Controller. This implies that the ARM Interrupt vector ( at address 0x18 ) is set with
the instruction “ldr pc, [pc, #&-F20]”  in order to access AIC_IVR.This is assumed by
Angel itself. 

If the user wants to use Interrupt Vectoring, he just has to store the handler addresses in
the AIC_SVR, and to set the AIC_SMR. 

If he does not want to use this feature, he has to replace the ARM vector, then 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 Setup

As Angel needs to manage interrupts, it initializes the Interrupt stack pointer (r14_irq).
This register cannot be modified by the application without disagreement on the Angel
communications.

Other stack pointers are also initialized by default by the Angel startup sequence.  Par-
ticularly, user mode stack is initialized at the top of the memory. As this last differs
depending on the version of the AT91EB01, it is fixed at 0x0204 0000.

3.12

Using the Flash 
Downloader

3.12.1

Flash Downloading 
with ADW & MDW

Downloading into Flash overwrites any existing image already stored there. This may be
a version of Angel, or an application program. Ensure that the download completes suc-
cessfully before you reset or power off the board.

The flash downloader for the AT91EB01 is based on the flash downloader utility pro-
vided with the ARM Software Development Toolkit. With Angel, it works only if Angel is
running from RAM, and not from the flash that is to be programmed. Alternatively
EmbeddedICE or Multi-ICE can be used rather than Angel.

T h e   f l a s h   d o w n l o a d e r   i s   i n c l u d e d   b y   t h e   A T 9 1   l i b r a r y   i n   t h e   f o l d e r
“<MyFolderAT91>\Tools\FlashPgm\at91eb01”, file “flash.li”. This file can be used with
Angel as well as with EmbeddedICE or Multi-ICE.

The download can be done by different ways :

with an ICE (Embedded or Multi).

with Angel started in flash by the boot and auto-copied in SRAM before execution 
(refer to the section Memory Mapping in “Using Angel” on page 3-12).

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: