Professional Documents
Culture Documents
REVISION
ORIGINATOR
SCR
0.1.0
Mar. 3, 2009
0.2.0
0.3.0
FriendlyARM
REV DATE
copyright@2007 - 2013
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
1 / 257
COPYRIGHT STATEMENT
The content (content being images, text, programs and scripts) of this English
manual is copyright Friendly ARM Co., Ltd. All rights expressly reserved.
Any content of the manual printed or downloaded may not be sold, licensed,
transferred, copied or reproduced in whole or in part in any manner or in or on any
media to any person without the prior written consent of Friendly ARM Co., Ltd
including but not limited to:
transmission by any method
storage in any medium, system or program
display in any form
performance
hire, lease, rental or loan
Requests for permission to reproduce material from this manual should be addressed
to Friendly ARM Co., Ltd.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
2 / 257
Index
Chapter 1 Introduction ........................................................................................................................................................... 8
1.1 Introduction to Mini2440 .......................................................................................................................................... 8
1.1.1 Mini2440 Overview......................................................................................................................................... 8
1.1.2 Mini2440 Hardware Features ........................................................................................................................ 9
1.1.3 Linux Features .............................................................................................................................................. 11
1.1.4 WinCE 6.0 Features...................................................................................................................................... 14
1.2 Board Schematics .................................................................................................................................................... 15
1.2.1 Jumper ........................................................................................................................................................... 15
1.2.2 Layout ............................................................................................................................................................ 15
1.3 Interface Specifications ........................................................................................................................................... 16
1.3.1 Address Space ............................................................................................................................................... 16
1.3.2 SDRAM ......................................................................................................................................................... 17
1.3.3 Flash ............................................................................................................................................................... 18
1.3.4 Power ............................................................................................................................................................. 18
1.3.5 System Reset.................................................................................................................................................. 20
1.3.6 LED ................................................................................................................................................................ 20
1.3.7 User Button ................................................................................................................................................... 21
1.3.8 AD Conversion .............................................................................................................................................. 21
1.3.9 PWM Buzzer ................................................................................................................................................. 22
1.3.10 Serial Port.................................................................................................................................................... 22
1.3.11 USB............................................................................................................................................................... 23
1.3.12 LCD Interface ............................................................................................................................................. 23
1.3.13 EEPROM..................................................................................................................................................... 24
1.3.14 Ethernet ....................................................................................................................................................... 25
1.3.15 Audio ............................................................................................................................................................ 25
1.3.16 JTAG ............................................................................................................................................................ 26
1.3.17 GPIO ............................................................................................................................................................ 27
1.3.18 CMOS Camera ........................................................................................................................................... 28
1.3.19 System Bus .................................................................................................................................................. 29
Chapter 2 Get Started ........................................................................................................................................................... 31
2.1 Board Setup and Connection .................................................................................................................................. 31
2.1.1 Boot Opions ................................................................................................................................................... 31
2.1.2 Connect Peripherals ..................................................................................................................................... 31
2.1.3 Set up Hyper Terminal................................................................................................................................. 31
2.2 Install Systems with Minitools ................................................................................................................................ 32
2.2.1 Install Minitools ............................................................................................................................................ 32
2.2.1.1 Install on Windows ............................................................................................................................ 32
2.2.1.2 Install on Linux .................................................................................................................................. 33
2.2.2 Flash Superboot to SD Card ........................................................................................................................ 34
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
3 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
7 / 257
Chapter 1 Introduction
This manual is intended to provide the user with an overview of the Mini2440 board, its
benefits, features, specifications, and set up procedures.
- FAT32
- NFS
Drivers
- Serial ports
- DM9000 driver
- Audio (UDA1341)
- RTC driver
- User LEDs
- USB host
- LCD driver (it supports 3.5-inch, 4.3-inch, 7-inch, 8-inch, LCD2VGA1024x768,
LCD2VGA800x600, LCD2VGA640x480 and EZVGA800x600)
- Touch screen driver
- USB camera
- USB mouse, keyboard, flash drive and portable hard disk
- SD card driver, up to 32 GB
- I2C-EEPROM
- PWM Buzzer
- LCD backlight driver
- A/D Conversion
- Watchdog driver (watchdog reset is cold reset)
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
12 / 257
Features
- Fast booting (boot up within 10 seconds)
- Configurable NBOOT: users can customize the process bars color, position, length
and width, and startup images position and background.
- PWM Buzzer
- CMOS camera driver
- I2C-EEPROM
- ADC Conversion
- Watchdong
- User button (six)
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
14 / 257
- LED driver
- Backlight control
- RTC
- DM9000
- SD Card, up to 32G
- USB keyboard, mouse, flash drive
- Audio input/output driver
- LCD driver (it supports 3.5-inch, 4.3-inch, 7-inch, 8-inch, LCD2VGA1024x768,
LCD2VGA800x600, LCD2VGA640x480 and EZVGA800x600)
- Screen Rotation
- Serial port
1.2.2 Layout
The Mini2440 schematic is presented as below. It includes most of the popular interfaces,
ports, IOs and buses on a 100 x 100 mm board.
Note: in the diagram below those orange points indicate the first pins of those
interfaces/ports/connectors accordingly.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
15 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
16 / 257
1.3.2 SDRAM
The Mini2440 has two 32M-byte SDRAM chips therefore the total RAM is 64M
(HY57V561620FTP/MT48LC16M16A2). The starting address is 0x30000000.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
17 / 257
1.3.3 Flash
The Mini2440 has two types of Flash: Nor Flash and Nand Flash. The Nor Flash is
SST39VF1601, 2M bytes and the Nand Flash is K9F2G08, 256M bytes. By switching the on
board S2 switch you can boot the board from either the Nor Flash or the Nand Flash. The
following shows the Nor Flash and Nand Flashs schematics
1.3.4 Power
The Mini2440 takes an external 5V power and converts it to 3.3V, 1.8V and 1.25V.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
18 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
19 / 257
1.3.6 LED
The Mini2440 has 4 LEDs which are directly connected to GPIOs and effective on low
level.
LED1
LED2
LED3
LED4
GPIO
GPB5
GPB6
GPB7
GPB8
Multiplexed
nXBACK
nXREQ
nXDACK1
nDREQ1
name
nLED_1
nLED_2
nLED_3
nLED_4
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
20 / 257
K2
K3
K4
K5
K6
Interrupt
EINT8
EINT11
EINT13
EINT14
EINT15
EINT19
Multiplexed
GPIO
GPG0
GPG3
GPG5
GPG6
GPG7
GPG11
Special
function
N/A
nSS1
SPIMISO1
SPIMOSI1
SPICLK1
TCLK1
CON12 pin
CON12.1
CON12.2
CON12.3
CON12.4
CON12.5
CON12.6
1.3.8 AD Conversion
The Mini2440 has 4 ADC channels (CON4-GPIO) for different purposes. AIN0 is
connected to a adjustable resistor for testing
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
21 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
22 / 257
1.3.11 USB
This board has two types of USB interfaces: one USB Host and one USB Slave. The USB
Host functions the same as on PC's. You can access USB camera, USB keyboard, USB
mouse, USB flash drives and other common USB peripherals. You can also use USB Hub
extensions. Each OS has native USB Hub drivers. The USB Slave is generally used to
download from a host. If you use WinCE, connecting from a PC to this USB port will invoke
ActiveSync and the Mini2440 can be viewed as a volume, and data and programs dragged
and dropped between host PC and the Mini2440 and the other USB slave.
clock, enable, disable etc., and 8:8:8 models of RGB data. It has a PWM output and a reset
signal (nRESET). LCD_PWR is the backlight switch signal.
1.3.13 EEPROM
The Mini2440 has an I2C (AT24C08) pin which is directly connected to the CPU. The
EEPROM has 256 bytes.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
24 / 257
1.3.14 Ethernet
The Mini2440 base board has a DM9000 LAN chip for adaptive 10/100M Ethernet.
1.3.15 Audio
The S3C2440 supports I2S which can be directly connected to 8/16 bit CODEC. The
Micro2440 uses the I2S interface with the UDA1341.
The audio output is on the 3.5mm green jack. The board also has a microphone input.
When recording we suggest users to move the microphone close to the audio source
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
25 / 257
1.3.16 JTAG
When a development board just comes off from production lines, it is just a bare board
without any data. We will burn the first program to it through the JTAG interface, which is
SUPERVIVI. With SUPERVIVI, we can download more programs and utilities to the board
via USB further. In addition, the JTAG is more often used for debugging. In fact, most of the
widely used utilities in markets like JLINK, ULINK and other simulators actually work via
the JTAG interface. A standard JTAG has 4 signals :TMS, TCK, TDI and TDO which are
test mode select input, test clock, test data input and test data output. These 4 signal lines
plus a power line and a ground line form 6 lines in total. In order for testing, most simulators
even have a reset signal. Therefore, a standard JTAG is meant to have those signal lines, and
it does not mean whether it is 20Pin or 10Pin. As long as a JTAG interface has those signal
lines, it will be a standard JTAG interface. The mini2440 has a 10Pin JTAG interface which
has complete standard JTAG signals.
Notes: for beginners who just want to focus on Linux or WinCE development, a JTAG
interface has no significance because most development boards already have a complete BSP
which includes commonly needed serial ports, network port and USB port. When a board
runs with Linux or WinCE installed, users can fully utilize more convenient functions and
utilities provided by the operating system to debug. They do not need a JTAG. Even if you
can trace your programs it will be extremely tough to step debug because it will go into the
operating system. A JTAG interface might only be usable for users who do not need to run a
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
26 / 257
complicated operating system or just need a simple operating system (such as uCos2). Most
development boards which already have a Bootloader or BIOS are completely functional and
do not need to be debugged.
1.3.17 GPIO
GPIO is the abbreviated form of General Purpose Input Output. The mini2440 has a 34
Pin 2.0mm GPIO interface, i.e. CON4. In fact, CON4 has not only quite a few GPIO pins but
also some CPU pins such as AD0-AIN3, CLKOUT and so on. The SPI interface, I2C
interface, GPB0 interface and GPB1 in the schematic are all GPIO, but they are marked as
special function interfaces. They can be configured for other purposes too by setting related
CPU registers
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
27 / 257
CON4
Spec
Comment
CON4
Spec
Comment
VDD5V
5V power
VDD33V
3.3V power
GND
GND
nRESET
Reset
AIN0
AD input channel 0
AIN1
AD input channel 1
AIN2
AD input channel 2
AIN3
AD input channel 3
EINT0
EINT0/GPF0
10
EINT1
EINT1/GPF1
11
EINT2
EINT2/GPF2
12
EINT3
EINT3/GPF3
13
EINT4
EINT4/GPF4
14
EINT5
EINT5/GPF5
15
EINT6
EINT6/GPF6
16
EINT8
EINT8/GPG0
17
EINT9
EINT9/GPG1
18
EINT11
EINT11/GPG3/nSS1
19
EINT13
EINT13/GPG5/SPIMISO1
20
EINT14
EINT14/GPG6/SPIMOSI1
21
EINT15
EINT15/GPG7/SPICLK1
22
EINT17
EINT17/GPG9/nRST1
23
EINT18
EINT18/GPG10/nCTS1
24
EINT19
EINT19/GPG11
25
SPIMISO
SPIMISO/GPE11
26
SPIMOSI
SPIMOSI/EINT14/GPG6
27
SPICLK
SPICLK/GPE13
28
nSS_SPI
nSS_SPI/EINT10/GPG2
29
I2CSCL
I2CSCL/GPE14
30
I2CSDA
I2CSDA/GPE15
31
GPB0
TOUT0/GPB0
32
GPB1
TOUT1/GPB1
33
CLKOUT0
CLKOUT0/GPH9
34
CLKOUT1
CLKOUT1/GPH10
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
28 / 257
CAMERA
Spec
Multiplex
CAMERA
Spec
Multiplex
I2CSDA
GPE15
I2CSCL
GPE14
EINT20
GPG12
CAMRST
GPJ12
CAMCLK
GPJ11
CAM_HREF
GPJ10
CAM_VSYNC
GPJ9
CAM_PCLK
GPJ8
CAMDATA7
GPJ7
10
CAMDATA6
GPJ6
11
CAMDATA5
GPJ5
12
CAMDATA4
GPJ4
13
CAMDATA3
GPJ3
14
CAMDATA2
GPJ2
15
CAMDATA1
GPJ1
16
CAMDATA0
GPJ0
17
VDD33V
3.3V power
18
VDD_CAM
VDD_CAM
19
VDD18V
1.8V power
20
GND
GND
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
29 / 257
CON5
Spec
Comment
CON5
Spec
Comment
VDD5V
5V Power
GND
Ground
EINT17
Interrupt 17
EINT18
Interrupt 18
EINT3
Interrupt 3
EINT9
Interrupt 9
nGCS1
nGCS2
nGCS3
10
nGCS5
11
LnOE
Read Enable
12
LnWE
Write Enable
13
nWAIT
Wait
14
nRESET
Reset
15
nXDACK0
nXDACK0
16
nXDREQ0
nXDREQ0
17
LADDR0
Address 0
18
LADDR1
Address 1
19
LADDR2
Address 2
20
LADDR3
Address 3
21
LADDR4
Address 4
22
LADDR5
Address 5
23
LADDR6
Address 6
24
LADDR24
Address 24
25
LDATA0
Data 0
26
LDATA1
Data 1
27
LDATA2
Data 2
28
LDATA3
Data 3
29
LDATA4
Data 4
30
LDATA5
Data 5
31
LDATA6
Data 6
32
LDATA7
Data 7
33
LDATA8
Data 8
34
LDATA9
Data 9
35
LDATA10
Data 10
36
LDATA11
Data 11
37
LDATA12
Data 12
38
LDATA13
Data 13
39
LDATA14
Data 14
40
LDATA15
Data 15
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
30 / 257
and you will be guided to install it. Just follow the prompts and take the default options.
When it asks whether you want install the driver please go by continue anyway. After
installation is done please unplug and plug the USB cable and Windows will prompt that it is
updating drivers. After Windows updating is done you can continue
If your installation is successful there will be an icon on your desktop. You can double
click on it to run:
Please
login
and
execute
the
installation
as
root.
Please
copy
the
On the left bottom of the window there is an LED which is green indicating the board is
connected successfully. On the left bottom there is a button which can start your board
directly without switching to NAND.
Before install systems please select the system you want to install e.g. Linux and then its
configuration will be presented as follows:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
35 / 257
You can just click on the images button to select an images directory which contains
complete installation files for all systems and the Minitools will show all the info listed in
the FriendlyARM.ini.
With the Minitools utility you can update either the whole system (all image files) or
individual image files e.g. the kernel image file. After you are done with your installation
configuration please click on Start flashing
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
36 / 257
After installation is done you can boot your board and enter your system.
Note: sometime users complain that Minitools shows the board isnt connected to PC. It is
very likely that the USB download driver is not properly installed on your PC and you can
try manually install the USB download driver which is under the Minitools directory in the
shipped DVD
Nor Flash. We already flashed the superboot in Nor Flash. What users need to do is to get an
SD card which should be FAT formatted and copy the whole image directory to the SD card.
USBMode = No
Action = Install
OS = Linux
VerifyNandWrite = Yes
LowFormat = No
Status Type = Beeper| LED
# Linux part
Linux-BootLoader = Superboot2440.bin
Linux-Kernel = Linux/zImage_W35
Linux-CommandLine = noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0
Linux-RootFs-InstallImage = Linux/rootfs_qtopia_qt4.img
Step2: copy the following files from the DVDs to your SD card
File
Comment
images\Superboot2451.bin
Bootloader
images\Linux\zImage
Linux Kernel
images\Linux\rootfs_qtopia_qt4.img
images\FriendlyARM.ini
Configuration file
Step3: insert the SD card to the boards SD card socket. Switch S2 to SD and power on. If
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
38 / 257
USBMode = No
Action = Install
OS = CE
VerifyNandWrite = Yes
LowFormat = No
Status Type = Beeper| LED
# Windows CE 6 part
WindowsCE6-Bootloader = wince6/nboot_W35.bin
WindowsCE6-BootLogo = wince6/bootlogo.bmp
WindowsCE6-InstallImage = wince6/NK_W35.bin
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
39 / 257
Step2: make sure your card has the following files (actually you can copy the whole image
directory to your SD cards root directory)
File
Comment
images\wince6\nboot_w35.bin
Bootloader. It can boot CE and other OS such as Linux. It can be run from an SD card.
images\wince6\bootlogo.bmp
CE start logo. You can replace it with your own. It should be a 24bit bmp.
images\wince6\NK-W35.bin
images\FriendlyARM.ini
Configuration file
Step3: insert the SD card to the boards SD socket and switch S2 to the Nor side. Power on
the board and you will hear a beep and see the following messages on your terminal
Try to find SD card... Found.
Installing bootloader...
Installing bootloader succeed
Installing bootloader succeed
Installing CE Logo...
Width, Height, BPP is 240 320 24
Logo Saved
Installing CE Logo succeed
Installing NK.bin...
Step4: after system burning is done you will hear two continuous beepings and the LCD
will show the burning status. Reboot the system from Nand you will see CE load.
File
Comment
Note
2440test_N35.bin
2440test_X35.bin
1. We call all
2440test.bin
2440test_W35.bin
For 3.5LCD
2440test_T35.bin
2440test_H43.bin
For 4.3LCD
2440test_W50.bin
For 5.0LCD
2440test_L80.bin
2440test_S70.bin
For 7.0LCD
2440test_A70.bin
2440test_VGA1024x768.bin
these
utilities
Please follow the steps below to download the 2440test to your board:
1) Switch S2 to Nor
2) Launch the MiniTools on your PC and connect your board to the PC
3) Select the 2440test utility and download as follows:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
42 / 257
2. After enter the system go to start->setting and click on the calibrate icon you will see
the above screen too.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
43 / 257
There are five pages which represent five categories of software and utilities. Click
on the start on the left bottom you will see five sub-menus which are the same as
these five pages. The FriendlyARM page contains software utilities that are all
developed or migrated by us. All the other utilities and documents in other pages are
open source
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
44 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
46 / 257
Click on Applications -> System Info -> Storage you will view your SD card or flash
drives detailed memory information:
2.5.7 Calculator
Go to Applications and click on the calculator icon. You can select Simple, Fraction,
Scientific and Conversion.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
47 / 257
2.5.8 Terminal
Go to Applications, click on the terminal icon and you will be able to type Linux
commands.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
48 / 257
You can set your network parameters and save it to the /etc/eth0-setting.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
49 / 257
After an AP is found click on its SSID to connect. The following dialog will pop up and
you need to input its password:
After typing the password (leaving it as blank if no password is set) click on Connect
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
50 / 257
If your Ethernet is connected the following dialog may pop up asking you to disconnect it
(ifconfig eth0 down) otherwise some network utilities would connect the Ethernet rather than
the WiFi. Clock on Yes to close it. To reconnect it you can either start Network Setting
or type ifconfig eth0 up.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
51 / 257
Click on Net Detail to view more detailed network information such as IP, DNS and etc.
If the WiFi connection is a success, you can minimize its GUI to a small icon by clicking
on the Close button. To restore its GUI you can click on the small icon
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
52 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
53 / 257
Click on the pull down menu you will see two options: IP via DHCP and Configure IP
manually
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
54 / 257
In addition we migrated Arora browser to our system. You can click on the WebKit icon
to start it.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
55 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
56 / 257
Click on Read EEPROM Data via IIC you will see the reading process
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
57 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
58 / 257
The title bar of the utility shows the default setting is ttySAC1 115200 8N1 [C], and it
implies the default port is:
- Serial Port Deivce: /dev/ttySAC1, it corresponds to the second port UART1
- Bits Per Second: 115200
- Data Bits: 8
- Flow Control: None
- Stop Bits: 1
- [C]: stands for the character mode;
- [H]: stands for Hex
There are two edit areas in the interface, the top one shows received data which cannot be
edited; the bottom one shows sent data which can be edited via a USB keyboard or a soft
keyboard.
Click on the Connect button to open /dev/ttySAC1, type some characters in the edit area,
click on the Send button and it will send data to the connected serial port device. The
screenshot below shows what a Windows super terminal receives (Note: the settings for this
super terminal should be 115200 8N1)
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
59 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
60 / 257
2.5.18 3G Networking
We specially developed a 3G network utility for Android. It can automatically detect and
support up to more than one hundred USB network cards for all these systems: WCDMA,
CDMA2000 and TD-SCDMA. We have a list of the USB 3G cards that are supported (listed
in later sections).
Our following example was tested with HUAWEI E1750 for WCDMA
Step1 insert a SIM card to your USB device
Step2 connect your USB card to the board and start the 3G utility
Step3 the 3G utility will detect the E1750 card. Click on its icon
Step4 in the dialog shown below there is an orange icon with a - in the center. This means
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
61 / 257
Step5 if the connection is a success it will list the detailed network information
Click on the REC button to start recording. When you speak to the microphone on the board
you will see audio waves shown on the screen. Click on the STOP button to stop recording.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
62 / 257
Click on the PLAY button to play what you recorded and you can see what you recorded
has been saved as WAV files in the Documents directory.
Note: Qtopia 2.2.0 has a recorder utility by itself. But it cannot record audio. We leave it as
what it is.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
63 / 257
Camera. Clicking on Snap takes pictures of what your are previewing. After a picture is
taken, Snap changes to Continue. Click on it you will be able to preview again and the
picture
you
just
took
will
be
saved
in
Documents
(located
in
/root/Documents/image/jpeg). Click on the picture you just took in Documents you will
see it is opened in Qtopias image utility.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
65 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
66 / 257
directly connected to an adjustable resistor W1. How do they share a common converter? The
following screenshots will show you:
Click on the ADC Testing icon in the FriendlyARM tab:
Turning the W1 adjustable resistor, you will see the conversion changes. It has 10 digit
precision, therefore the minimum value is close to 0 and the maximum value is close to 1024.
When you click on the touch screen, the A/D converter will take the touch screen as the
channel, you will see the result -1; when you move your touch pen away from the screen, the
A/D converter will take AIN0 as the channel again.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
67 / 257
The penpad utility is an easy to use program developed by FriendlyARM. Start it and a
yellow drawing area will show up. Draw whatever you like in the area (the pen color is black,
its width is 1 pixel), go to File -> Save, you will save what you draw to a png file (in the
Documents tab, the /Documents/image/png/ directory). The file name begins with 001. The
maximum number of files that can be saved is 999. The following screenshot shows that our
writing was smooth which meant our pen was accurate.
Click on the text editor icon in the Application Programs subgroup, scan a code with
your scanner, then you will see the code number displayed in the editor.
It now supports three languages: English, Chinese and Japanese. When you select English,
then click on OK, a message will popup asking you if you want to change your language
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
70 / 257
setting. Clicking on Yes Qtopia will reboot; clicking on No it will return. (Note: the
Chinese and Japanese versions only have file names translated).
Besides you can set the alarm clock. When it is triggered you will hear a beeping sound
which lasts about one minute and the following popup window will show up. Click on OK to
close the alarm clock.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
72 / 257
Select the direction you want, click on OK you will see the screen rotate.
Note: sometimes you need to reboot Qtopia to see the rotation. It is a Qtopia utility and we
havent made any change to it. In addition the rotation effect is implemented via Qtopia
software and has nothing to do with LCD drivers.
After rotation you will notice that all FriendlyARM utilities get rotated too. We
implemented this feature to make our utilities displayed properly with different LCDs
Those programs listed are available programs including all Qtopia programs. The status
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
73 / 257
column indicates whether a program is set to auto start. The status is unique. For instance, if
the Serial Port Assistant is checked its status will show Auto Start, click on Save, a
message box will pop up prompting that the net setting has been successfully saved. Close this
utility, reboot the system you will see the Serial Port Assistant is auto run.
To disable auto run for a program, just click on Clean and Close, a message box will
pop up, click on Yes the auto run for that program will be disabled.
Shutdown: Press this button, Linux will end all the programs and services to shutdown the
whole system. After the whole system is shutdown, the CPU will not be running and
the system consumes lest power. However since our system doesnt have a hardware power
down circuit you still can see the power LED on the board is on.
Reboot: This is a hot reboot button. If your system boots from the Nor Flash, after you
press this button, the system will shutdown, reboot and enter the supervivi main menu. If
your system boots from the Nand Flash, after you press this button, the system will shutdown,
reboot and enter the Qtopia interface.
Note: Reboot is different from the Watchdog function we will introduce. The Watchdog
is cold reboot and doesnt end programs or services but reset the system instead.
Restart Server: it restarts the Qtopia system only. It doesnt interrupt the running Linux.
Terminate Server: it shuts down the Qtopia system. After press this button, the Qtopia
interface will be disabled. What is left on the screen is the left data in RAM and it is not an
active graphic interface.
Note: the original Qtopia 2.2.0 system doesnt shutdown or reboot effectively, we
changed its code to make it work.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
75 / 257
2.5.33 Watchdog
The Watchdog is a very basic utility in embedded systems. The S3C2440 chip already
has a watchdog. The latest Linux kernel has drivers for it.
Click on the Watchdog icon in the FriendlyARM tab
Note: before take any action, please read the notes in the red area: once start, no way out,
feed the dog, or else reboot!
Here we set a countdown time 15 seconds. To feed the dog, click on the Feed button.
Keep feeding, it will always have bones and the system will not reboot.
system. In Qtopia-2.2.0, by clicking on a common application icon users will be able to start
QtE-4.6.3. After close the QtE-4.6.3 utility, users will be able to return to Qtopia-2.2.0.
QtE-4.6.3 runs as follows. It is a program manager that displays a CoverFlow effect. You
can drag it left and right and run it by clicking on one of the Covers.
You can exit QtE-4.6.3 by clicking on Exit Embedded Demo and return to Qtopia-2.2.0
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
77 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
78 / 257
This command will play your.mp3 in its default way. You can get help by running
madplay -h. Below is a screenshot of how it works.
The USB drive has a device name /dev/udisk. Entering the /udisk directory, you will
be able to browse its contents.
Note: if your drive cannot be detected, please check whether it is FAT32/VFAT.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
79 / 257
The system will create a /sdcard directory and mount the SD card on it.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
80 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
82 / 257
After file transferring is done you can check its validility via the md5sum
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
84 / 257
command below:
#armcomtest d /dev/ttySAC2 -o
Here is a screenshot
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
86 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
87 / 257
Type i2c r in a terminal you will be able to read data from 24C08.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
88 / 257
2.6.14 Telnet
Telnet is a popular utility. If your board is connected to the internet you can telnet a bbs.
First make sure your boards IP is 192.168.1.230 and your board is communicating with
other machines.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
89 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
90 / 257
To ping through an outside website you also need to configure your DNS. You may get it
from your network manager
The one in our example was 202.96.128.86. Therefore we set our board as follows:
#rm /etc/resolv.conf; This is to remove the existing configuration file.
#touch /etc/resolv.conf; This is to generate a resolv.conf file
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
91 / 257
#echo nameserver 202.96.128.86 >> /etc/resolv.conf; Set up the DNS configuration file
resolv.conf with your DNS IP or you can edit it with vi.
In our example the MAC was 089090909090, this is the default MAC
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
92 / 257
address and has been hard-coded in the kernel. If you want to update it you have to
recompile the kernel. In order to change the MAC dynamically you need to close your
network connection and then fill your new MAC:
#ifconfig eth0 down
#ifconfig eth0 hw ether 00:11:AA:BB:CC:DD; note: a,b,c,d,e,f could be lower case
Restart the network, check your MAC via ifconfig and verify your network via ping:
#ifconfig eth0 up
#ifconfig
#ping 192.168.1.1
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
94 / 257
You can test each of these items. The LED Test manipulates the LEDs via CGI and
it includes two display modes and three display rates.
To stop the web service you need to type the following commands:
#/etc/rc.d/init.d/httpd stop
Then restart the service
#/etc/rc.d/init.d/httpd start
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
95 / 257
This means the dongle is recognized. Then you can follow the commands below:
(1) Close all the Ethernet connections (DM9000)
[root@FriendlyARM /]# ifconfig eth0 down
[root@FriendlyARM /]#
(6) Select AP
[root@FriendlyARM /]# iwconfig wlan0 ap auto
#
# Trap CTRL-C &c only in this shell so we can interrupt subprocesses.
#
trap ":" INT QUIT TSTP
/bin/hostname FriendlyARM
[ -e /proc/1 ] || /bin/mount -n -t proc none /proc
[ -e /sys/class ] || /bin/mount -n -t sysfs none /sys
[ -e /dev/tty ] || /bin/mount -t ramfs none /dev
/bin/mount -n -t usbfs none /proc/bus/usb
echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s
/bin/hotplug
# mounting file system specified in /etc/fstab
mkdir -p /dev/pts
mkdir -p /dev/shm
/bin/mount -n -t devpts none /dev/pts -o mode=0622
/bin/mount -n -t tmpfs tmpfs /dev/shm
/bin/mount -n -t ramfs none /tmp
/bin/mount -n -t ramfs none /var
mkdir -p /var/empty
mkdir -p /var/log
mkdir -p /var/lock
mkdir -p /var/run
mkdir -p /var/tmp
/sbin/hwclock -s
syslogd
/etc/rc.d/init.d/netd start
echo " " > /dev/tty1
echo "Starting networking..." > /dev/tty1
sleep 1
/etc/rc.d/init.d/httpd start
echo " " > /dev/tty1
echo "Starting web server..." > /dev/tty1
sleep 1
/etc/rc.d/init.d/leds start
echo " " > /dev/tty1
echo "Starting leds service..." > /dev/tty1
echo " "
sleep 1
echo " " > /dev/tty1
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
100 / 257
/etc/rc.d/init.d/alsaconf start
echo "Loading sound card config..." > /dev/tty1
echo " "
/sbin/ifconfig lo 127.0.0.1
/etc/init.d/ifconfig-eth0
/bin/qtopia &
echo " " > /dev/tty1
echo "Starting Qtopia, please waiting..." > /dev/tty1
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
101 / 257
Comment
Driver files
mini2440\src\drivers\userkey
Compiler
VS2005
Device name
/dev/buttons
Notes:
Go to FriendlyARM, click on Buttons you will see the following windows. Clicking
on the buttons you will observe their color changes
Comment
Driver files
mini2440\src\drivers\leddriver
Compiler
VS2005
Device name
Notes:
Go to FriendlyARM, click on LED-Test you will see the following windows and you
can manipulate LEDs by clicking on the buttons on it
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
102 / 257
Comment
Driver files
mini2440\src\drivers\touch
Compiler
VS2005
Device name
Notes: ADC driver files are implemented in the touchscreen driver
When you adjust the W1 resistor you will see the value changes.
Note: the W1 resistor is hidden bebind the LCD.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
103 / 257
Comment
Driver files
Mini2440\src\drivers\iic
Compiler
VS2005
Device name
Comment
Driver files
mini2440\src\drivers\pwm
Compiler
VS2005
Device name
Go to FriendlyARM, click on PWM Buzzer you will see the following windows.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
104 / 257
Comment
Driver files
Mini2440\src\drivers\wdt
Compiler
VS2005
Device name
Note:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
105 / 257
Comment
Driver files
mini2440\src\drivers\display
Compiler
VS2005
Device name
Note:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
106 / 257
Comment
Driver files
mini2440\src\drivers\camera
Compiler
VS2005
Device name
Note:
Go to FriendlyARM, click on CMOS Camera you will see the following windows
You can click on Snap to take pictures which will be saved in the Documents
directory.
Comment
Driver files
mini2440\src\drivers\wavedev
Compiler
VS2005
Device name
Note:
Click on Record to begin recording. Now if you speak to the microphone on the board
your voice will be recorded. Click on Stop to stop redording
Comment
Driver files
mini2440\src\drivers\serial
Compiler
VS2005
Device name
Note:
Comment
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
109 / 257
Driver files
Compiler
Device name
Note:
Mini2440\src\drivers\touch
VS2005
The default WinCE systems touch screen parameters are for 3.5LCD. Other LCD
systems may require different settings therefore users need to re-calibrate the screen. Below
are the steps:
Step 1: connect a USB mouse to your board, go to Start -> Settings -> Control Panel,
locate the Stylus icon, double click to open its property window and click on Calibrate ->
ReCalibrate
Follow the systems prompt to start calibration. After you are done you will see the
following screen. Click on any position you will return to the property window. Please click
on OK to save and exit.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
110 / 257
If you want to save the setting, you can go to Start -> Suspend and reboot.
Comment
Driver files
Mini2440\src\drivers\dm9000
Compiler
VS2005
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
111 / 257
Device name
Note:
Before you can browse the internet you need to set up your IP, gateway and DNS
properly.Please go to Start -> Settings->Control Panel, launch the network setting utility
and locate your DM9CE1.
Double click on the DM9CE1 icon you will see the following dialog in which you can
make your network configurations.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
112 / 257
Comment
Driver files
Mini2440\src\drivers\backlight
Compiler
VS2005
Device name
Note:
If your system is preinstalled with WindowsCE6, you may notice that your LCD backlight
will turn off if it doesnt accept any touch within 30 seconds. This is manipulated by the
backlight control function. In WinCE the backlight control driver utilizes standard system
interfaces and you can easily manipulate it via software.
Please go to Start -> Control Panel -> Display
Click on backlight you will be able the set its turn-off time. By default it is 30 seconds
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
113 / 257
Click on Advanced
You can slide the slider to adjust the backlight. Click on close to return to your previous
interface
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
114 / 257
Comment
Driver files
mini2440\src\common\rtc
Compiler
VS2005
Device name
Note:
Click on the right bottom of the WinCE status bar and set up your time. After you are
done click on OK to return. If you want to save your changes please click on suspend.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
115 / 257
On the MAC Address setting dialog, Old shows the current MAC. You can type your
new in New or click on the Genbutton to generate a ramdom MAC which in general
achieves better results:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
118 / 257
Click on Update MAC to save your MAC into the registry and reboot your system
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
119 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
120 / 257
Step2The system will check the installation disk. It can be ignored, just press Skip to the
next step
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
121 / 257
Step4set the installation language. In this example, we chose the simplified English.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
122 / 257
Step5set the keyboard, in this example, we chose the U.S. key board.
In our example, we didnt set it as DHCP, we used a static IP instead, and typed
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
123 / 257
Click on the OK button and go on to set the machine name, gateway and DNS.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
124 / 257
Step 8set up the administrators password, i.e. the roots password. root is the super user.
It should be at least 6 characters
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
125 / 257
Step 9disk partition. We followed the default option. Before do this, please back up disk
data.
Click on Next, it will warn the user that all the data will be deleted. Usually we would do
this installation in VMWARE, so we chose Write changes to disk and disk format would
begin.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
126 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
127 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
128 / 257
Step15: after installation completed, click on the reboot button on the page shown in step 14
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
129 / 257
Step17: create new users. We ignored user creation and went to the next step.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
130 / 257
Step18: setup date and time. We ignored this and went to the next step.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
131 / 257
On the popup window shown below, just click on the red marked button.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
132 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
133 / 257
When login as root, the following popup window will show up, just click on Continue
Below is the interface the user will see after a successful login.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
134 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
135 / 257
Step 3: click on the Add User button, type the user name and password
Click on OK, you will see that a new plg user has been created, and a plg directory has
been created in the /home directory too.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
136 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
137 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
138 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
139 / 257
Go ahead and connect again you will see the shared files.
If you want to access this directory from the command line utility, you can do it by hitting
the TAB key.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
140 / 257
To disconnect the shared directory, right click on the shared directory and following the
operations in the screenshot below:
*(rw,sync,no_root_squash)
/opt/FriendlyARM/mini2440/root_qtopia_qt4 is a NFS shared directory, it can be
mounted as the root file system through NFS;
* means all clients can mount to this directory.
rw means all clients that have been mounted to this directory have the read and write
rights to this directory.
no_root_squash means all clients that have been mounted to this directory can be set to a
root user
Step 2: Starting NFS
You can start the NFS service through either command line or graphic interface. We set up
the NFS service to let others access shared directories. By default Fedora starts it firewall
which will disable the NFS service. So you need to disable the firewall by typing lokkit in
a command line window.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
142 / 257
Select (*) Disabled, and click on the OK button to disable the firewall permanently.
Now you can start the NFS service:
(1) Start and Stop the NFS service
Run the command below:
#/etc/init.d/nfs start
This command will start the NFS service. The user can verify whether the service is
running by commanding:
# mount -t nfs localhost: /opt/FriendlyARM/mini2440/root_qtopia_qt4 /mnt/
If no err messages come up, the user can then browse the contents of the /mnt directory
and
verify
if
the
contents
are
the
same
as
the
/opt/FriendlyARM/mini2440/root_qtopia_qt4 directory.
Stop the service by commanding:
#/etc/init.d/nfs stop
(2) Starting the NFS service through the graphic interface
To auto run the service on system startup, the user can execute the command below:
# serviceconf
Open the system configuration window, on the left side of the window, check the NFS box,
click on the Enable button to start it.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
143 / 257
root=/dev/nfs
nfsroot=192.168.1.111:/opt/FriendlyARM/mini2440/root_qtopia_qt4
ip=192.168.1.70:192.168.1.111:192.168.1.111:255.255.255.0:sbc2440.arm9.net:eth0:off
nfsroot is the boards IP. If you started a virtual machine this IP would be your virtual
machines IP.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
144 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
145 / 257
Then type b and press enter to boot the system via NFS.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
146 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
147 / 257
Logout and login the system again (no need to reboot the system, just go to start->
logout), the above settings will take into effect. Type arm-linux-gcc v, if the messages
depicted in the screen shot below appear, it indicates the compile environment has been set
up successfully
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
148 / 257
#mkdir /tmp/linux
Copy all the files in the linux directory in the shipped CD to /tmp/linux
(2) Uncompress the Linux kernel source code
In the work directory /opt/FriendlyARM/mini2440, run the commands below:
#cd /opt/FriendlyARM/mini2440
#tar xvzf /tmp/linux/linux-2.6.32.2-mini2440-20100106.tar.gz
A linux-2.6.32.2 directory will be created, it includes a complete copy of linux kernel
source code.
Note: 20100106 is the date when FriendlyARM released the new version, the file name in
the shipped CD may be different.
(3) Uncompress and install Qtopia source code
In the work directory /opt/FriendlyARM/mini2440, run the commands below:
#cd /opt/FriendlyARM/mini2440
#tar xvzf /tmp/linux/x86-qtopia.tgz
#tar xvzf /tmp/linux/arm-qtopia.tgz
An x86-qtopia directory and an arm-qtopia directory will be created, and their source code
will be uncompressed into these two directories.
Note: in this release, supports for mouse and tp are all included in one package. And the
source code for the embedded browser konquor is included too.
(4) Uncompress and install QtE-4.6.3 source code
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
150 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
154 / 257
The following programs are developed by Friendly ARM. We have found that some
companies illegally copied our programs.
#include <stdio.h>
int main(void) {
printf("hello, FriendlyARM!\n");
}
Step1: Compile Hello,World
Enter the directory where the source code is located and execute make:
#cd /opt/FriendlyARM/mini2440/examples/hello
#make
A hello executable will be generated and you can check whether it is for ARM by
commanding file:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
157 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
158 / 257
#cd /mnt
#./hello
Program Description:
Drivers Source Code
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Driver
Mini2440_leds.c
Device Type
misc
Device Name
/dev/leds
/opt/FriendlyARM/mini2440/examples/leds
led.c
Executable Name
led
}
if (fd < 0) {
perror("open device leds");
exit(1);
}
/*Manipulate led via ioctl and input parameters */
ioctl(fd, on, led_no);
/*Close device*/
close(fd);
return 0;
}
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Driver
Mini2440_buttons.c
Device Type
misc
Device Name
/dev/buttons
/opt/FriendlyARM/mini2440/examples/buttons
button_test.c
Executable Name
buttons
int buttons_fd;
char buttons[6] = {'0', '0', '0', '0', '0', '0'};
buttons_fd = open("/dev/buttons", 0);
if (buttons_fd < 0) {
perror("open device buttons");
exit(1);
}
for (;;) {
char current_buttons[6];
int count_of_changed_key;
int i;
if (read(buttons_fd, current_buttons, sizeof current_buttons) != sizeof current_buttons) {
perror("read buttons:");
exit(1);
}
for (i = 0, count_of_changed_key = 0; i < sizeof buttons / sizeof buttons[0]; i++) {
if (buttons[i] != current_buttons[i]) {
buttons[i] = current_buttons[i];
printf("%skey %d is %s", count_of_changed_key? ", ": "", i+1, buttons[i] == '0' ? "up" : "down");
count_of_changed_key++;
}
}
if (count_of_changed_key) {
printf("\n");
}
}
close(buttons_fd);
return 0;
}
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Driver
Mini2440_pwm.c
Device Type
misc
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
162 / 257
Device Name
/dev/pwm
/opt/FriendlyARM/mini2440/examples/pwm
pwm_test.c
Executable Name
Pwm_test
return ch;
}
static int fd = -1;
static void close_buzzer(void);
static void open_buzzer(void)
{
fd = open("/dev/pwm", 0);
if (fd < 0) {
perror("open pwm_buzzer device");
exit(1);
}
// any function exit call will stop the buzzer
atexit(close_buzzer);
}
static void close_buzzer(void)
{
if (fd >= 0) {
ioctl(fd, PWM_IOCTL_STOP);
close(fd);
fd = -1;
}
}
static void set_buzzer_freq(int freq)
{
// this IOCTL command is the key to set frequency
int ret = ioctl(fd, PWM_IOCTL_SET_FREQ, freq);
if(ret < 0) {
perror("set the frequency of the buzzer");
exit(1);
}
}
static void stop_buzzer(void)
{
int ret = ioctl(fd, PWM_IOCTL_STOP);
if(ret < 0) {
perror("stop the buzzer");
exit(1);
}
}
int main(int argc, char **argv)
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
164 / 257
{
int freq = 1000 ;
open_buzzer();
printf( "\nBUZZER TEST ( PWM Control )\n" );
printf( "Press +/- to increase/reduce the frequency of the BUZZER\n" ) ;
printf( "Press 'ESC' key to Exit this program\n\n" );
while( 1 )
{
int key;
set_buzzer_freq(freq);
printf( "\tFreq = %d\n", freq );
key = getch();
switch(key) {
case '+':
if( freq < 20000 )
freq += 10;
break;
case '-':
if( freq > 11 )
freq -= 10 ;
break;
case ESC_KEY:
case EOF:
stop_buzzer();
exit(0);
default:
break;
}
}
}
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/i2c/busses
Driver
I2c-s3c2410c
Device Type
Char
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
165 / 257
Device Name
/dev/i2c/0
/opt/FriendlyARM/mini2440/examples/i2c
eeprog.c 24cxx.c
Executable Name
I2c
int ch, i;
for(i = 0; i < size; ++i, ++addr)
{
die_if((ch = eeprom_read_byte(e, addr)) < 0, "read error");
if( (i % 16) == 0 )
printf("\n %.4x| ", addr);
else if( (i % 8) == 0 )
printf(" ");
printf("%.2x ", ch);
fflush(stdout);
}
fprintf(stderr, "\n\n");
return 0;
}
static int write_to_eeprom(struct eeprom *e, int addr)
{
int i;
for(i=0, addr=0; i<256; i++, addr++)
{
if( (i % 16) == 0 )
printf("\n %.4x| ", addr);
else if( (i % 8) == 0 )
printf(" ");
printf("%.2x ", i);
fflush(stdout);
die_if(eeprom_write_byte(e, addr, i), "write error");
}
fprintf(stderr, "\n\n");
return 0;
}
int main(int argc, char** argv)
{
struct eeprom e;
int op;
op = 0;
usage_if(argc != 2 || argv[1][0] != '-' || argv[1][2] != '\0');
op = argv[1][1];
fprintf(stderr, "Open /dev/i2c/0 with 8bit mode\n");
die_if(eeprom_open("/dev/i2c/0", 0x50, EEPROM_TYPE_8BIT_ADDR, &e) < 0,
"unable to open eeprom device file "
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
167 / 257
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/serial/
s3c2440.c
Device Type
Device Name
Test Program Source Code Location
Test Program Name
Executable Name
/dev/ttySAC0, 1 and 2
/opt/FriendlyARM/mini2440/examples/comtest
comtest.c
armcomtest
The comtest utility is developed by Friendly ARM to test serial ports. It is very similar to minicom in Linux
and independent of hardware. Its source code can be applied in both any arm-linux platforms and PCs. This
program is developed by Friendly ARM and unauthorized usage of it is forbidden
Program:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
168 / 257
# include <stdio.h>
# include <stdlib.h>
# include <termio.h>
# include <unistd.h>
# include <fcntl.h>
# include <getopt.h>
# include <time.h>
# include <errno.h>
# include <string.h>
static void Error(const char *Msg)
{
fprintf (stderr, "%s\n", Msg);
fprintf (stderr, "strerror() is %s\n", strerror(errno));
exit(1);
}
static void Warning(const char *Msg)
{
fprintf (stderr, "Warning: %s\n", Msg);
}
static int SerialSpeed(const char *SpeedString)
{
int SpeedNumber = atoi(SpeedString);
# define TestSpeed(Speed) if (SpeedNumber == Speed) return B##Speed
TestSpeed(1200);
TestSpeed(2400);
TestSpeed(4800);
TestSpeed(9600);
TestSpeed(19200);
TestSpeed(38400);
TestSpeed(57600);
TestSpeed(115200);
TestSpeed(230400);
Error("Bad speed");
return -1;
}
static void PrintUsage(void)
{
fprintf(stderr, "comtest - interactive program of comm port\n");
fprintf(stderr, "press [ESC] 3 times to quit\n\n");
fprintf(stderr, "Usage: comtest [-d device] [-t tty] [-s speed] [-7] [-c] [-x] [-o] [-h]\n");
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
169 / 257
break;
case 's':
if (optarg[0] == 'd') {
DeviceSpeed = SerialSpeed(optarg + 1);
} else if (optarg[0] == 't') {
TtySpeed = SerialSpeed(optarg + 1);
} else
TtySpeed = DeviceSpeed = SerialSpeed(optarg);
break;
case 'o':
OutputToStdout = 1;
break;
case '7':
ByteBits = CS7;
break;
case 'x':
OutputHex = 1;
break;
case 'c':
UseColor = 1;
break;
case '?':
case 'h':
default:
PrintUsage();
}
}
if (optind != argc)
PrintUsage();
CommFd = open(DeviceName, O_RDWR, 0);
if (CommFd < 0)
Error("Unable to open device");
if (fcntl(CommFd, F_SETFL, O_NONBLOCK) < 0)
Error("Unable set to NONBLOCK mode");
memset(&TtyAttr, 0, sizeof(struct termios));
TtyAttr.c_iflag = IGNPAR;
TtyAttr.c_cflag = DeviceSpeed | HUPCL | ByteBits | CREAD | CLOCAL;
TtyAttr.c_cc[VMIN] = 1;
if (tcsetattr(CommFd, TCSANOW, &TtyAttr) < 0)
Warning("Unable to set comm port");
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
171 / 257
FD_SET(CommFd, &ReadSetFD);
FD_SET( TtyFd, &ReadSetFD);
# define max(x,y) ( ((x) >= (y)) ? (x) : (y) )
if (select(max(CommFd, TtyFd) + 1, &ReadSetFD, NULL, NULL, NULL) < 0) {
Error(strerror(errno));
}
# undef max
if (FD_ISSET(CommFd, &ReadSetFD)) {
while (read(CommFd, &Char, 1) == 1) {
WaitFdWriteable(TtyFd);
if (write(TtyFd, &Char, 1) < 0) {
Error(strerror(errno));
}
if (OutputToStdout) {
if (UseColor)
fwrite("\x1b[01;34m", 1, 8, stdout);
OutputStdChar(stdout);
if (UseColor)
fwrite("\x1b[00m", 1, 8, stdout);
fflush(stdout);
}
}
}
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
172 / 257
if (FD_ISSET(TtyFd, &ReadSetFD)) {
while (read(TtyFd, &Char, 1) == 1) {
static int EscKeyCount = 0;
WaitFdWriteable(CommFd);
if (write(CommFd, &Char, 1) < 0) {
Error(strerror(errno));
}
if (OutputToStdout) {
if (UseColor)
fwrite("\x1b[01;31m", 1, 8, stderr);
OutputStdChar(stderr);
if (UseColor)
fwrite("\x1b[00m", 1, 8, stderr);
fflush(stderr);
}
if (Char == '\x1b') {
EscKeyCount ++;
if (EscKeyCount >= 3)
goto ExitLabel;
} else
EscKeyCount = 0;
}
}
}
ExitLabel:
if (tcsetattr(TtyFd, TCSANOW, &BackupTtyAttr) < 0)
Error("Unable to set tty");
return 0;
}
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/net/
Dm9000.c
Device Type
Device Name
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
173 / 257
/opt/FriendlyARM/mini2440/examples/udptak
udptalk.c
udptalk
Program:
/*
* udptalk Example for Matrix V ;this program applies to the mini2440 system too
*
* Copyright (C) 2004 capbily - friendly-arm
* capbily@hotmail.com
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdio.h>
#define BUFLEN 255
int main(int argc, char **argv)
{
struct sockaddr_in peeraddr, /*remote IP and socket socket address*/
localaddr;/*Local socket address*/
int sockfd;
char recmsg[BUFLEN+1];
int socklen, n;
if(argc!=5){
printf("%s <dest IP address> <dest port> <source IP address> <source port>\n", argv[0]);
exit(0);
}
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if(sockfd<0){
printf("socket creating err in udptalk\n");
exit(1);
}
socklen = sizeof(struct sockaddr_in);
memset(&peeraddr, 0, socklen);
peeraddr.sin_family=AF_INET;
peeraddr.sin_port=htons(atoi(argv[2]));
if(inet_pton(AF_INET, argv[1], &peeraddr.sin_addr)<=0){
printf("Wrong dest IP address!\n");
exit(0);
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
174 / 257
}
memset(&localaddr, 0, socklen);
localaddr.sin_family=AF_INET;
if(inet_pton(AF_INET, argv[3], &localaddr.sin_addr)<=0){
printf("Wrong source IP address!\n");
exit(0);
}
localaddr.sin_port=htons(atoi(argv[4]));
if(bind(sockfd, &localaddr, socklen)<0){
printf("bind local address err in udptalk!\n");
exit(2);
}
if(fgets(recmsg, BUFLEN, stdin) == NULL) exit(0);
if(sendto(sockfd, recmsg, strlen(recmsg), 0, &peeraddr, socklen)<0){
printf("sendto err in udptalk!\n");
exit(3);
}
for(;;){
/*recv&send message loop*/
n = recvfrom(sockfd, recmsg, BUFLEN, 0, &peeraddr, &socklen);
if(n<0){
printf("recvfrom err in udptalk!\n");
exit(4);
}else{
/*received data*/
recmsg[n]=0;
printf("peer:%s", recmsg);
}
if(fgets(recmsg, BUFLEN, stdin) == NULL) exit(0);
if(sendto(sockfd, recmsg, strlen(recmsg), 0, &peeraddr, socklen)<0){
printf("sendto err in udptalk!\n");
exit(3);
}
}
}
Test:
Please compile udptalk.c, there are two executables under
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
175 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
176 / 257
/opt/FriendlyARM/mini2440/examples/math
mathtest.c
mathtest
Note: to utilize math libraries you need to include its header file math.h and add an compile option libm
Program:
#include <stdio.h>
#include <stdlib.h>
#include <math.h> ; note: including this header file is a must
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
177 / 257
int main(void)
{
double a=8.733243;
printf("sqrt(%f)=%f\n", a, sqrt(a));
return 0;
}
Makefile:
CROSS=arm-linuxall: mathtest
#It includes the math library libm, marked in red
mathtest:
$(CROSS)gcc -o mathtest main.c -lm
clean:
@rm -vf mathtest *.o *~
/opt/FriendlyARM/mini2440/examples/pthread
pthread_test.c
pthread_test
Note: to utilize math libraries you need to include its header file pthread.h and add an compile option
libpthread
Program:
#include<stddef.h>
#include<stdio.h>
#include<unistd.h>
#include"pthread.h" ; including this header is a must
void reader_function(void);
void writer_function(void);
char buffer;
int buffer_has_item=0;
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
178 / 257
pthread_mutex_t mutex;
main()
{
pthread_t reader;
pthread_mutex_init(&mutex,NULL);
pthread_create(&reader,NULL,(void*)&reader_function,NULL);
writer_function();
}
void writer_function(void)
{
while(1)
{
pthread_mutex_lock(&mutex);
if(buffer_has_item==0)
{
buffer='a';
printf("make a new item\n");
buffer_has_item=1;
}
pthread_mutex_unlock(&mutex);
}
}
void reader_function(void)
{
while(1)
{
pthread_mutex_lock(&mutex);
if(buffer_has_item==1)
{
buffer='\0';
printf("consume item\n");
buffer_has_item=0;
}
pthread_mutex_unlock(&mutex);
}
}
Makefile:
CROSS=arm-linuxall: pthread
#note: it includes the thread library libphread marked in red
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
179 / 257
pthread:
$(CROSS)gcc -static -o pthread main.c -lpthread
clean:
@rm -vf pthread *.o *~
/opt/FriendlyARM/mini2440/examples/led-player
led-player.c
led-player
Note: to utilize math libraries you need to include its header file pthread.h and add an compile option
libpthread
Program:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/select.h>
#include <sys/time.h>
#include <string.h>
static int led_fd;
static int type = 1;
static void push_leds(void)
{
static unsigned step;
unsigned led_bitmap;
int i;
switch(type) {
case 0:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
180 / 257
if (step >= 6) {
step = 0;
}
if (step < 3) {
led_bitmap = 1 << step;
} else {
led_bitmap = 1 << (6 - step);
}
break;
case 1:
if (step > 255) {
step = 0;
}
led_bitmap = step;
break;
default:
led_bitmap = 0;
}
step++;
for (i = 0; i < 4; i++) {
ioctl(led_fd, led_bitmap & 1, i);
led_bitmap >>= 1;
}
}
int main(void)
{
int led_control_pipe;
int null_writer_fd; // for read endpoint not blocking when control process exit
double period = 0.5;
led_fd = open("/dev/leds0", 0);
if (led_fd < 0) {
led_fd = open("/dev/leds", 0);
}
if (led_fd < 0) {
perror("open device leds");
exit(1);
}
unlink("/tmp/led-control");
mkfifo("/tmp/led-control", 0666);
led_control_pipe = open("/tmp/led-control", O_RDONLY | O_NONBLOCK);
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
181 / 257
if (led_control_pipe < 0) {
perror("open control pipe for read");
exit(1);
}
null_writer_fd = open("/tmp/led-control", O_WRONLY | O_NONBLOCK);
if (null_writer_fd < 0) {
perror("open control pipe for write");
exit(1);
}
for (;;) {
fd_set rds;
struct timeval step;
int ret;
FD_ZERO(&rds);
FD_SET(led_control_pipe, &rds);
step.tv_sec = period;
step.tv_usec = (period - step.tv_sec) * 1000000L;
ret = select(led_control_pipe + 1, &rds, NULL, NULL, &step);
if (ret < 0) {
perror("select");
exit(1);
}
if (ret == 0) {
push_leds();
} else if (FD_ISSET(led_control_pipe, &rds)) {
static char buffer[200];
for (;;) {
char c;
int len = strlen(buffer);
if (len >= sizeof buffer - 1) {
memset(buffer, 0, sizeof buffer);
break;
}
if (read(led_control_pipe, &c, 1) != 1) {
break;
}
if (c == '\r') {
continue;
}
if (c == '\n') {
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
182 / 257
int tmp_type;
double tmp_period;
if (sscanf(buffer,"%d%lf", &tmp_type, &tmp_period) == 2) {
type = tmp_type;
period = tmp_period;
}
fprintf(stderr, "type is %d, period is %lf\n", type, period);
memset(buffer, 0, sizeof buffer);
break;
}
buffer[len] = c;
}
}
}
close(led_fd);
return 0;
}
make will generate a led-player executable which is run as a server under /sbin. The
leds.cgi gateway source code is under /www/leds.cgi on the board. It is a shell script and
can be invoked by leds.html as an action. Here is the shell file
leds.cgi:
#!/bin/sh
type=0
period=1
case $QUERY_STRING in
*ping*)
type=0
;;
*counter*)
type=1
;;
*stop*)
type=2
;;
esac
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
183 / 257
case $QUERY_STRING in
*slow*)
period=0.25
;;
*normal*)
period=0.125
;;
*fast*)
period=0.0625
;;
esac
/bin/echo $type $period > /tmp/led-control
echo "Content-type: text/html; charset=gb2312"
echo
/bin/cat led-result.template
exit 0
/opt/FriendlyARM/mini2440/examples/C++
cplus.c
cplus
Note: to utilize math libraries you need to include its header file pthread.h and add an compile option
libpthread
Program:
#include <iostream>
#include <cstring>
using namespace std;
class String
{ private:
char *str;
public:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
184 / 257
String(char *s)
{
int lenght=strlen(s);
str = new char[lenght+1];
strcpy(str, s);
}
~String()
{
cout << "Deleting str.\n";
delete[] str;
}
void display()
{
cout << str <<endl;
}
};
int main(void)
{
String s1="I like FriendlyARM.";
cout << "s1=";
s1.display();
return 0;
double num, ans;
cout << "Enter num:";
}
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Mini2440_hello_module.c
Executable Name
Test Programs Location in Board
Note: mounting this driver will not create a device node under /dev
Program:
#include <linux/kernel.h>
#include <linux/module.h>
static int __init mini2440_hello_module_init(void)
{
printk("Hello, Mini2440 module is installed !\n");
return 0;
}
static void __exit mini2440_hello_module_cleanup(void)
{
printk("Good-bye, Mini2440 module was removed!\n");
}
module_init(mini2440_hello_module_init);
module_exit(mini2440_hello_module_cleanup);
MODULE_LICENSE("GPL");
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
186 / 257
Save and exit. When you run make menuconfig in the linux-2.6.32.2 directory you will
see your item in Device Drivers -> Character devices. Press the space key it will be marked
<M>. This means this souce code will be compiled as a module. Press the space key again
it will be marked <*> and it will be compiled into the kernel. Here we chose <M>
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
187 / 257
Step2: the previous step still cannot include it into the kernel when compiling. You need
tolinkthe
kernel
configuration
to
the
source
code
in
makefile.
Open
linux-2.6.32.2/drivers/char/Makefile, add the marked line shown below, save and exit
Step3: go back to the linux-2.6.32.2 source code directory, run make modules a
mini2440_hello_module.ko module will be generated. Prior to executing make modules,
you need to run make zImage. This only needs to be run once.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
188 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
189 / 257
IO Register
CPU Pin
LED1
GPB5
K2
LED2
GPB6
L5
LED3
GPB7
K7
LED4
GPB8
K5
To manipulate an IO you need to set up its register by invoking some functions and
macros. Here we used readl and writel. They can directly read and write corresponding
registers. Besides you need some other driver related functions too such as misc_register,
module_init, module_exit and filling the file_operations structure.
Program Description:
Source Code Location
Driver
Device Type
Device Name
Test Program Source Code Location
Test Program Name
Executable Name
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Mini2440_leds.c
Misc, auto generated
/dev/leds
/opt/FriendlyARM/mini2440/examples/leds
led.c
Led
Note: the LED driver has been compiled into the kernel by default and cannot be loaded via insmod
Program:
void s3c2410_gpio_cfgpin(unsigned int pin, unsigned int function)
{
void __iomem *base = S3C24XX_GPIO_BASE(pin);
unsigned long mask;
unsigned long con;
unsigned long flags;
if (pin < S3C2410_GPIO_BANKB) { mask = 1 << S3C2410_GPIO_OFFSET(pin); }
else { mask = 3 << S3C2410_GPIO_OFFSET(pin)*2; }
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
190 / 257
#include <asm/uaccess.h>
#include <asm/atomic.h>
#include <asm/unistd.h>
#include <mach/map.h>
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>
#include <plat/gpio-cfg.h>
#include <mach/gpio-bank-e.h>
#include <mach/gpio-bank-k.h>
#define DEVICE_NAME "leds"
MODULE_AUTHOR("FriendlyARM Inc.");
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
192 / 257
/opt/FriendlyARM/mini2440/linux-2.6.32.2/drivers/char
Mini2440_buttons.c
Misc, auto generated
/dev/buttons
/opt/FriendlyARM/mini2440/examples/buttons
buttons_test.c
buttons
Note: the button driver has been compiled into the kernel by default and cannot be loaded via insmod
Key
IO
Interrupt
K1
GPG0
EINT8
K2
GPG3
EINT11
K3
GPG5
EINT13
K4
GPG6
EINT14
K5
GPG7
EINT15
K6
GPG11
EINT19
Program:
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/irq.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <linux/interrupt.h>
#include <asm/uaccess.h>
#include <mach/hardware.h>
#include <linux/platform_device.h>
#include <linux/cdev.h>
#include <linux/miscdevice.h>
#include <mach/map.h>
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
193 / 257
#include <mach/regs-clock.h>
#include <mach/regs-gpio.h>
#include <plat/gpio-cfg.h>
#include <mach/gpio-bank-n.h>
#include <mach/gpio-bank-l.h>
#define DEVICE_NAME "buttons"
struct button_irq_desc {
int irq;
int number;
char *name;
};
return 0; }
static int s3c24xx_buttons_close(struct inode *inode, struct file *file)
{ int i;
for (i = 0; i < sizeof(button_irqs)/sizeof(button_irqs[0]); i++)
{ free_irq(button_irqs[i].irq, (void *)&button_irqs[i]); }
return 0; }
static int s3c24xx_buttons_read(struct file *filp, char __user *buff, size_t count, loff_t *offp)
{ unsigned long err;
if (!ev_press) { if (filp->f_flags & O_NONBLOCK) return -EAGAIN;
else wait_event_interruptible(button_waitq, ev_press); }
ev_press = 0;
err = copy_to_user(buff, (const void *)key_values, min(sizeof(key_values), count)); return err ? -EFAULT :
min(sizeof(key_values), count); }
static unsigned int s3c24xx_buttons_poll( struct file *file, struct poll_table_struct *wait)
{ unsigned int mask = 0; poll_wait(file, &button_waitq, wait); if (ev_press) mask |= POLLIN | POLLRDNORM;
return mask; }
static struct file_operations dev_fops = { .owner = THIS_MODULE, .open = s3c24xx_buttons_open, .release =
s3c24xx_buttons_close, .read = s3c24xx_buttons_read, .poll = s3c24xx_buttons_poll, };
static struct miscdevice misc = { .minor = MISC_DYNAMIC_MINOR, .name = DEVICE_NAME, .fops =
&dev_fops, };
static int __init dev_init(void) { int ret; ret = misc_register(&misc); printk (DEVICE_NAME"\tinitialized\n");
return ret; }
static void __exit dev_exit(void) { misc_deregister(&misc); }module_init(dev_init); module_exit(dev_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("FriendlyARM Inc.");
commanding run. The compiling scripts for x86 and arm are a little bit different.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
196 / 257
Follow the default options to continue and you will see the following screen
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
197 / 257
C means Change and / after C means it will be uncompressed to the root directory.
Afteryouare done, reboot your board and you will see that all your GUI components are in
English now and there is a browser under the FriendlyARM tag. This is your own Qtopia.
Note: your new system may load parameters from /etc/pointercal, you can delete that file
too and will be directed to the calibration screen after reboot.
The above procedure is a simplied one. We hide all technical details in the build-all script
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
199 / 257
down Qtopia-2.2.0.
Or you can shut it down: either by commenting out the qtopia option in the init
script /etc/init.d/rcS and rebooting the system or commanding kill all to terminate related
process (there are many options: you can even delete the whole /opt, shut down
qtopia-2.2.0 and run qt4
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
201 / 257
Installation of Windows CE 6.0 is complicated and has lots of requirements for hardware
therefore we strongly suggest users exactly follow our installation steps:
Below are the basic system requirements
CPU: Intel Core Duo E8400
RAM: DDR2 4GB
Hard Disk: 500GB
Software List (We dont offer Windows Embedded 6.0 CE 6 installation files and users
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
202 / 257
Download website:
http://www.microsoft.com/downloads/details.aspx?FamilyID=d2fd14eb-7d5c-428b-951c-34
3f910047c1&displaylang=en
The above list also indicates the order of installing these software components:Visual
Studio 2005and its patches first, then Windows CE 6.0 and its patches and finally the third
party software
Note: the Platform Builder for Windows CE 6.0 is different from its previous versions such
as Windows CE 5.0/4.2. It is not a standalone software application but a plugin of VS2005
and therefore depends on VS2005. You need to install VS2005 first. All the configurations
and compilation described below are with VS2005.
Here are the steps:
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
205 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
206 / 257
Step4: check the redly marked box and enter your serial number, click on Next to continue
Step5: select your installation features, please check Full and click on Next to continue
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
207 / 257
Step6: the following screen kicks off the installation of Visual Studio 2005
Step7: after Visual Studio 2005 installation is done please click on Finish on the dialog
shown below
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
208 / 257
Step8: now we will begin to install Visual Studio 2005 Service Pack 1. Double click on
VS80sp1-KB926601-X86-ENU.exe to begin installation
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
209 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
210 / 257
Step11: the following dialog kicks off the installation. The whole process may take a while.
Step13: now we will begin to install the second patch Visual Studio 2005 Service Pack 1
Update for Windows Vista. Double click on VS80sp1-KB932232-X86-ENU.exe
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
211 / 257
Step16: the following screen kicks off the installation. This may take a while
Step18: now we will begin to install the third patch Visual Studio 2005 Service Pack 1 ATL
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
212 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
213 / 257
Step21: the following screen kicks off the installation. This may take a while
We have completed our installation of Visual Studio 2005 and its patches on Windows7
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
214 / 257
Step2: enter the installation directory, type Windows Embedded CE 6.0.msi and press
return
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
215 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
216 / 257
Step5: check I accept on the license dialog and click on Next to continue
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
217 / 257
Step6: follow the options marked redly as below and click on Next to continue
Step7: follow the options mared redly as below and click on Next to continue
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
218 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
219 / 257
Step11: now we will begin to install a patch Windows Embedded CE 6.0 Platform Builder
Service Pack 1.msi.Open the command line utility as administrator, enter the directory, type
Windows Embedded CE 6.0 Platform Builder Service Pack 1.msi and press return
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
220 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
221 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
222 / 257
Step17: now we will begin to install the second patch Windows Embedded CE 6.0 R2.msi.
Please follow the previous steps to launch the command line utility, type Windows
Embedded CE 6.0 R2.msi and press return
Note: some users may download a Windows Embedded CE 6.0 R2.msi which is about
50MB. But this is not a complete installation file. We suggest our users use our R2 patch
which is about 1.01GB
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
223 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
224 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
225 / 257
Step22: the installation process is kicked off and this may take a while
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
226 / 257
Step24: now we will begin to install R3. Please follow the previous steps to launch the
command line utility, type Windows Embedded CE 6.0 R2.msi and press enter
Note: some users may download a Windows Embedded CE 6.0 R3 which is an image file.
In order for users to use it more conveniently we make it a directory which contains 166 files
that are about 1.14GB
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
227 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
228 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
229 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
231 / 257
Step4: check I agree on the license dialog and click on Next to continue
Step5: click on Next to continue
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
233 / 257
Step3: the installation is kicked off and very short since the file is very small
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
234 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
235 / 257
Now you have successfully set up your Windows CE 6.0 development environment.
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
236 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
237 / 257
Step4: in the dialog shown below, click on compatibility and check the option shown and
click on OK
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
238 / 257
Step7: Go to File->Open->Project/Solution
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
239 / 257
Step9: moments later after the mini2440 project is loaded you will see the following dialog
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
240 / 257
Step11: after the compilation is done, an NK.bin and an NK.nb0 will be generated under the
following directory:
C:\WINCE600\OSDesigns\Mini2440\Mini2440\RelDir\Mini2440_ARMV4I_Release
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
241 / 257
5.2.2 Bootloader
In the Mini2440 system the bootloader for WindowsCE5/6 is nboot which is compiled
with ADS.
Origianlly the nboot was from Samsung and we made some improvements. Our version
has the following features:
Support boot logo
Support process bar for WinCE kernel loading
Rapid WinCE Booting
Nboot doesnt support file buring and can only read files: BootLogo and the WinCE.
Nboot is easy to be customized. You can set its bootlogo position, background and process
bars color, length and width in options.h.
//define LCD type, the default is T35 3.5LCD
#define LCD_N35
//#define LCD_T35
//#define LCD_L80
//#define LCD_X35
//#define LCD_A70
//#define LCD_VGA1024768
//define background color
#define BACKGROUND_R 0x00
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
242 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
243 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
244 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
247 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
249 / 257
Step3: type your user name and companys name and click on Next to continue
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
250 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
251 / 257
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
252 / 257
The Synchronization Center doesnt come with Windows 7 and needs to be installed.
Below are the steps to follow for Windows 7: (Note: if your board runs WinCE6 you still can
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
253 / 257
If your system is connected to the internet it will automatically download and install
related software
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
254 / 257
After installation is done, you will see the following configuration dialog click on Accept
on the license window
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
255 / 257
Click on Connect
Click on File Management -> Browse you will enter the boards root directory. If your
board has a SD card or USB drive connected it will be listed here too
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
256 / 257
Now you can manipulate your files between your PC and board
____________________________________________________________________________________________________________________
Address: Room 1701,Block A2, Longyuan Plaza, 549# Longkouxi Road, Guangzhou, China, 510640
Website: http://www.arm9.net
Email: capbily@163.com
Tel:
+86-20-85201025
Fax:
+86-20-85261505
257 / 257