Activating ARM9 with a working OS » History » Version 3

Vanč Levstik, 10.12.2010 03:12

1 1 Aleksander Bešir
h1. Activating ARM9 with a working OS
2 1 Aleksander Bešir
3 2 Aleksander Bešir
{{toc}}
4 2 Aleksander Bešir
5 1 Aleksander Bešir
h2. Basic concept
6 3 Vanč Levstik
7 3 Vanč Levstik
h3. Hardware
8 3 Vanč Levstik
9 3 Vanč Levstik
!http://www.shrani.si/f/2A/128/4kJtfyhW/arm-picture.jpg!
10 3 Vanč Levstik
We will be using FRI-SMS 32-bit microcontroller based on AT91SAM9620 chip from ARM9 family. It has fast ROM and RAM memories and embedds  Ethernet MAC, one USB Device Port, and a USB Host controller. It also integrates several standard peripherals, such as the USART, SPI, TWI, Timer 
11 3 Vanč Levstik
Counters, Synchronous Serial Controller, ADC and MultiMedia Card Interface. 
12 3 Vanč Levstik
More about microcontroller can be found in "Manual":http://laps.fri.uni-lj.si/fri-sms/datoteke/AT91SAM9260.pdf
13 3 Vanč Levstik
14 3 Vanč Levstik
h3. Software
15 3 Vanč Levstik
16 3 Vanč Levstik
For programming the device we will be using AT91 In-System programmer "SAM-BA":http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3883.
17 3 Vanč Levstik
We will also use "U-BOOT":http://www.denx.de/wiki/U-Boot as a second-step bootloader.
18 3 Vanč Levstik
Our operating system will be Linux, kernel version 2.6.27.
19 3 Vanč Levstik
20 3 Vanč Levstik
21 3 Vanč Levstik
h2. Installing OS
22 3 Vanč Levstik
23 3 Vanč Levstik
h3. Concept
24 3 Vanč Levstik
25 3 Vanč Levstik
FRI-SMS is built, so it boots from integrated ROM memory. It looks for bootloader into serial flash memory, if it is found it loads into internal SDRAM. This first-step bootloader then sets SDRAM controller and loads second-step bootloader(U-BOOT) into external SDRAM end executes it.
26 3 Vanč Levstik
Second-step bootloader takes care of other microcontroller settings and runs the OS.
27 3 Vanč Levstik
28 3 Vanč Levstik
If bootloader is not found in ROM it searches for bootloader thtrough USB interface and then through RS232 interface and waits there in loop.
29 3 Vanč Levstik
30 3 Vanč Levstik
31 3 Vanč Levstik
h3. Loading software into flash ROM memory
32 3 Vanč Levstik
33 3 Vanč Levstik
* Installing SAM-BA
34 3 Vanč Levstik
       After installing SAM-BA we have to set the drivers correctly. SAM-BA is based on setting connection throuogh COM port, so we have to install a driver which sets the PC, so it recognizes the USB as COM port. SAM-BA install includes a driver, but it does not work on x64 based operatin systems such as Windows Vista 64-bit and Windows 7 64-bit
35 3 Vanč Levstik
36 3 Vanč Levstik
37 3 Vanč Levstik
With SAM-BA we establish a connection between