Page 1
SBC6845 SBC6845 SBC6845 SBC6845 Single Board Computer Single Board Computer Single Single Board Board Computer Computer User User Manual Manual User User Manual Manual (For (For Linux Linux System) System) (For (For Linux Linux System) System) Version 1.1 – Jan.11.2013...
Page 2
Copyright Statement: Statement: Statement: � SBC6845 and its related intellectual property are owned by Shenzhen Embest Technology Co., Ltd. � Shenzhen Embest Technology has the copyright of this document and reserves all rights. Any part of the document should not be modified, distributed or duplicated in any approach and form with the written permission issued by Embest Technology Co., Ltd.
RS485), a CAN interface, an Ethernet interface, a high-speed USB host interface, a SD/MMC card interface and an audio output interface. SBC6845 is designed to satisfy the different requirements of various fields such as industrial control, intelligent instrumentation, data acquisition and analysis, medical products and network equipments.
The CD-ROM provided along with SBC6845 contains a BSP package that helps development the Linux system. Users can make a custom system running on SBC6845 platform by utilizing the package. The table shown below lists out the contents of the BSP attached with the corresponding descriptions.
System Boot-up Boot-up SBC6845 can support boot-up from Data Flash only. A default Linux system image has been burned in Data Flash when it is manufactured. If you need to update the image, please refer to the contents of Chapter 5 Updating Linux System.
Embest Technology 7 7 7 7 Figure Figure Figure Figure 2-2 2-2 Setting up HyperTerminal Now you can connect the power supply to SBC6845 and see the boot-up information displayed in HyperTerminal. Example Applications 2.2 Example Example Example Applications Applications...
Page 14
If you’d like to look into the details of how the programs are working, please view the source code under \Linux 2.6 Kit\01 SourceCode\application\ in the SBC6845’s CD-ROM. The tables listed below are the API functions called by some of the example applications we provided in the CD-ROM, as well as the descriptions attached to each function.
Page 17
Testing 2.4 Starting Starting Testing Testing This section will show you how to use the example applications installed by default in the system to accomplish the testing of SBC6845’s functions. After you finish the System System Boot-up Boot-up configurations mentioned in 2.1 2.1 System...
Page 18
Note: � The IP in the above instructions are just examples. Please set IP address according to your network configurations and ensure that SBC6845 and your PC are set in the same network segment. The table shown below is the testing information in HyperTerminal window.
SBC6845 integrates only one CAN bus, and therefore it needs to work with another SBC6845 or a CAN-enabled device to test the data transfer over CAN bus. The figure shown below illustrates the connections between SBC6845 and a CAN-enabled device.
Page 21
(less than 300 meters) transmission can work well without terminal resistor. 2.4.9 Testing 2.4.9 2.4.9 2.4.9 USB USB Testing Testing Testing SBC6845 has a USB host interface. Please insert a flash disk and see the information in HyperTerminal window as shown below. Table Table 2-10 2-10 Connection Connection Information...
Page 22
View the contents of the flash disk; [root@SBC6845:/]# [root@SBC6845:/]# [root@SBC6845:/]# [root@SBC6845:/]# cd cd /mnt/ /mnt/ /mnt/ /mnt/ [root@SBC6845:/mnt]# [root@SBC6845:/mnt]# [root@SBC6845:/mnt]# ls ls ls ls [root@SBC6845:/mnt]# 3 3 3 3 ) Unmount the flash disk; [root@SBC6845:/mnt]# [root@SBC6845:/mnt]# cd / / / / [root@SBC6845:/mnt]# [root@SBC6845:/mnt]# cd [root@SBC6845:/]# [root@SBC6845:/]#...
Page 23
2.4.11 2.4.11 2.4.11 2.4.11 SD SD Card Card Card Card Testing Testing Testing Testing After inserting a SD card into the SD slot on SBC6845, HyperTerminal will display the following information; Table Table 2-11 2-11 Card Card Recognized Recognized Table...
Page 24
2.4.12 2.4.12 LED LED Testing Testing SBC6845 has 4 LED indicators, among them the D12 defined as system state indictor. The following testing is intended for the three LEDs except D12. 1 1 1 1 ) Test LEDs with application;...
GPIO GPIO Testing Testing Testing To test GPIO interfaces on SBC6845, you need to use jumper caps to short the pins of U57 connector on the board according to the following table and figure. (Please refer to 1.4 Components Components...
Page 27
This testing is intended for the button K1 and K2, which are marked as “User Key” in the figure shown in 1.4 1.4 Components Components Components Components on on SBC6845 SBC6845 SBC6845 SBC6845). Please execute the following instruction to conduct testing. [root@SBC6845:/]# [root@SBC6845:/]# /home/app/evtest /home/app/evtest /dev/event0 /dev/event0 [root@SBC6845:/]#...
2.4.17 Keypad Keypad Keypad Keypad Testing Testing Testing Testing Please connect a 6X6 matrix keypad to U56 interface on SBC6845 and then execute the following instruction to conduct testing. (Please refer to 1.4 1.4 Components Components Components Components on on SBC6845...
Page 32
Programs > Programs and Features > Turn Windows features on or off, and then check “Telnet Client” to enable it. � The default IP address of SBC6845 is 192.192.192.211. Please ensure that the board and your PC are set in the same network segment.
Page 33
Now the contents under the share directory can be viewed by accessing /mnt. Note: Note: Note: Note: � SBC6845 has the write privilege over the share directory, which means any change will be effective immediately. 2.4.22 2.4.22 2.4.22 2.4.22 Transferring...
Page 34
[root@SBC6845:/]# [root@SBC6845:/]# /tmp /tmp [root@SBC6845:/]# [root@SBC6845:/]# cd cd /tmp /tmp [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# rx rx rx rx recvfile recvfile recvfile recvfile 2 2 2 2 ) Select Transfer Transfer Transfer Transfer > > > > Send Send Send Send X X X X m m m m odem...
Page 36
3 3 3 3 ) Execute the following instruction to view the downloaded file; [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# [root@SBC6845:/tmp]# ls ls ls ls -l -l -l -l The HyperTerminal will display the following information; Table Table Table Table 2-18 2-18...
Page 39
Compilation Compilation Compilation Before getting started with the development on SBC6845, an ARM Linux cross development environment is required. This chapter will take Ubuntu as the example operating system to show you how to build a cross development environment and accomplish system compilation.
Page 41
Bootstrap-v1.14 and rfs-qtopia are generated under current directory. 1.1.2 1.1.2 1.1.2 1.1.2 Making Making Making Making Bootstrap Bootstrap Bootstrap Bootstrap SBC6845 support boot-up from DATAFLASH. Please execute the following instructions; root@LINUXSERVER:~/embest# cd cd Bootstrap-v1.14 Bootstrap-v1.14 Bootstrap-v1.14 Bootstrap-v1.14 board/at91sam9g45ekes/dataflash board/at91sam9g45ekes/dataflash root@LINUXSERVER:~/embest/Bootstrap-v1.14# cd cd board/at91sam9g45ekes/dataflash board/at91sam9g45ekes/dataflash root@LINUXSERVER:~/embest/Bootstrap-v1.14/board/at91sam9g45ekes/dataflash # make...
Page 55
And then run the server and client on two SBC6845 respectively to conduct testing. If you only have one SBC6845, firstly you need to compile a server program working on PC’s Linux system by executing the instruction below; # # # # gcc gcc server.c...
Page 56
Linux System System System System SBC6845 has a DATAFLASH and a NANDFLASH on board. But Linux system can only support boot-up from DATAFLASH currently. This chapter will introduce in detail how to update Linux system in DATAFLASH. Image Image Mapping...
Page 57
1.1.1 Preparations Preparations 1 1 1 1 ) Connect the serial and USB interfaces on SBC6845 to your PC respectively; Please refer to the relevant contents of Hardware Manual to view the detailed information on connections; 2 2 2 2 )...
Page 58
Embest Technology 53 53 53 53 databit, None Parity, 1 stop bit, and None data flow control. 3 3 3 3 ) Connect power supply to SBC6845 and launch SAM-BA v2.9 to open the window as shown below; Figure Figure...
Page 65
System System 1.1.6 1.1.6 Burning Burning Linux Linux System System 1 1 1 1 ) Connect SBC6845 to your PC with a network cable; 2 2 2 2 ) tftpd.exe Linux2.6 Kit\02 Tools\ Copy tftpd.exe tftpd.exe tftpd.exe located under \02 \02 Linux2.6...
Page 67
Figure 1-14 1-14 1-14 Start Server 7 7 7 7 ) Space Space Reboot SBC6845 and press Space Space key on your keyboard when a countdown information is shown in HyperTerminal to enter U-boot command mode as shown below; Figure Figure...
Page 68
SD card, and insert it into the SD slot on the board and then power it up. The system will automatically implement image burning to DATAFLASH and NANDFLASH. After burning process is complete, you just need to reboot SBC6845 to finish the whole work. (Images are saved under \01 Module\SBC6845 Update System Through SD\SD Image_Linux\ of the CD-ROM) The table shown blow contains of the images required.
Page 70
Technical Support Support Technical Technical Support Support Embest Technology provides its product with one-year free technical support including: � Providing software and hardware resources related to the embedded products of Embest Technology; � Helping customers properly compile and run the source code provided by Embest Technology;...
Page 71
G. G. G. Products purchased from unauthorized sales; H. H. H. H. Warranty (including verbal and written) that is not made by Embest Technology and not included in the scope of our warranty should be fulfilled by the party who committed. Embest Technology has no any responsibility;...
Need help?
Do you have a question about the SBC6845 and is the answer not in the manual?
Questions and answers