Home

Eddy-DK v2.5.1.1 Programmer Guide

image

Contents

1. 17 P3 TX 18 P3 TX 17 PB12 18 PB13 19 P3_RX 20 P3_RX 19 PB16 20 PB17 21 P4_TX 22 P4_TX 21 PB18 22 PB19 23 P4_RX 24 P4_RX 23 PB20 24 PB21 25 DDM 26 DDP 25 PB30 26 PB31 27 DM2 28 DP2 27 PCO 28 PC1 29 DM3 30 DP3 29 PC2 30 PC3 31 GND 32 GND 31 GND 32 GND 33 DM4 34 DP4 33 PC5 34 PC9 35 SDDATAO 36 SDDATA1 35 PC10 36 PC12 37 SDDATA2 38 SDDATA3 37 PC13 38 PC14 39 SDCMD 40 SDCLK 39 PC15 40 PC17 41 SDCDN 42 SDWP 41 PC18 42 PC19 43 TWCK 44 TWD 43 PC20 44 PC24 45 RDY 46 nRESET IN 45 PC25 46 NRST OUT 2 6 1 4 U7 Light Sensor Bellow is comparison between luminance and out current We used BH1600FVC Rohm 100000 10000 1000 100 5 E 10 2 Q 1 0 1 0 01 0 001 0 01 1 100 10 000 1 000 000 illuminance Ix The Output voltage is caculated as below Viout 0 6 x10 6 x Ev x R1 Where Viout IOUT output voltage V Ev lilluminance of the ALS Ambient Light Sensor surface Ix R1 IOUT output resistor 2 ASystemBase el Eddy real time Eddy DK Programmer Guide 2 6 2 Interface Explanation J4 SD MMC J5 JTAG ICE J15 Debug J9 USB CARD Interface Port Device 11 USB Device J18 COM J17 COM J13 COM J14 COM PORT 1 PORT 2 PORT 3 PORT 4 2 6 2 1 Power Ready LED System Ready RDY Indicate normal state of system Normal blinking Power PWR indicate Power is inserted RED LED ON state 61 ASystemBase Ed
2. 22 PB19 GPIO or RTDO or TIOB5 I O 23 PB18 GPIO or TDO or TIOB4 1 0 24 PB17 GPIO or TFO or TCLK4 I O 25 PB16 GPIO or RxD5 or TCLK3 1 0 26 PB13 GPIO or RxD5 I O 27 PB12 GPIO or TxD5 I O 28 PB3 GPIO or SPI1_NPCSO or TIOAS I O 29 PB2 GPIO or SPI1_SPCK 1 0 30 PB1 GPIO or SPI1_MOSI or TIOB3 I O 31 PBO GPIO or SPI1_MISO or TIOA3 1 0 32 PA30 GPIO Only 1 0 33 PA22 GPIO Only 1 0 34 PA5 GPIO Only I O PIO line has high drive current capable so that can drive about 16mA except PC4 PC31 2mA 41 2 DC characteristics of CPU Datasheet Refer to bellow AT91SAM9260 DC Characteristics Symbol Parameter Conditions Min Typ Max Units PAO PA31 PBO PB31 PCO 16 PC3 P SPOE eeA PCat mo av ane 2 mA PC4 PC31 in 1 8V range 4 Since Eddy S4M v2 1 is 3 3V range PC4 PC31 PIO can drive 2mA 63 Asy A Serial Communication Experts wh stemBase Ce Eddy real time Eddy DK Programmer Guide 2 6 2 4 J10 Ethernet 64 Since there is KSZ8041NL PHY in Eddy S4M module when integrating Ethernet just connect RJ45 in which transformer located WARNING When you use RJ45 which has transformer in its internal circuit it is possible to each product doesn t have equal PIN spec Therefore you must confirm PIN number Bellow is KSZ8041NL functions e Fully compliant to IEEE 802 3u Standard e Supports MDI MDI X auto crossover Auto MDI e MII in
3. el Serial Communication Experts SS ASystemBase real time Eddy DK Programmer Guide cp f src Eddy_APPs com_redirect root sbin cp f _ src Eddy_APPs tcp_server root sbin cp f src Eddy_APPs tcp_client root sbin cp f src Eddy APPs tcp_ broadcast root sbin cp f src busybox 1 5 0 busybox root bin cp f src dropbear 0 50 dropbear root usr local sbin cp f src dropbear 0 50 dropbearkey root usr local sbin cp f src ethtool 6 ethtool root usr local sbin cp f src net snmp 5 4 1 agent snmpd root usr local sbin List of task onthe Makefile options are as follows Make release Copy modules registered on the release to Ramdisk area Make _ install Create a Filesystem to a firmware image for using on Eddy If the modification of Makefile is completed execute make release and make install in tums and create a Firmware image Created firmware is stored on the FIRMWARE DIR folder stated onthe Makefile On Windows use cmd command prompt to carry out procedures explained on Linux shlee localhost ramdisk make release shlee localhost ramdisk make install shlee localhost ramdisk Is _ firmware FWX X X nnn enn nnn nnn nnn nnn nena nnn nnnnn nnn eddy bl 2 x x x bin FWX X X wen ne nn nnn nena nnn nnn ma eddy bs 2_ x x x bin FWX X X nnn enn enn nnn nnn nn nnn nnn nena nnn nena eddy os 2 x x x bin FWX X X nnn enn nnn nnn nnn nnn nnn n nnn nnn nena e
4. Eddy DK Programmer Guide 9 3 4 935 146 Classification Sbecllicetion Eddy S4M v2 1 Eddy S4M v2 5 CE Class A FCC Class A C Ne RoHS RoHS RoHS Compliant compliant Eddy S4M DK v2 1 Specifcatons Classification Specification Serial Port 2 x RS232 DB9 Male 2 x RS422 485 5pin Terminal Block S W Selectable amp with Auto toggle SD Card Connector Push Type Up to 16 GB MMC SD Card MC supported MCI Interface SD Card MMC Socket ADC Interface Light Sensor USB Connector 1 x Device 2 x HOST Dual Port LAN Port RJ45 with transformer Console Port DB9 Male Power ON Off switch Switch Serial RS422 485 Termination resistor configuration switch Input switch for testing GPIO Off Low ON High LED RDY Power 34 Programmable IO Console amp Serial TxD RxD LED JTAG Port Used for downloading code and single stepping through programs Reset Button Factory Default amp Warm Boot If you posh more than 5 active Factory default JIG connection 2 2x23pin socket which connect JIG board to confirm problems socket Expansion Header 2x22pin Header used to test GPIO of Eddy S4M Input Power 5 VDC Dimensions 160 x 120 mm Eddy S4M JIG v2 1 Specifcatons Classification Specification USB Connector USB HOST LAN Port RJ45 Reset Button Factory Default amp Warm Boot Expansion Header 2 2x23pin use
5. Eddy S4M v2 5 Serial Communication Experts ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 2 5 1 miniPCI Card Type Ill Connector Pinout J5 Pin Signal Pin Signal Pin Signal Pin Signal 1 JTAG_TDI 2 JTAG_TDO 63 33V 64 PB13 Key Key 65 PB16 66 PB17 2 JTAG_TMS 4 JTAG_RTCK 67 PB18 68 PB19 3 JTAG_TCK 6 ICE_NTRST 69 GND 70 33V 7 LAN_RX 8 LAN_TX 71 PB20 72 PB21 9 LAN_RX 10 LAN_TX 73 PB30 74 GND 11 LAN_Speed 12 LAN_LINK 75 PCO 76 PB31 13 P3_RX 14 RDY 77 GND 78 PC1 15 GND 16 NC 79 PC2 80 PC3 17 P3_RX 18 NC 81 PC5 82 GND 19 33V 20 DCDO 83 GND 84 PC9 21 P3_TX 22 DTRO 85 PC10 86 PC12 23 GND 24 33V 87 PC13 88 3 3V 25 P3 TX 26 nRESET 89 33V 90 PC14 27 GND 28 33V 91 PC15 92 PC17 29 P4_RX 30 RxDO 93 PC18 94 PC19 31 3 3V 32 GND 95 PC24 96 PC20 33 P4_RX 34 RTSO 97 NC 98 PC25 35 P4_TX 36 TxDO 99 l2C_TWCK 100 l2C_TWD 37 GND 38 CTSO 101 GND 102 GND 39 P4_TX 40 3 3V 103 DDM 104 DDP 41 DEBUG_TxD 42 DSRO 105 DM2 106 DP2 43 DEBUG_RxD 44 RIO 107 DM3 108 DP3 45 PAS 46 RxD1 109 DM4 110 DP4 47 PA22 48 RTS1 111 SDDATAO 112 SDDATA1 49 GND 50 GND 113 SDDATA2 114 GND 51 PA30 52 TxD1 115 SDCMD 116 SDDATA3 53 NC 54 CTS1 117
6. User Guide Description Integration configuration and management of Eddy for the administrator Programmer s Guide Programmer s application development guide including in depth approach to compiling linking and creating firmware API reference is also included with a list of available functions for customized application programming LemonlDE Manual Guide for primary function of each tool contained in LemonlDE on Windows and Linux Portview User Manual Guide for SystemBase device server management application Portview COM Port Redirector User Manual Guide for SystemBase COM Port Redirector TestView User Manual Guide for TestView application for testing Eddy serial port and lan port If you need brief information on Eddy or embedded device servers in general please visit our corporate website at http www sysbas com You can view and or download documents related to Eddy as well as latest software and firmware updates Available resources are as follows Document Name Eddy CPU Spec Sheet Eddy S4M Spec Sheet Eddy WiFi Spec Sheet Eddy BT Spec Sheet LemonlDE Spec Sheet Description Specifications for Eddy CPU and DK board Eddy S4M spec description Eddy WiFi module spec description Eddy BT module spec description integrated development environment description Eddy White Paper An introductory reading for anyone new to embedded device server Deals with background
7. 4 6 8 also have the A UP w DN lt LEFT RIGHT direction function for LCD menu P10 P17 4x4 Key matrix 1 0 PB20 First Row line IN PB21 Second Row line IN PB30 Third Row line IN PB31 Forth Row line IN PC20 First Column line from left IN PC21 Second Column line from left IN PC22 Third Column line from left IN PC23 Fourth Column line from left IN 2 4 2 7 SW17 Power In order to power up pull up this switch 2 42 8 Reset1 Reset Pin name Function Discription 1 0 Polling Input signal continually from External Reset key implement as below with checking the constant PC16 nRESET time of Low IN Less than 5 seconds General reset function More than 5 seconds Factory Default function 32 oo ASystemBase oN Eddy real time Eddy DK Programmer Guide 243 LED Description DTXD DRXD Debug Port GPIO LED 20EA RDY System Ready PWR Power 180 0mm 1 USB HUB TXD1 RXD1 COM Port 1 TXD2 RXD2 COM Port 2 TXD3 RXD3 COM Port 3 TXD4 RXD4 COM Port 4 2 4 3 1 GPIO LED Eddy CPU v2 1 v2 5 supports Max 56 GPIO ports DK board has 20 GPIO LEDs of all GPIO to test This GPIO LEDs are controlled by UART select switches refer to 2 4 2 4 UART Select PIN name Function Discription O PC10 CTS3 UART 3 Clear to Send PC8 RTS3 UART 3 Request to Send O PB11 RXD3 UART 3 Receive Data PB10 TXD3 UART 3 Transmit Data O PA5 CTS2
8. Eddy as a firmware Application programs running in Eddy are made of Device Server functions SystemBase does not provide part of application source running in Device server Developers can refer to open source socket and serial provided as sample source Since these are optimized to enable application developers can use its advantage The followings are open sources in src folder Folder Name busybox 1 5 0 dropbear 0 50 gdbserver mtd util openssl 0 9 7c matrixssl 1 8 3 thttpd 2 25b vsftpd 2 0 5 ddns 1 8 ethtool 6 netkit ftp 0 18 target agent Net snmp 5 4 1 Iptables 1 3 7 RT73 Wireless_tools 29 Wpa_supplicant 0 6 9 8712_linux_v2 6 Description Linux Utility containing basic commands for the shell SSH Secure Shell Server Remote debugging program for LemonlDE Only executable file provided Management program for Mtd OpenSSL Library SSL type Matrixssl program SSL type HTTP Server FTP Server DDNS Server Ethernet based network testing program ftp client Program helps to upload download and execute user s programs linked with LemonlDE The source code not provided SNMP V1 V2 V3 program Bridge program for NAT function of LAN port WiFi Device Driver Wireless support Tool Applications Wireless support Tool Applications RTL 8712 Device Driver ASysiemBase CE Eddy real time Eddy DK Programmer Guide In case you make new application program refer to sample source in E
9. If you are using other operating system you will need tftp server and xinetd daemon compatible with that operating system First check to make sure tftp server is installed If you don t install tftp server you should install After install tftp server move provided firmware firmware folder in SDK folder to tftpboot folder usually tftpboot folder in Fedora core 5 a Serial Communication Experts AS ystemBase Eddy real time Eddy DK Programmer Guide 9 1 2 Hardware Install and Recovery 130 Connect LAN port of computer and that of DK board using LAN cable Connect debug port and computer s serial cable using serial cross cable and use minicom to connect to computer s serial port Configure computer s serial port setting to 115200 bps 8 data bit No parity 1 stop bit and power on DK Board Serial Cable LAN Cable Eddy S4M Dk Eddy CPU Dk After power on the following messages will be printed to minicom When these are printed press enter to enter into bootloader The below image shows status after entering bootloader NAND 256 MB Macb0 Autonegotiation complete Macb0 link up 100 Mbps full duplex Ipa 0x45e1 Hit any key to stop autoboot 0 U Boot U Boot You can recover by copying OS firmware and config image to flash memory in bootloader To upgrade OS firmware and config image file you have to configure Eddy s virtual IP address and TFTP server s IP address in bootload
10. Peripheral B SPI1_NPCS2 SPI1 Serial Peripheral Interface Peripheral Chip Select 2 Peripheral A D21 External Data bus i Poan J10_5 aa Peripheral B EF100 Ethernet WAN Force 100Mbit sec 6 PC23 J10_6 J4 28 Peripheral A D23 External Data Bus 7 HDMA J10 7 J1 27 USB Host Port A Data 8 NC J10 8 Not Connect 9 HDPA J10_9 J1_29 USB Host Port A Data 10 DDM J10_10 USB Device Port Data 11 PC26 J10_11 D26 External Data Bus 12 DDP J10_12 USB Device Port Data PCA Eddy DK v2 1 RDY OUT Ready signal Output signal for CPU operation status 13 RDY J10_13 J4_11 Peripheral A A23 External Address Bus Peripheral B SPI1_NPCS2 SPI1 Serial Peripheral Interface Peripheral Chip Select 2 PC16 Polling Input signal continually from External Reset key implement as 14 RESET J10 14 J4 21 Eddy DK v2 1 nRESET IN below with checking the constant time of Low Less than 5 seconds General reset function ASystemBase B St Eddy Eddy DK Programmer Guide More than 5 seconds Factory Default function Peripheral A D16 External Data Bus Disabled Peripheral B SPIO_NPCS2 SPIO_SPCK SPIO_MISO and SPIO_MOSI signals for SPIO are disabled as they are not connected externally 15 ICE_NTRST J10_15 J7_3 ICE Test Reset Signal 16 RTCK J10_16 J7_11 Return Test Clock 17 TDO J10_17 J7_13 Test Data Out 18 TMS J10_18 J7
11. SDCDN 118 SDCLK 55 GND 56 NRST 119 JTAG_SEL 120 SDWP 57 PBO 58 PB1 121 NC 122 BMS 59 PB2 60 PB3 123 NC 124 3 3V 61 PB12 62 GND 48 stscomnnan soon S ASystem Base Eddy time Eddy DK Programmer Guide 25 2 Connector Pinout of Boards 2 5 2 1 ICE and JTAG S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 1 TDI Test Data IN 2 TDO Test Data Out 3 TMS Test Mode Select 4 RTCK Return Test Clock 5 TCK Test Clock 6 NTRST Test Reset JTAG boundary scan can be used by connecting J3 119 JTAGSEL This pin should not be connected when using ICE In Circuit Emulator or in normal operation status 25 22 Ethernet signal from or to PHYceiver S4M S4M S4M JIG DK Pin No Name Pin HDR Pin Description 124 46 2 HDR 46 2 7 LAN_RX J5 pin2 J7 Pn2 Ethernet PHY Physical receive or transmit signal differential in CPU 8 LAN_TX J5 pint J7 Pint Ethernet PHY Physical receive or transmit signal differential in CPU 9 LAN _RX J5 pin3 J7 pin3 Ethernet PHY Physical receive or transmit signal differential in CPU 10 LAN TX J5 pin4 J7 pin4 Ethernet PHY Physical receive or transmit signal differential in CPU LAN connection status LED Link Activity Pin State LED Definition 11 LAN_Speed J5pin J7 pin6 Ng ink a om Link L ON Activity Toggle Blinking Link Activ
12. data Pointer to the data to be sent length Length of the data to be sent None When the transmit buffer is full this function will retry up to 10 time in 20 msec period it will return after transmission is completed SB_ReadSerial Function Format Parameter Returns Notice Reads data from the serial port int SB_ReadSerial int handle char data int length int wait_msec handle Handle to serial port data Buffer pointer where the read data will be saved length Size length of the buffer memory Time the function will wait for next received data after reading from read buffer O n Size of the read data When wait_msec is set to 0 this function will only read data from serial receive buffer when set larger than 0 it will read data from serial receive buffer wait for time specified in msec unit and then continue reading data from serial port as one packet The maximum size of the data is same as buffer s size ie length You can use value obtained from SB_GetDelaySerial function or value manually calculated for wait_msec wait_msec 60 Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 106 SB_GetMsr Function Reads MSR register value from serial port Format Char SB_GetMsr int handle Parameter handle Handle to serial port Returns Value MSR Register g Bit 76543210 BitO CTS change Bit1 DSR change Bit2
13. history market environment and technology All documents are updated promptly so check for the recent document update The contents in these documents are subject to change without any notice in advance ar wh A MSystemBase CI Eddy real time Eddy DK Programmer Guide 1 5 Technical Support There are three ways you can get a technical support from SystemBase First visit our website http Awww sysbas com and go to Technical Support menu There you can read FAQ and ask your own question as well Second you can e mail our technical support team The mail address is tech sysbas com Any kind of inquiries requests and comments are welcome Finally you can call us at the customer center for immediate support Our technical support team will kindly help you get over with the problem The number to call is 82 2 855 0501 Extension number 225 Do not forget to dial the extension number after getting a welcome message Copyright 2007 SystemBase Co Ltd All rights reserved Homepage http www sysbas com Tel 82 2 855 0501 Fax 82 2 855 0580 1601 DaeRyung Post Tower 1 212 8 Guro dong Guro gu Seoul Korea oTo Sh re ASystemBase CT Eddy real time Eddy DK Programmer Guide Chapter 2 Getting Started 2 1 22 This chapter explains about packaging and installation and discusses key features of Eddy DK What can you do with Eddy DK Eddy DK is designed to help programmers to
14. 18 NC 0o Serial Communication Experts Sh AS ystemBase Eddy Eddy DK Programmer Guide J1 Specifications J1 Pin Signal Name Pin Signal Name 1 PA5 2 PA4 3 PC5 4 PC19 5 PC21 5 PC23 7 HDMA 8 NC 9 HDPA 10 DDM 11 PC26 12 DDP 13 PC4 RDY 14 PC16 nRESET 15 ICE_NTRST 16 RTCK 17 TDO 18 TMS 19 TDI 20 TCK 21 3 3V 22 GND 23 3 3V 24 GND 25 PB29 CTS1 26 PB28 RTS1 27 PB6 TXD1 28 PB7 RXD1 29 A20 30 A19 31 LAN_Speed 32 LAN ILink 33 LAN _RX 34 LAN _RX 35 LAN TX 36 LAN TX Asy Serial Communication Ex stemBase 06 ml Eddy Eddy DK Programmer Guide J1 Pin Description 5 DK v2 1 Expansion xe Pin No Name Pin No Hea Ms Pin No Description Peripheral A CTS2 UART 2 Clear to Send Signal Disabled 1 PA5 J10_1 J4 2 Peripheral B MCBD1 Data Flash connected with SPIO is used for Eddy CPU v2 1 v2 5 For this reason SPIO and MCDBO MCDB3 and MCCDB signals multiplexing cannot be used thus Multimedia Card Slot B is disabled Peripheral A RTS2 UART 2 Request to Send Signal das aa J41 Peripheral B MCDB2 Disabled 3 PC5 J10 3 J4 12 Peripheral A A24 External Address Be Peripheral B SPI1_NPCS1 SPI1 Serial Peripheral Interface Peripheral Chip Select 1 Peripheral A A24 Multimedia Card Slot B Data 4 PC19 J10_4 J4_24 s
15. ASystemBase EE Eddy Eddy DK Programmer Guide 2422 S5 ADC Select You can choice the GPIO and ADC function with this switch In order to use the ADC device you should switch off And In order to use the GPIO function you should switch on ON ON 5 TL SW Off ADC mode SW ON GPIO mode PIN name Fuction Discription 1 0 PCO ADCO Temp Sensor Input LM50 RN U22 IN PC1 ADC1 Lux Sensor Input BH1600 RN U26 IN PC2 ADC2 Temp Sensor Input TMP300 RN U24 IN PC3 ADC3 N A IN RN Reference Number 2423 S6 NAND Flash amp Data Flash Chip Select This switch is Nand Flash amp Data Flash Chip select switch This switch is needed in firmware Programming ON Tt Flash Programming amp Booting device Selection Switch Switch ne No 1 No 2 Operation descriotion For Flash Programming OFF OFF This setting is needed in firmware Programming refer to 9 2 System recovery via USB OFF ON Boot from Data Flash ON OFF Boot from Nand Flash Boot from Data Flash or Nand Flash which have bootloader if Both devices have the bootloader algorithm in CPU select the bootloader ON ON of Data Flash Reference CPU Datasheet 13 2 AT91SAM9260 Boot Program 29 Asy Serial Communicati stemB ar ion Experts Co Eddy Eddy DK Programmer Guide 2 4 2 4 S7 UART Select In order to test Serial Port UART Select Switches are pu
16. Applet Can t detect known device Error Initializing xxxxFlash Applet Can t detect known device while executing error Error Initializing xxxxFlash Applet dummy_err procedure xxxxFLASH Init line 13 invoked from within booxFLASH Init 1 1 42 Serie Communication Experts A ASystemBase EE Eddy Eddy DK Programmer Guide 93 Product Specification 931 143 Eddy CPU v2 1 Specifications RN Specification Item Classification Eddy CPU v2 1 Eddy CPU v2 5 CPU ARM926EJ S 210 MHz AT91SAM9G20 400 MHz Memory 8MB Data Flash 32 MB SDRAM External I F 19 Bit 16 Bit Data Bus Ethernet I F 10 100 Base T Auto MDI MDIX UARTs 4 Port Support up to 921 6 Kbps 1 Full Signal 2 3 4 RxD TxD RTS CTS only USB 2 0 FS 2 Host 1 Device Port 2 0 FS 12Mbps Hwrdware ADC 4 Channel 10 Bit ADC TWI I2C Master Multi Master and Slave Mode SPI 8 to 16 bit Programmable Data Length Four External Peripheral Chip Selects GPIO Max 56 Programmable I O Pins Power Input 3 3 V 200 mA Max Dimensions 25 x 48 5 x62 mm Weight 83g Protocol TCP UDP Telnet ICMP DHCP TFTP HTTP SNMP 1 amp 2 SSH SSL Network Ethernet 10 100Mbps MAC PHY peels Static IP DHCP Connection O S Linux Kernel 2 6 21 Softwar Mot Tools SNMP Web PortView ee Uploads TFTP FTP Web Dev Tools LemonlDE amp SDK Operating Temp 40 85 Environmental Stora
17. COM Port 3 amp Port 4 65 RS422 Full Duplex Pin Signal Description 1 TXD Transmit differential data positive Output 2 TXD Transmit differential data negative Output 3 GND Ground 4 RXD Receive differential data positive Input 5 RXD Receive differential data negative input 5 Q SystemBase Cr N Eddy Eddy DK Programmer Guide real time RS485 Half Duplex Pin Signal Description 1 TRX Transmit Receive differential data positive 2 TRX Transmit Receive differential data negative J15 Debug Port You can confirm debug massage and information of state through debug port RS232 RS232 GND 5 RXD 4 TXD TXD O8 RXD DO DB9 Male DB9 Male GND Environment Configuration Debug port is configured like below so that you must change serial port connected with debug port configuration like bellow Speed 115200 bps Data bit 8 bit Parity bit Non Parity Stop bit 1 bit Flow control none 66 ASystemBase ag ln Eddy DK Programmer Guide 2627 S1 Power Jack Contact Polarity Center D 2mm 5VDC Outer D 6 5mm Ground Ground 5VDC GPIO Connector pinout Pin Signal Pin Signal 1 PA5 2 PA22 3 PA30 4 NC 5 PBO 6 PB1 7 PB2 8 PB3 9 PB12 10 PB13 11 PB16 12 PB17 13 PB18 14 PB19 15 3 3V 16 3 3V 17 PB20 18 PB21 19 PB30 20 PB3
18. DK source code folder If you use Eddy CPU mp v2 5 32bit please use the firmware in 32bit only folder eddy bl 2 5 x x bin Boot Loader eddy bs 2 5 xx bin Boot Strap File Name eddy os 2 5 xx bin Kernel File Name eddy fs 2 5 xx bin File System File Name 4 Among files extracted Eddy burning SerialFlash bat file performs transferring firmware to Eddy DK board by executing a TCL file then creates a log file In this file eddy bl 2 5 x x bin file name amp Eddy_burning_SerialFlash tcl file name should be same with the name of the file copied sam baexe usb ARMO AT91SAM9G20 EK Eddy_burning_SerialFlashtcl eddy bl 25xxbin Y logfile log notepad logfile log Among files extracted Eddy_burning_SerialFlash tcl file performs transferring firmware to Eddy DK v2 1 board In this file eddy bs 2 5 x x bin eddy os 2 5 x x bin and eddy fs 2 5 x x bin file names should be same with the names of the files copied ol aS FEB HHH HHH HEHEHE AEH HEA A AHAAA ER HAARR EHH HERHEHRHHEHH Main script Load the linux demo in SerialFlash Update the environment variables FHA HH HHH EEE EE ARAARA ERRAR HAARR EHH HHRHEHRHHHH array set df_ mapping bootstrapFileName _ eddy bs 2 5 XX bin kernelFileName eddy os 2 5 XX bin filesystemFileName eddy fs 2 5 XX bin le ASystemBase U Eddy realtime Eddy DK Programmer Guide 9 2 2 140 Installing DK Board Driver To detect the DK board via USB you need to install the DK board d
19. Documents enenenenenenenenenenenenenenerereneneneeeenenenenenenenenenenenenenen 7 Wo Teenmcal SURD nnen kennen ene eenden 8 Chapter 2 Getting Started nnn aeneuneneneneneneneneansnsnnenenenrwanaenenvaoananaoneensoeosdenene 9 21 What can you do with Eddy DK Pannensets keerden 9 22 Eddy DK Package Contents aanmeet 9 PA HOOP VO II AVA een ee elden edelen 10 B BDR r dette aertin attatitinacdiaatevmiatd 27 Be o o U EE 46 BiG o Co aSa D e V2 7 ccsicuscdeusazdncsaasandesnatdnnastianacasvetbuedcanyedaadassyaicedbataonaneusedbaestinmasesssicheassavaanunedionss 58 27 o o Sa VO eenander vaneen ren esicusidnitedsesicordusihcnedibieenadendateitantans 68 Be ECVP VS Denneman eenden deense de 72 Ed BBT VON erdrensendhiadeta ee daden ieed nies tess as nba reien had ceva ehectbda eneen 74 2 10 Eddy CPU Mp V2 5 wensbon edere toensnat ebben dakini rennen ennenen 76 2 11 Eddy CPU mp 32bit V2 5 zen sasiscscavscassiwodatasuiibnaanaceconnionsedianeaialiciatasaiasathe enabelen 78 Chapter 3 Development Environment oo cssssssesssssesesesessesssesesessssserevevevecsesenesseseeserenereceenenes 80 3 1 Source code folder structure caocs xisapacayiekants ii diecnansstececefdcenkimbentneteideubachnitecieeibyanhibtdnsscantinstennsiestntas 80 32 Language naue eneen a a haan eae yates 81 3 3 Development Environment scccsosesesosescscesocsseseesserersnesorssccessecorsresorsseaeseserocasenorsscseassesorsresors 81 3 4 Installing on VINO WS OS antnatannt
20. Flash memory using Telnet Web Browser Connect to Web server of Eddy and save a firmware to the Flash memory Please refer Eddy_User_Guide for detail information Boot Loader Use the boot loader which operates on booting to save a firmware through the debugging port of Eddy DK board Please refer the chapter 9 System Recovery for detail USB Use USB client port of Eddy DK board to upload a firmware Please refer the chapter 9 System Recovery for detail This section explains how to upload a firmware using a FTP On Windows FTP can be used in cmd command prompt to carry out upload process Upload the created firmware eddy fs 2 x x x bin to the tmp folder of Eddy using an FTP Password ftp cd tmp ftp bin ftp bye shlee localhost firmware ftp 192 168 0 223 Connected to 192 168 0 223 Name 192 168 0 223 shlee eddy 331 Please specify the password 230 Login successful 250 Folder successfully changed 200 Switching to Binary mode ftp put eddy fs 2 1 x x bin local eddy fs 2 x x x bin remote eddy fs 2_x x x bin 227 Entering Passive Mode 192 168 0 223 195 50 150 Ok to send data 226 File receive OK 2104287 bytes sent in 0 47 seconds 4 3e 03 Kbytes s 97 Serial Communication Experts ASystemBase 66 Ga ak Eddy real time Eddy DK Programmer Guide 98 221 Goodbye shlee localhost firmware Use Tel
21. J3 Pin Signal Name Pin Signal Name 1 PIDO 2 PID1 3 PID2 4 PID3 5 PID4 5 GND 7 PC14 8 PC17 9 PC18 10 PC8 RTS3 11 PC20 12 PC10 CTS3 13 PA22 14 PC15 IRQ1 15 PB8 16 PB9 RXD2 17 PB10 18 PB11 RXD3 19 PCO 20 PC1 AD1 21 PC2 22 PC3 AD3 23 PB14 DRXD 24 PB15 DTXD 25 GND 26 GND 27 BMS 28 NRST 29 PB23 DCDO 30 PB5 RXDO 31 PB4 TXDO 32 PB24 DTRO 33 PB22 DSRO 34 PB26 RTSO 35 PB27 CTSO 36 PB25 RIO ASystemBase B St Eddy Eddy DK Programmer Guide J3 Pin Description DK v2 1 Expansion Pin No Name Rae Header Pin Description Pin No No 1 5 PID 4 0 J8_1 7 Product ID only used by the Maniac rarer J8_5 Please do not work on these pins 6 25 26 GND Ground Peripheral A NCS3 External Device Chip Select 3 7 PC14 87 41 G Ja J413 Peripheral B IRQ2 External Interrupt Input 2 Peripheral A D17 External Data Bus 8 PC17 J8_8 J4_22 Peripheral B a Disabled SPIO_NPCS3 ee Peripheral A D18 External Data Bus 9 PC18 J8_9 J4 23 Peripheral B 7 E Ses SPI1 Serial Peripheral Interface Peripheral Chip Select 1 Peripheral A NCS4 External Device Chip Select 4 10 PC8 J8_10 J4 13 ai is Peripheral B RTS3 USARTS3 Request to Send Peripheral A D20 External Data Bus 11 PC20 J8_11 J4 25 Peripheral B SPI1_NPCS3 SPI1 Serial Peripheral Interface Peripheral Chip Select 3 Peripheral A A25 External Address Bus 1
22. Mini PCI Card Type Ill System Connector Pinout CPU mo V2 5 M4 2011 04 04 SystemBose Co Ltd EDDY J3 See eee eeee Pin Signal Pin Signal Pin Signal Pin Signal 1 LAN_RX 2 LAN_TX 63 PB8 64 PB9 Key Key 65 PB10 66 PB11 3 LAN_RX 4 LAN_TX 67 PB12 68 PB13 5 LAN Speed 6 LAN_LINK 69 DRXD 70 DTXD 7 FPG 8 RDY 71 PB16 72 PB17 9 3 3V 10 GND 73 PB18 74 PB19 11 DO 12 D1 75 PB20 76 PB21 13 D2 14 D3 77 PB22 78 PB23 15 D4 16 D5 79 PB24 80 PB25 17 D6 18 D7 81 PB26 82 PB27 19 D8 20 D9 83 PB28 84 PB29 21 D10 22 D11 85 PB30 86 PB31 23 D12 24 D13 87 3 3V 88 GND 25 D14 26 D15 89 PCO 90 PC1 27 NRD 28 NWE 91 PC2 92 PC3 29 3 3V 30 GND 93 PC5 94 PC8 31 AO 32 Al 95 PC9 96 PC10 33 A2 34 A3 97 PC12 98 PC13 35 A4 36 A5 99 PC14 100 PC15 37 A6 38 A7 101 nRESET 102 PC17 39 A8 40 A9 103 PC18 104 PC19 ASystemBase Since 1987 Eddy ne Eddy DK Programmer Guide 41 A10 42 All 105 PC20 106 PC21 43 A12 44 Ai3 107 PC22 108 PC23 45 A14 46 A15 109 3 3V 110 GNO 47 3 3V 48 GND 111 GND 112 PC26 49 PA4 50 PA22 113 TWCK 114 TWD 51 PAS 52 PA30 115 DDP 116 DDM 53 PAS 54 NRST 117 HDPA 118 HOPB 55 PBO 56 PB1 119 HOMA 120 HDMB 57 PB2 58 PB3 121 NAND_OE 122 A21 59 PB4 60 PB
23. Programmer Guide Other folders contain open sources for Eddy applications 3 2 Language Eddy DK application should be composed with C language All example source codes provided are composed in C language You can use more than one source file if you are using C programming Language If you are familiar with programming with ANSI C there will be no difficulties creating applications for Eddy 3 3 Development Environment Eddy DK requires Windows or Linux host system Officially supported Oss are as follows Windows 2003 Windows Linux Red Hat 9 0 Fedora Core 4 5 6 Windows XP SP2 SUSE Linux Enterprise Server 10 2 Windows 2000 Ubuntu Linux 6 x 7 x Debian Linuv 4 0 CentOS 4 5 Asianux edition 3 3 4 Installing on Windows OS This chapter will describe how to install Eddy Development Environment on Windows host The explanation of this manual based on Windows XP To establish Eddy s integrated development environment LemonlDE please refer to for further instructions 81 LemonlDE User Guide i Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 3 5 Installation of Cygwin To execute LemonlDE on Windows hosts some of libraries from Linux system are required Cygwin is a virtual Linux program for Windows To install Cygwin please refer to Cygwin Setup zip in SDK Windows folder of Eddy DK CD After unzipping this file in Windows PC run Setu
24. SETGPIOMOD_L int modef 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores mode value Bit value 0 means input 1 means output None Any value is ok for bits that are not set to be used GPIO GETGPIOMOD_LA GETGPIOMOD_LB GETGPIOMOD_LC Function Reads Read Write direction for one of Port A B C Format void ioctl int fd GETGPIOMOD_L int mode 3 Parameter fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the mode value Returns None Notice SETGPIOVAL_LA SETGPIOVAL_LB SETGPIOVAL_LC Function Format Parameter Returns Notice Sets output value when Port is in output mode void ioctl int fd SETGPIOVAL_L int value 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores the value value Bit value 0 means Low 1 means High None Any value is ok for bits that are not set to be used GPIO a Serial Communication Experts SS AS ystemBase Eddy Eddy DK Programmer Guide GETGPIOVAL_LA GETGPIOVAL_LB GETGPIOVAL_LC Function Reads Read Write status value for one of Port A B C Format void ioctl int fd GETGPIOVAL_L int modef3 Parameter fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the value value Returns None Notice SETGPIOPUL_LA SETGPIOPUL_LB SETGPIOPUL
25. Select the Start Menu folder in which you would like to create the program s shortcuts You can also enter a name to create anew folder ATMEL Corporation Catalyst Control Center CrossCert Daum ullsoft Inst lt Back Install _ cancel SAM BA v2 10 Setup Click Next f Installation Complete Completed T SAM BA v2 10 Setup If you want to create Shortcuts check Desktop or En Quick Launch Bar then click Next SAM BA Shortcuts SAM BA CDC Shortcuts Desktop Quick Launch Bar Check Reboot now then click Finish SAM BA v2 10 Setup Completing the SAM BA v2 10 Setup Wizard It is strongly recommended you reboot the computer to complete the installation OI want to manually reboot later 1 38 Serial Communication Experts ASystemBase Since 1987 E ddy time Eddy DK Programmer Guide Prepare firmware files and flash writing utility programs as follows 1 Copy usb recovery xxx zip file to any folder e g C SystemBase USB recovery from SDK Windows USB recovery folder in Eddy DK CD Refer to the Eddy official community site http www embeddedmodule com 2 Among files extracted copy at91sam9g20 ek tcl amp isp serialflash at91sam9g20 bin file to the below folder C Program Files ATMEL Corporation SAM BA v2 10 tcl_lib at91sam9g20 ek 3 Among files extracted copy below listed files to the firmware folder in
26. a license to use the Software and related documentation and hardware peripherals Software You agree to the Following terms and conditions 1 Grant of License Tf you accept the terms of the agreement click I Agree to continue You must accept the agreement to install SAM BA v2 10 B SAM BA v2 10 Setup License Agreement Please review the license terms before installing SAM BA v2 10 Release note Release Notes B SAM BA Release version 2 10 Release date 2010 July 1 Overview The SAM Boot Assistant SAM BA software provides a means of easily proarammina different Atmel IF you accept the terms of the agreement click I Agree to continue You must accept the agreement ta install SAM BA v2 10 lt Back Next gt Cancel SAM BA v2 10 Setup Choose Install Location Choose the Folder in which to install SAM BA v2 10 Setup will install SAM BA v2 10 in the following Folder To install in a different Folder click Browse and select another Folder Click Next to continue Destination Folder C Program Files WATMEL Corporation WSAM BA vz 10 Browse Space required 78 4MB Space available 240 2GB lt Back Next gt Cancel any folder eg C SystemBase USB_recovery from ASystemBase Since 1987 Eddy Eddy DK Programmer Guide real time SAM BA v2 10 Setup Click Install Choose Start Menu Folder Choose a Start Menu folder for the SAM BA v2 10 shortcuts
27. and Slave Mode SPI 8 to 16 bit Programmable Data Length Four External Peripheral Chip Selects GPIO Max 56 Programmable I O Pins Power Input 3 3 V 200 mA Max Dimensions 59 75 x 44 6 X 1 0 mm Weight 83g 06 Serial Communication Experts wh AS ystemBase Eddy Eddy DK Programmer Guide 149 ae 724 Protocol TCP UDP Telnet ICMP DHCP TFTP HTTP SNMP 1 amp 2 SSH SSL Network Ethernet 10 100Mbps MAC PHY Network eed Static IP DHCP Connection O S Linux Kernel 2 6 21 Mgt Tools SNMP Web PortView Software Uploads TFTP FTP Web Dev Tools LemonlDE amp SDK Operating Temp 40 85 Environmental Storage Temp 60 150 Humidity 5 95 Non Condensing CE Class A Appias FCC Class A Ay ji RoHS RoHS com pliant RoHS Compliant e Serial Communication Experts SS ASystemBase Eddy Eddy DK Programmer Guide 94 Ordering Infomation 150 Product Eddy CPU Eddy CPU Eddy DK Eddy S4M Eddy S4M Eddy S4M DK Eddy S4M JIG Eddy WiFi Eddy BT Eddy CPU mp Eddy CPU mp 32bit Eddy CPU mp 32bit Eddy CPU mp JIG Version Descriotion 21 Embedded CPU Module 25 Embedded CPU Module Eddy V2 1 Development Kit Embedded CPU Module Mini PCI Type Embedded CPU Module Mini PCI Type Eddy S4M v2 1 Development Kit Eddy S4M v2 1 JIG Board 802 11 b g n WiFi Module Bluetooth 2 0 Class 1 Embedded CPU Module 32MB SDRAM E
28. bin l Load the bootstrap xxxxflash_at91sam9xxxek in the first sector GENERIC SendFile eddy bs 2 xx x bin at address 0x0 8 With the successful log message confirm whether the new firmware works properly or not by rebooting Eddy DK v2 1 board 141 wh ASystemBase CU Eddy Eddy DK Programmer Guide 924 Solving problems during System recovery execution via USB 1 If you use firmware file name wrongly log file will pop up as below In this case you should check whether the file names of firmware copied is same with the firmware names in Eddy burning oxFlash bat or Eddy burning xxxxFlash tcl files script file Eddy burning xxxxFlash tcl u boot file eddy bl 2 x x x bin E Script File Eddy buring xxxxFlashtel returned error could not read eddy bl 2 X x x bin no such file or directory could not read eddy bl 2 x x x bin no such file or directory while executing file size ubootFileName invoked from within 2 If your PC connects to Eddy DK board wrongly log file will pop up as below In this case you need to check the connection l Waiting E Connection usb ARMO not found E Connection list COM2 COM3 COM4 COM5 3 Ifyou get as below log file you need to check the S6 dip switch It should be pulled up Loading applet isp dataflash at91sam9g20 bin at address 0x20000000 E Script File Eddy_burning_DataFlash tcl returned error Error Initializing xxxxFlash
29. click AT91 ISP exe file and begin the BEES installation process of USB Tool program then ebs click Next Setup Wizard This wizard will guide you through the installation of AT91 ISP v1 12 It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your computer Click Next to continue On the splash screen click Agree SSF SPOR ass License Agreement Please review the license terms before installing AT91 ISP v1 12 Press Page Down to see the rest of the agreement SOFTWARE LICENSE AGREEMENT Important Read carefully This is a legally binding agreement between Atmel Corporation including its Isubsidiaries and affiliates Atmel and You You In return for acquiring la license to use the Software and related documentation and hardware peripherals Software You agree to the following terms and conditions 1 Grant of License v If you accept the terms of the agreement click I Agree to continue You must accept the agreement to install AT91 ISP v1 12 lt Back _TAgree _ cancel _ Browse to the following folder then click ATOI ISP v1 12 Setup a Next EEE ee C ProgramFiles ATMELCorporation AT91 ISP v1 12 Setup will install AT91 ISP v1 12 in the Following folder To install in a different Folder click Browse and select another folder Click Next to continue Destinatio
30. develop a customized application that can be applied to Eddy module easier and faster It has been a time consuming and burdensome work to port an operating system and develop an application on a new hardware Eddy module and Software Development Kit makes this work easy Eddy DK is different with other device servers in which it can run customized applications Users can upload most existing socket serial communication applications that are running on the Linux environment This openness allows users to apply wide variety of functions into the module with relatively less restrictions Eddy DK supports IDE LemonlDE and SDK environment to help programmers to execute their own applications on the module Programmers can easily write applications using the Linux environment with the help of SDK and example source codes Cross compiler running on the standard Linux environment helps your applications to run on the Eddy module Embedded Linux on Eddy can provide stable and rapid environment for your applications Eddy DK Package Contents Eddy DK includes Eddy module Eddy DK package contains as follows Make sure following contents are included in the Eddy Serial DK Package Case of Eddy DK Eddy CPU v2 1 v2 5 1ea Eddy DK v2 1board 1ea Case of Eddy S4M DK Eddy S4M v2 1 tea Eddy S4M DK board 1ea Option Eddy S4M JIG 1EA Serial cable 1EA LAN cable 1EA USB AtoB Cable 1EA Power adaptor 1EA CD SystemBase SDK LemonlDE co
31. eddy_DK_2xx folder will be created after the installation pwd home shlee Unzip the file If Eddy_DK_2xx folder is created the installation is completed The below shows the contents of Eddy_DK_2xx folder root localhost eddy DK_2xx Is al Total 32 drwxr xr x 6 shlee work 4096 Nov 26 14 43 drwxrwxr 26 shlee work 4096 Nov 30 21 25 drwxr xr x 4 shlee work 4096 Noc 26 14 46 src rwxr xr x 1 shlee work 2822 Nov 26 14 43 Env sh rwxr Xr X 1 shlee work 171 Nov 26 14 43 Make check drwxr xr x 2 shlee work 4096 Nov 29 17 50 firmware drwxr xr x 5 shlee work 4096 Nov 29 17 50 ramdisk drwxr xr x 4 shlee work 4096 Nov 26 14 47 tool a Serial Communication Experts mh AS ystemBase Tal E ddy time Eddy DK Programmer Guide 3 12 Removing Development Environment Development Environment can be removed by simply deleting the folder where installed files are located 3 13 Removing Windows Development Environment Delete the folders where DK Source and Cywin are installed 3 14 Removing Linux Development Environment rm rf filesystem_2 1 x x Removal of Eddy DK Source rm rf opt Lemonix Removal of Eddy ToolChain 87 06 Serial Communication Experts SS ASystemBase Eddy Eddy DK Programmer Guide Chapter 4 Compiling of Application Program 41 88 Program Type This chapter explains how to compose application program load to Eddy to execute and store it to flash memory of
32. port 1 Ring Indicator signal 44 RIO J4 pin8 J6 pin8 RS232 receiver input in Eddy S4M module 45 PA5 J5 pin7 J7 pin Only used for GPIO COM port 1 Receive Data signal 46 RxD1 J4 pin12 J6 pin12 RS232 receiver input in Eddy S4M module 47 PA22 J5 pin8 J7 pin8 Only used for GPIO COM port 1 Request to Send signal 48 RTS1 J4 pin13 J6 pin13 RS232 driver output in Eddy S4M module 51 PA30 J5 ping J7 ping Only used for GPIO COM port 1 Request to Send signal 52 TxD1 J4 pint J6 pin11 RS232 driver output in Eddy S4M module COM port 1 Request to Send signal 54 CTS1 J4 pin14 J6 pin14 RS232 receiver input in Eddy S4M module 56 NRST J5 pin46 J7 pin46 External device Reset output signal active low 51 ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 2524 PIOB and PIOC Peripheral I O Controller B C S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 SPI1 Serial Peripheral Interface Peripheral A SPI1_MISO 57 PBO J5pintt J7 pint Master In Slave Out Peripheral B TIOA3 Timer Counter ch3 I O Line A SPI1 Serial Peripheral Interface Peripheral A SPI1_MOSI 58 PBI J5pint2 _ J7 pint2 Master Sut Sen Peripheral B TIOB3 Timer Counter ch3 I O Line B SPl1 Serial Peripheral Interface Serial 59 PB2 J5 pin13 J7 pin13 Peripheral A SPI1_SPCK Clock SPI1 Serial Peripheral Interface Peripheral A SPI1_NPCS
33. the read write P12 R W mode IN High Read mode Low Write mode Register selection input igh Data regist P13 D T High Ba a ed er IN Low Instruction register for write Busy flag address counter for read P14 E Start enable signal to read or write the data IN 2 4 5 3 16bit 12C Bus GPIO This 16 bit I2C Bus GPIO PCA9539 provides general purpose remote I O expansion Slave address of this chip is set to 0x74 in DK board and Address can be changed with A1 A0 address input from 41 0x74 to 0x77 16 bit I O is used to Digital Input Output as below and this is connected with the Expansion Header also If you use for GPIO it is possible to configure individually Function Description 1 0 P00 P07 DIO Output Connected with DO 0 7 OUT POO DIO output DOO P01 DIO output DO1 P02 DIO output DO2 P03 DIO output DOS P04 DIO output DO4 P05 DIO output DO5 P06 DIO output DO6 P07 DIO output DO7 P10 P17 DIO Intput Connected with DI 0 7 IN P10 DIO Input DIO ASy Serial Communication siemBase CF Eddy Eddy DK Programmer Guide 42 P11 DIO Input DH P12 DIO Input DI2 P13 DIO Input DI3 P14 DIO Input DI4 P15 DIO Input DI5 P16 DIO Input DI6 P17 DIO Input DI7 JINT Connected with PB16 of Eddy CPU OUT Asy Serial Communication Exper stemBase ar S25 Eddy real time Eddy DK Program
34. to argment After connection it retransmits the received data to the other socket UDP socket communication application sample source This sample source waits for UDP connection to socket number test_udp_server c i f O appointed to argment and retransmits the received data to the other socket UDP socket communication application sample source This sample source tries UDP connection to IP address and test_udp_client c O socket number of the server appointed to argment After connection it retransmits the received data to the other socket def c Eddy Configuration program o Program which links to telnet and enables configuration of Eddy upgrade c Firmware update program O testdk c Eddy DK Eddy S4M DK Test Program O ddns_agent c Program that delivers Eddy IP information to DDNS server O test_gpio_led c GPIO LED Test Program Only Eddy Dk O test_gpio_pin c GPIO Pin Test Program Only Eddy DK O test adc c ADC Analog Disgital Converter Test Program O test_sio c Serial Port Test Program O test_rtc c RTC Real Time Clock Test Program O DIO Digital Input Output Test Program test_dio c O Only Eddy DK test keypad c Key Pad Test Program Only Eddy DK O test_mmc c SD Memory Test Program O test_Icd c LCD Test Program Only Eddy Dk O test_nand c NAND Flash Test Program Only Eddy Dk O test_spi_eeprom c EEPROM Test Program linked to SPI interface Only Eddy Dk O include Folder where there is a header file for application O SB_APIs L
35. value cgiFormStringNoNewlines N_GW buff 16 if value2 cgiFormEmpty convert address buff cfg system gateway value cgiFormStringNoNewlines N_DNS buff 16 if value2 cgiFormEmpty convert address buff cfg system dns cgiForminteger N_TELNET amp value cfg system telnet_server cfg system telnet server value cgiForminteger N_WEB amp value cfg system web server cfg system web server value le ao Serial Communication Experts SAD ASystemBase gt Eddy real time Eddy DK Programmer Guide Chapter 9 Appendix 9 1 129 This chapter explains how to recover Eddy when flash of Eddy is damaged and it cannot be booted System recovery via Bootloader Even if the flash in the user area has been damaged it does not affect system booting But if the system continuously reboots due to user program failure or if the system is inaccessible as a result of wrong IP setting you have to change the system to factory default status You can reload firmware from bootloader to change the system to default status In order to do this TFTP server has to be installed at the computer with Linux environment Note Once the bootloader is damaged it cannot be recovered Therefore user should not use command other than ones provided from manual Installing TFTP in Linux environment The following explains how to recover system with bootloader in Fedora core 5 operating system
36. with active high Command Type A2 CMD When high Data port OUT When low INDEX port D 0 15 Data Bus 16 bit mode 1 0 45 er Serial Communication Experts Gt AS ystemBase Eddy Eddy DK Programmer Guide real time 2 5 Eddy S4M v2 1 v2 5 Eddy S4M is a high performance mini PCI type embedded module which include ARM9 processor 32MB SDRAM 8MB DataFlash 10 100Base T Ethernet port Serial 4 Channel RTC with Battery minroSD 4ch ADC temperature sensor max 34 programmable GPIO pins Eddy S4M is 59 75 x 61 8mm size If using Eddy S4M JIG board user could develop their customized device without other H W development which minimizing time and cost to develop Referring Example code and Evaluation Kit circuit allow developer to design device they want Eddy S4M v2 5 is compatible with Eddy S4M v2 1 miniPCI Typelll Size 59 75 x 61 8mm miniPCl Typelll Size 59 75 x 61 8mm SESE Ethernet PHY Serial Driver IC RS232 2 Combo 2 1 0V f 3 8V j EHI E 7 a ee E ENNE EEN SO Niel Eddy S4M v2 1 Block Diagram Eddy S4M V2 5 Block Diagram 46 ASystemBase ag Edd means real time Eddy DK Programmer Guide 47 J2 3 WiFi Connector J1 BAT Slot St USB burning Switch U11 10 100 U12 13 422 485 Eddy S4M v2 1 gt USB to SD TTT Wal WAAL
37. 1 21 PCO 22 PC1 23 PC2 24 PC3 25 PC5 26 PC9 27 PC10 28 PC12 29 PC13 30 PC14 31 GND 32 GND 33 PC15 34 PC17 35 PC18 36 PC19 37 PC20 38 PC24 39 PC25 40 nRESET IN 41 RDY 42 NRST OUT 43 TWCK 44 TWD 67 06 Serial Communication Experts SS AS ystemBase Eddy means real time Eddy DK Programmer Guide 2 7 Eddy S4M JiG v2 1 Eddy S4M JIG board is test board which enable of user to integrate and test their application with Eddy S4M JIG board include mini connector for joining Eddy S4M Ethernet RJ45 USB Host Power Reset Switch and providing connectors to all Eddy S4M functions J1 10 100 Reset J4 5 Expan HEEEEMEN J6 5V Power 2 7 1 J6 Power Jack U1 3 3V J2 USB J3 Mini Regulator HOST PCI Slot Contact Polarity Center D 2mm 5VDC Outer D 6 5mm Ground Ground 5VDC 68 Sanga Eddy real time Eddy DK Programmer Guide 2 7 2 69 J1 Ethernet Since there is KSZ8041NL PHY in Eddy S4M module when integrating Ethernet just connect RJ45 in which transformer located WARNING When you use RJ45 which has transformer in its internal circuit it is possible to each product doesn t have equal PIN spec Therefore you must confirm PIN number Bellow is KSZ8041NL functions e Fully compliant to IEEE 802 3u Standard e Supports MDI MDI X auto crossover Auto MDI e MII interface support e RMI interface support with external 50MHz system clock e ES
38. 1 J2 5 SPI1_NPCSO SPI1 Serial Peripheral Interface Peripheral Chip Select 0 3 25 5 ASystemBase x Eddy Eddy DK Programmer Guide 26 Peripheral B TIOA5 Timer Counter ch5 I O Line A Peripheral A TDO SSC Transmit Data 12 PB1 11_12 21 8 J11 J219 Peripheral B TIOB4 Timer Counter ch4 I O Line B 13 HDMB J11_13 J1_28 USB Device Port Data Peripheral A RDO SSC Receive Data 14 PB19 J11_14 J2 20 a Peripheral B TIOB5 Timer Counter ch5 I O Line B 15 HDPB J11_15 J1_30 USB Device Port Data Peripheral A RKO SSC Receive Clock 1 PB2 111 2 21 5 Jit Ie Je Peripheral B ISI_DO Image Sensor Data 0 17 A16 J11_17 J3_3 External Address Bus Peripheral A RFO SSC Receive Frame Sync 18 PB21 J11_18 J2_22 5 Peripheral B ISI_D1 Image Sensor Data 1 Ie AN Sin J3 External Address Bus 20 A18 J11_20 J3_1 External Data Bus 8 15 21 28 D 8 15 J11_21 J3_28 DK is directly connected with CPU and external connecter J3 is connected by buffer J11_28 J3_21 PC13 NCS6 Chip Select 6 should be enabled for working buffer if it is reset it work as Pulled up input 29 TWD J11_29 J4 3 Two wire Serial Data This pin cannot be used for GPIO 30 TWCK J11_30 J4 4 Two wire Serial Data This pin cannot be used for GPIO 31 NANDOE J11_31 NAND Flash Output Enable Address Bus 2 A22 11_32 J1_29 3 Jus T DK is directly connected with CPU
39. 2 PC10 J8_12 J4 15 a T Peripheral B CTS3 USART3 Clear to Send 13 PA22 J8_13 Digital I O Input 4 44 PC15 J8 44 J4 20 Ponpharal A NWAIT External Wait Signal Input Peripheral B IRQ1 External Interrupt Input 2 15 PB8 J8_15 J2_9 Peripheral A TXD2 UART2 Transmit Data 16 PB9 J8_16 J2_10 Peripheral A RXD2 UART2 Receive Data 17 PB10 J8_17 J2 11 Peripheral A TXD3 UARTS Transmit Data 3 21 5 ASystemBase x Eddy Eddy DK Programmer Guide 22 Peripheral B ISI_D8 Image Sensor Data 8 Peripheral A RXD3 UARTS Receive Data 1 PB11 1 2 12 j ee A Peripheral B ISI_D9 Image Sensor Data 9 Peripheral A ADO Analog to Digital Converter Input ChO 19 PCO J8_19 J4 7 T T Peripheral B SCK3 USARTS Serial Clock Peripheral A AD1 Analog to Digital ter Input Ch1 20 PC1 Ja 20 J4 8 enp era nalog to Digital Converter Input C Peripheral B PCKO Programmable Clock Output 0 21 PC2 J8 21 J49 SSDS A AD2 Analog to Digital Converter Input Ch2 Peripheral B PCK1 Programmable Clock Output 1 Peripheral A AD3 Analog to Digital Converter Input Ch3 22 PC3 J8_22 J4_10 Peripheral B SPI1_NPCS3 SPI1 Serial Peripheral Interface Peripheral Chip Select 3 23 PB14 J8_23 J2_15 Peripheral A DRXD Debug Receive Data 24 PB15 J8_ 24 J2 16 Peripheral A DTXD Debug Transmit Data Boot Mode Select signal 27 BMS J8 27 BMS 1 Boot on Embedded R
40. 22 485 driver IC UART 3 RS422 485 driver IC Connect to Expansion Header For Serial Port amp GPIO Test UART 0 3 and GPIO LEDs are 6 Serial Port and GPIO LED of DK board disconnected with the Eddy CPU board are enabled and directly connected with the Expansion Header J2 J4 i Serial Communication Experts wh ASystem Base Eddy Eddy DK Programmer Guide 2 4 2 5 S8 COM3 amp S9 COM4 Select COM Port 3 and COM Port 4 set the RS422 RS485 mode 31 COM PORT 3 4 settings Switch Switch a ae Bank No Down Position OFF UP Position ON 1 RS485 Half Duplex mode RS422 Full Duplex mode RS422 RX enabled 2 RS4 ho S8 RS485 echo mode SA8 inon echozmode Port 3 5 RS422 Termination Resistor RS422 Termination Resistor not connected Connected 4 RS485 Termination Resistor RS422 Termination Resistor not connected Connected 1 RS485 Half Duplex mode RS422 Full Duplex mode RS422 RX enabled so 2 RS485 echo mode RS485 non echo mode Port 4 3 RS422 Termination Resistor RS422 Termination Resistor not connected Connected 4 RS485 Termination Resistor RS422 Termination Resistor not connected Connected ASystemBase CF Eddy Eddy DK Programmer Guide 2 4 2 6 SW1 SW16 Key Pad Key Pad of DK board are consisted with the 4x4 matrix GPIOs are set to Input mode to read the Key value and Key 2
41. 5 123 NAND_WE 124 A22 61 PB6 62 PB7 J2 Pin Signal Name 1 PBO 2 PB1 3 PB2 4 PB3 5 133V 6 133V 7 BHDM USB Host Data 8 BHDP USB Host Data 9 PA31 TXD4 10 PA30 RXD4 11 INRST 12 GND 13 GND 14 PA9 WPIDO 15 PC6 WPID1 16 PC7 WPID2 17 INC 18 INC 71 Ji Pin Signal Name NC NC 33V 33V PC25 BT_Factory PB10 TXD3 PB11 RXD3 l NI GD oO WIN PC8 RTS3 oO PC10 CTS3 4 oO PC24 BT_MODE k NRST k Po GND n wo GND 4 KR NC 4 ar NC e oO NC ASystemB i ion Experts An Eddy near real time Eddy DK Programmer Guide 2 11 Eddy CPU mp 32bit v2 5 U5 SDRAM 78 J1 J2 WiFi Connector EDDY CPU mp V2 5 M3 2011 01 13 SystemBase Co Ltd lade In Korea NANNANANANNNANnANNnNI nd s Ea MM U1 AMRO 400MHz LEE EB 11310002 SystemBase Co Ltd Made In KOREA U4 Data Flash UUU UAE ULULI a el e 5 3 L Ld Lu LJ LC HT DARATANARAUATANANANANANTANANA Sy LE Signal Signal Signal Signal 1 LAN_RX 2 LAN_TX 63 PB8 64 PB9 Key Key 65 PB10 66 PB11 3 LAN_RX 4 LAN_TX 67 PB12 68 PB13 5 LAN Spe
42. 9 You can program Data Flash in Eddy CPU v2 1 v2 5 via USB Refer to 2 4 2 3 S6 NAND Flash amp Data Flash Chip Select for further information 20 NRD J9_20 J1_23 External device Read Enable signal active low 21 23 GND Ground 22 24 3 3V 3 0V to 3 6V power input External Data Bus 0 7 25 32 DI7 0 J9 25 J3 29 J3 36 DK is directly connected EAR CPU and external connecter J3 is connected by buffer You J3_32 should enable PC13 NCS6 Chip Select 6 for working buffer if you reset it becomes Pulled up input Edd DK v2 1 NCS6 Data Bus connected with ETENA header can be used when NCS6 is enabled 33 PC13 J9_33 J4_18 Peripheral A FIQ Fast Interrupt Input External device Chip Select 6 penpuciares NESS 256MB memory area addressable active low 34 JTAGSEL J9 34 _ JTAG boundary scan can be used by Connecting pin34 and eos gonnen This pin should not be connected when using ICE In Circuit Emulator or in normal operation status 35 PC12 J9 35 J4 17 Peripheral A IRQO External Interrupt Input 0 ASystemBase B St Eddy real time Eddy DK Programmer Guide Peripheral B NCS7 External device Chip Select 7 256MB memory area addressable active low 36 NC Not Connect Serial Communication Experts asi ASystemBase EE Eddy Eddy DK Programmer Guide 20 J3 Specifications
43. 93 8 148 Eddy BT v2 1 Specifcatons Classification Specification Interface Bluetooth v2 0 EDR Class 1 Profile SPP Serial Port Profile Max TX Power 18dBm RX sensitivity 88dBm Power Supply voltage 3 3V DC Supply current 10mA 60mA Operating Temp Operating temperature 30 80 C Storage Temp Storage temperature 40 85 C Humidity Humidity 90 Non condensing Working distance Stub Antenna 1dBi Stub Antenna 1dBi 100 meters Stub Antenna 1dBi Dipole Antenna 3dBi 150 meters Dipole Antenna 3dBi Dipole Antenna 3dBi 200 meters Dipole Antenna 3dBi Dipole Antenna 5dBi 300 meters Dipole Antenna 3dBi Patch Antenna 9dBi 500 meters Dipole Antenna 5dBi Dipole Antenna 5dBi 400 meters Dipole Antenna 5dBi Patch Antenna 9dBi 600 meters Patch Antenna 9dBi Patch Antenna 9dBi 1 000 meters Approvals CE Class A FCC Class A ROHS Compliant Eddy CPU mp v2 5 v2 5 32bit Specifications Hardware T TA CPU AT91SAM9G20 400 MHz Memory 8MB Data Flash 32 MB SDRAM 64MB SDRAM External I F 16 Bit 16 Bit Data Bus Ethernet I F 10 100 Base T Auto MDI MDIX 4 Port Support up to 921 6 Kbps SA 1 Full Signal 2 3 4 RxD TxD RTS CTS only USB 20 FS 2 Host 1 Device Port 2 0 FS 12Mbps ADC 4 Channel 10 Bit ADC TWI I2C Master Multi Master
44. AHA HEEE done Bytes transferred 1112284 10f8dc hex U Boot The next shows file system recovery procedure U Boot install fs eddy fs 2 1 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0 223 Filename eddy fs 2 1 x x bin Load address 0x20000000 Loading HAHAHHAHAHA HEEE REE HEEE ON e Bytes transferred 2035463 1f0f07 hex U Boot Once the recovery is done use boot command start booting U Boot boot Solving problems during recovery U Boot install os eddy os 21 1 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0 223 Filename eddy os 21 1 x x bin Load address 0x20000000 Loading When recovery is not proceeded with message shown above check WAN connection and confirm the IP address of tftp server PC is configured as 192 168 0 220 This server IP address is just example so it can be differ with user 66 Serial Communication Experts mh AS ystemBase Eddy real time Eddy DK Programmer Guide tftp server PC IP address U Boot install fs eddy fs 2 1 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0 223 Filename eddy fs 2 1 x x bin Load address 0x20000000 Loading TFTP error File not found 1 Starting again When recovery is not proceeded with message shown above check firmware version information or name is correct The red name above has to be same with firmware name of PC with tftp server install
45. AN_TX 36 LAN_TX 35 PC12 36 NC ASysiemBase CE Eddy DK Programmer Guide J3 J4 Pin Signal Name Pin Signal Name Pin Signal Name Pin Signal Name 1 PIDO 2 PID1 1 PB12 2 PB13 3 PID2 4 PID3 3 PB30 4 PB31 5 PID4 5 GND 5 PBO 5 PC22 7 PC14 8 PC17 7 PB1 8 PB16 9 PC18 10 PC8 RTS3 9 PB2 10 PB17 11 PC20 12 PC10 CTS3 11 PB3 12 PB18 13 PA22 14 PC15 IRQ1 13 BHDM 14 PB19 15 PB8 16 PB9 RXD2 15 BHDP 16 PB20 17 PB10 18 PB11 RXD3 17 A16 18 PB21 19 PCO 20 PC1 AD1 19 A17 20 A18 21 PC2 22 PC3 AD3 21 D8 22 D9 23 PB14 DRXD 24 PB15 DTXD 23 D10 24 D11 25 GND 26 GND 25 D12 26 D13 27 BMS 28 NRST 27 D14 28 D15 29 PB23 DCDO 30 PB5 RXDO 29 TWD 30 TCK 31 PB4 TXDO 32 PB24 DTRO 31 NANDOE 32 hire 33 PB22 DSRO 34 PB26 RTSO 33 NANDWE 34 ae and 35 PB27 CTSO 36 PB25 RI0 35 NC 36 NC J5 J Pin Signal Name Pin Signal Name 1 PBO 2 PB1 1 NC 3 PB2 2 NC 4 PB3 3 3 3V 5 3 3V 4 33V 6 3 3V 5 PC25 BT_Factory 7 BHDM USB Host Data 6 PB10 TXD3 8 BHDP USB Host Data 7 PB11 RXD3 9 PA31 TXD4 8 PC8 RTS3 10 PA30 RXD4 9 PC10 CTS3 11 NRST 10 PC24 BT MODE 12 GND 11 NRST 13 GND 12 GND 14 PA9 WPIDO 13 GND 15 PC6 WPID1 14 NC 16 PC7 WPID2 15 NC 17 NC 16 NC
46. ATH c WeygwinWbin cd Y tar zxyvf toolchain windows arm 4ll tgz C c Wecygwin pt lemonix cdt arm linux gnueabi pt lemonix cdt arm linux gnueabi bin pt lemonix cdt arm linux gnueabi bin ar exe pt lemonix cdt arm linux gnueabi bin as exe pt lemonix cdt arm linux gqnueabi bin c exe pt lemonix cdt arm linux gnueabi etc rpc pt lemonix cdt arm linux gnueabi inc lude pt lemonix cdt arm linux gnueabi inc lude a out h pt lemonix cdt arm linux gnueabi include aio h pt lemonix cdt arm linux gnueabi include aliases h pt lemonix cdt arm linux gnueabi inc lude alloca h Sense Eddy real time Eddy DK Programmer Guide 3 8 3 9 85 Installation of Eddy DK Source Install Eddy DK Source DK Source file filesystem 2xxxtargz can be found under SDK folder of Eddy DK sCD Copy the file to the root folder of C and unzip the file from Windows command line as below DK Source should be installed to c eddy DK 2x Note that the command is case sensitive en CUYWINDOWSWsystem32 cmd exe PATH c cygwin bin cd W tar zxvf filesystem_2 1 x x tar gz C ci ilesystem_2 x x tools ilesystem_2 x x tools genext2fs exe ilesystem_2 1 x x tools util linux 2 12r ilesystem_2 x x tools util linux 2 12r fdisk ilesystem_2 1 x x tools util linux 2 12r fdisk fdisksgilabel o ilesystem_2 x x tools util linux 2 12r fdisk common c ilesystem_2 1 x
47. D rating 6kV e Built in 1 8V regulator for core e Available in 32 pin bmm x 5mm MLFe package 66 Se Pin Signal Description 1 TXD Physical transmit or receive signal differential 2 TXD Physical transmit or receive signal differential 3 RXD Physical transmit or receive signal differential 6 RXD Physical transmit or receive signal differential LED Description miil LAN Connection Speed Speed En LED Definition Left Green State ni 10Base T H OFF eee 100Base TX L ON Zake LAN Connection Status 6 RXD Speed al LED Definition State Right Yellow No Link H OFF Link L ON Activity Toggle Blinking ASystemBase Ce Eddy real time Eddy DK Programmer Guide 2 73 J2 USB Host J2 is connected to USB HUB ControllerEddy S4M in Eddy S4M Bellow is its PIN spec USB Receptacle A type ee T KWH vc D EJ D0 KJ cND 274 RESET switch Pin Definition Description I O Polling Input signal continually from External Reset key implement as below with checking the constant PC16 nRESET time of Low IN Less than 5 seconds General reset function More than 5 second Factory Default function 215 J4 5 Expansion Header Provide most function of eddy S4M with pin connector You can confirm the function with direct conjunction to Eddy S4M DK J4 J5 Pin Signal Pin Signal P
48. D15 29 TWD 30 TCK 31 NANDOE 32 NAND_CLE A22 33 NANDWE 34 NAND_ALE A21 35 NC 36 NC ASystemBase B St Eddy Eddy DK Programmer Guide J4 Pin Description Expansion DK v2 1 Pin No Name i We Header Pin Description Pin No No 4 PB12 J141 J2 47 P ariprral A TXD5 USART5 Transmit Data Peripheral B ISI_D10 Image Sensor Data 10 Peripheral A RXD5 USART5 Receive Data 2 PB1 11_2 21 i Ju de Peripheral B ISI_D11 Image Sensor Data 11 Peripheral A PCKO Programmable Clock Output 0 3 PB30 J11_3 J2 31 Peripheral B j iene Image Sensor Horizontal Synchronization 4 PB31 Jil 4 J2 32 Peripheral A PCK1 Programmable Clock Output 1 Peripheral A 5 PBO J115 J22 en SPI1 Serial Peripheral Interface Master In Slave Out Peripheral B TIOA3 Timer Counter ch3 I O Line A Peripheral A D22 PC22 11 4 27 8 5 gie 4 Peripheral B TCLK5 Timer Counter ch5 External CLK IN Peripheral A 7 PB1 J11_7 J2 3 SPI1_MOSI Peripheral B TIOB3 Timer Counter ch3 I O Line B 3 PB16 J118 J2 17 PENNS A TKO SSC Transmit Clock Peripheral B TCLK3 Timer Counter ch3 External CLK IN Peripheral A 9 PB J119 J24 a T SPI 1 Serial Peripheral Interface Serial Clock Peripheral B ISI_D3 Image Sensor Data 3 Peripheral A TFO SSC Transmit Frame Sync 1 PB17 11_1 21 D ne J2_18 Peripheral B TCLK4 Timer Counter ch4 External CLK IN Peripheral A 11 PB3 J11_1
49. Eddy real time Eady DK Programmer Guide Ver 2 5 1 1 2011 11 09 Serial Communication Experts ASystem Base Since 1987 00 ISystemBase CF Revision History Revision Date Document Version Pages Description Feb 5 2009 2 1 0 1 All Initial release by shlee Sep 10 2009 2 1 0 2 All Added WiFi J2 pin33 PC12 gt PC13 Oct 14 2009 2 1 0 3 11 J2 pin35 PC13 gt PC12 J2 pin33 PC12 gt PC13 17 18 19 J2 pin35 PC13 gt PC12 Oct 22 2009 2 1 0 3 J2 pin33 J9 26 gt JI 33 18 19 J2 pin34 J9 25 gt JI 34 J2 pin33 J9 24 gt JI 35 Nov 23 2009 2 1 0 3 2 4 6 Added S4M Open Linux Version Jun 25 2010 2 1 1 1 All Added Eddy BT Sep 15 2010 2 5 1 1 2 9 Added Eddy CPU v2 5 Jan 20 2011 2 5 1 1 Added Eddy S4M v2 5 Feb 15 2011 2 5 1 1 Added Eddy CPU mp v2 5 Aug 09 201 1 2 5 1 1 Added Eddy CPU mp 32bit v2 5 Dec 09 2011 2511 Added Eddy Wifi v3 0 Serial Communication Experts ASystemBase 00 Ss Table of Contents Chapter 1 Introduction oo ccssssssssssscscsescecevevevevevsuseseseseseeecececevavavavavaususeaeeseceeesevevevavevensesesees 5 1 1 About this document enten aderen nnee 5 1 2 Who should read this document aaennannnnonenenanasannnnunarainnonenararananinnurararaninnnrururananannnrarararanrnrnrns 5 1 3 Document organization ceinisdnatazscavseasaesnscaeavice ncdustnnntsassaciaisassnessaixieaciastavclaniiidtnissausnsuaidavaniabereelsbencs 6 1 4 Eddy DK Related
50. None Notice X X X X X X X X bits I I l channel 1 temperature sensor channel 2 illumination sensor channel 3 future use channel 4 future use ADCGETVALUE Function Reads operation status of 4channels of ADC device Format void ioctl int fd ADCGETVALUE struct adc_struct channels Parameter fd Handle to ADC device dev adc mode Pointer to the buffer that will store channel operation status Returns None Notice Struct adc_value int ch1_value int ch2_value int ch3_value int ch4_value 120 60 Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 69 RTC Function Eddy CPU provides separate RTC Real Time Clock in DK Date and time can be configured through program or with Date and rdate provided by Busybox Sample program Eddy Appsfest rtc c uses RTC device so users can refer to this source for developing programs RTC _SET_TIME Function Configures date and time in RTC device Format void ioctl int fd RTC SET TIME struct tm tm Parameter fd Handle to RTC device dev rtc0 tm Pointer to struct that stores date and time to be configured Compatible with struct tm for Linux standard time interface Returns None Notice RTC_RD TIME Function Reads date and time from RTC device Format void ioctl int fd RTC RD TIME struct tm tm Parameter fd Handle to RTC device
51. O 60 PB3 J5 pin14 J7 pin14 Peripheral Chip Select 0 Peripheral B TIOA5 Timer Counter ch5 I O Line A 61 PB12 J5 pin17 J7 pin17 Peripheral A TXD5 USART5 Transmit Data 64 PB13 J5 pin18 J7 pin18 Peripheral A RXD5 USART5 Receive Data Peripheral A TKO SSC Transmit Clock 65 PB16 J5 pin119 J7 pin119 Peripheral B TCLK3 Timer Counter ch3 External CLK IN Peripheral A TFO SSC Transmit Frame Sync 66 PB17 J5 pin20 J7 pin20 Peripheral B TCLK4 Timer Counter ch4 External CLK IN Peripheral A TDO SSC Transmit Data 67 PB18 J5 pin21 J7 pin21 Peripheral B TIOB4 Timer Counter ch4 I O Line B Peripheral A RDO SSC Receive Data 68 PB19 J5 pin22 J7 pin22 Peripheral B TIOB5 Timer Counter ch5 I O Line B 71 PB20 J5 pin23 J7 pin23 Peripheral A RKO SSC Receive Clock 72 PB21 J5 pin24 J7 pin24 Peripheral A RFO SSC Receive Frame Sync 73 PB30 J5 pin25 J7 pin25 Peripheral A PCKO Programmable Clock Output 0 75 PCO J5 pin27 J7 pin27 Peripheral A ADO Analog to Digital Converter Input ChO 76 PB31 J5 pin26 J7 pin26 Peripheral A PCK1 Programmable Clock Output 1 52 ag Serial Communicstion Experts Sh ASystemBase EE Since 1987 Eddy Eddy DK Programmer Guide Peripheral A AD1 Analog to Digital Converter Input Ch1 78 PC1 J5 pin28 J7 pin28 Peripheral B PCKO Programmable Clock Output 0 Peripheral A AD2 Analog to Digital Converter Inpu
52. OM BMS 0 Boot on External Memory 28 NRST J8_28 J1_20 External device Reset signal active low signal Peripheral A DCDO USARTO Data Carrier Detection 29 PB2 2 4 28 3 Joea J4 Peripheral B ISI_D3 Image Sensor Data 3 30 PB5 J8_30 J2_6 Peripheral A RXDO USARTO Receive Data 31 PB4 J8_31 J2 5 Peripheral A TXDO USARTO Transmit Data 32 PB24 J8 32 J2 25 gen rel A DTRO USARTO Data Terminal Ready Peripheral B ISI_D4 Image Sensor Data 4 33 PB22 Je 33 J2 23 SCE A DSRO USARTO Data Set Ready Peripheral B ISI_D2 Image Sensor Data 2 Peripheral A RTSO USARTO Request To Send 4 PB2 4 2 27 i E A Peripheral B ISI_D6 Image Sensor Data 6 35 PB27 J8_35 J2_28 Peripheral A CTSO USARTO Clear To Send ASystemBase 5 St Eddy real time Eddy DK Programmer Guide Peripheral B ISI_D7 Image Sensor Data 7 36 PB25 J8 36 J2 26 Peripheral A RIO USARTO Ring Indicator Peripheral B ISI_D5 Image Sensor Data 5 23 Serial Communication Experts asi ASystemBase EE Eddy real time Eddy DK Programmer Guide 24 J4 Specifications J4 Pin Signal Name Pin Signal Name 1 PB12 2 PB13 3 PB30 4 PB31 5 PBO 5 PC22 7 PB1 8 PB16 9 PB2 10 PB17 11 PB3 12 PB18 13 BHDM 14 PB19 15 BHDP 16 PB20 17 A16 18 PB21 19 A17 20 A18 21 D8 22 D9 23 D10 24 D11 25 D12 26 D13 27 D14 28
53. RI change Bit3 DCD change Bit4 CTS _ O Low 1 High Bits DSR 0 Low 1 High Bit6 RI 0 Low 1 High Bit7 DCD O Low 1 High Notice SB _SetRts Function Controls RTS signal line of the serial port Format Void SB_SetRts int handle int value handle Handle to serial port Parameter Value 0 off Set RTS signal to low 1 on Set RTS signal to high Returns None Notice SB SetDtr Function Controls DTR signal line of the serial port Format Void SB SetDtr int handle int value handle Handle to serial port Parameter Value 0 off Set DTR signal to low 1 on Set DTR signal to high Returns None Notice 66 Se ASystemBase CY Eddy real time Eddy DK Programmer Guide 66 Ethernet functions These functions deal with the network related information of Eddy These functions are optimized socket API for Eddy and user can use other API for development by using his or her own POSIX compatible standard socket API SB_Getlp Function Reads IP address assigned to Eddy Format Unsigned int SB_Getlp char interface Parameter Interface Network interface name eth0 for WAN port eth1 for LAN port Returns Unsigned int returns IP address in unsigned int type Notice Note that the function returns operating IP address not the IP address 107 configured in Eddy When Eddy is operating as a DHCP Client this function read network IP address assigned from DHCP server Please see below for transformi
54. UART 2 Cleat to Send PA4 RTS2 UART 2 Request to Send O PB9 RXD2 UART 2 Receive Data PB8 TXD2 UART 2 Transmit Data O PB29 CTS1 UART 1 Cleat to Send PB28 RTS1 UART 1 Request to Send O Since 1987 33 ASystemBase ag Eddy Eddy DK Programmer Guide PB7 RXD1 UART 1 Receive Data PB6 TXD1 UART 1 Transmit Data O PB25 RIO UART 0 Ring Indicator PB23 DCDO UART 0 Data Carrier Detection PB22 DSR UART 0 Data Set Ready O PB24 DTRO UART 0 Data Terminal Ready l PB27 CTSO UART 0 Clear to Send PB26 RTSO UART 0 Request to Send O PB5 RXDO UART 0 Receive Data PB4 TXDO UART 0 Transmit Data O 41 2 DC Characteristics Symbol Parameter Conditions Min Typ Max Units PA0 PA31 PB0 PB31 PCO 16 PC3 9 pU Gowen a pege Pana Nans 2 mA PC4 PC31 in 1 8V range 4 Eddy DK v2 1 has 3 3V range so PC4 PC31 PIO is set to 2mA Refer to CPU Datasheet2 41 2 DC characteristics 2432 Power Ready LED System Ready RDY Indicates that the system is operating normally Normal LED blinks Power PWR Indicates that the 5 V power is being supplied Supplying power Red LED ON 2 4 3 3 Debug Port LED DTXD Debug Port Transmit Dta LED Shows transmission status of the Debug Port DRXD Debug Port Receive Data LED Shows reception status of the Debug Port 2434 COM Port 1 LED COM Port 1 Transmit LED Shows transmission
55. Under 5sec Normal reset function Over 5sec Factory Default function COM port 4 Receive differential data negative Input 29 P3_RX J4 pin23 J6 pin23 RS422 485 Noninverting receiver input in Eddy S4M module COM port 1 Receive Data signal 30 RxDO J4 pin4 J6 pin4 RS232 receiver input in Eddy S4M module COM port 4 Receive differential data negative Input 33 P3_RX J4 pin24 J6 pin24 RS422 485 inverting receiver input in Eddy S4M module COM port 1 Request To Send signal 34 RTSO J4 pind J6 pind RS232 driver output in Eddy S4M module COM port 4 Transmit differential data positive Output 35 P3_TX J4 pin21 J6 pin21 RS422 485 Noninverting driver ouput in Eddy S4M module COM port 1 Transmit Data signal 36 TxDO J4 pin3 J6 pin3 RS232 driver output in Eddy S4M module COM port 1 Request to Send signal 38 CTSO J4 pin6 J6 pin6 RS232 receiver input in Eddy S4M module COM port 4 Transmit differential data negative Output 39 P3_TX J4 pin22 J6 pin22 RS422 485 inverting driver ouput in Eddy S4M module Transmit Data signal of Debug Port 41 DTxD J4 pin1 J6 pin1 RS232 driver output in Eddy S4M module 50 2o ASystemBase Since 1987 Ss a Eddy real time Eddy DK Programmer Guide COM port 1 Data Set Ready signal 42 DSRO J4 pin8 J6 pin8 RS232 receiver input in Eddy S4M module Receive Data signal of Debug Port 43 DRxD J4 pin2 J6 pin2 RS232 receiver input in Eddy S4M module COM
56. _7 Test Mode Select 19 TDI J10_19 J7_5 Test Data In 20 TCK J10_20 J7_9 Test Clock 21 3 3V 3 0V to 3 6V power input 22 GND Ground 23 3 3V 3 0V to 3 6V power input 24 GND Ground 95 PB29 J10 25 J2 30 Peripheral A CTS1 USART1 Clear To Send F 7 Peripheral B ISIVSYNC Image Sensor Vertical Synchronization 26 PB28 J10 26 J2 29 enpera A RTS1 yeaa Reaves To Send Peripheral B ISI_PCK IN Image Sensor Pixel Clock Provided by the Image Sensor Peripheral A TXD1 USART1 Transmit Data at oe Joar Jar ein B TCLK1 Timer Counter ch1 External CLK IN 28 PB7 J10 28 J28 Peripheral A RXD11 USART1 Receive Data z 7 Peripheral B TCLK2 Timer Counter ch2 External CLK IN Address Bus 29 A20 J10 29 J1_31 Address Bus 30 A19 J10 30 J1 32 Address Bus Ethernet 10 100 Auto MDI MDIX ASystemBase B G St Eddy Eddy DK Programmer Guide LAN connection speed Speed Pin State LED Definition 31 LED Speed J10 31 10Base T H OFF 100Base TX L ON LAN connect Link Activity Pin State LED Definition 32 LED_Link J10_32 No Link H OFF Link L ON Activity Toggle Blinking 33 LAN_RX J10_33 CPU LIE Ethernet PHY WAN 8 Physical receive or transmit signal differential 34 LAN_RX J10_34 CPU LIE Ethernet PHY WAN 8 Physical receive or transmit signal differential 35 LAN_TX J10_35 Physical transmit of CPU Internal Ethernet PHY WAN or receive signal d
57. _LC Function Format Parameter Returns Notice Sets pullup value when Port is in input mode void ioctl int fd SETGPIOVAL_L int value 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores the pullup value Bit value 0 means Pulldown 1 means Pullup None Any value is ok for bits that are not set to be used GPIO GETGPIOPUL_LA GETGPIOPUL_LB GETGPIOPUL_LC Function Format Parameter Returns Notice 119 Reads Read Write status value for one of Port A B C void ioctl int fd GETGPIOVAL_L int mode 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the _ pullup value None a Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 68 ADC Function Eddy CPU provides 4 channels of ADC Analog Digital Converter Eddy DK board has temperature and illumination sensor for testing and the status of the sensors can be checked in real time with ADC Sample program Eddy_Apps test_adc c uses ADC interface so users can refer to this source for developing programs ADCSETCHANNEL Function Configures whether to use 4 channels of ADC device or not Format void ioctl int fd ADCSETCHANNEL int channel Parameter fd Handle to ADC device dev adc mode Pointer to the buffer that stores channel configuration Returns
58. akefile Compiling on Windows Enter make command through cmd command prompt on the folder where Makefile is located As shown below if a compile is successfully completed execution file named Hello World would be created Of course as this file was cross compiled it can not run on Windows environment Upload this file to Eddy using a FTP to execute the file on Eddy Files uploaded with FTPs will not permanently saved on Eddy This will be further explained on the next chapter Chpater 5 Creating Firmware C eddy_DK_2xx src Eddy_APPs make hello world opt lemonix cdt bin arm linux gec O2 g Wall Wno nonnull c o Hello_World o Hello_World c opt lemonix cdt bin arm linux gcc L opt lemonix cdt lib L opt lemonix cdt bin Hello_World o o Hello_World C eddy_DK_2xx src Eddy_APPs C eddy_DK_2xx src Eddy_APPs Is Hello world SB_APIs def c eddy kt c pinetd portview o tcp_client c tcp_client tcp_multiplex o Compiling on Linux To compile a source file on Linux environment enter make command on the folder where Makefile is located As shown below if a compile is successfully completed execution file named Hello_World would be created Of course as this file was cross compiled it can not run on Linux environment Upload this file to Eddy using a FTP to execute the file on Eddy Files uploaded with FTPs will not permanently saved on Eddy This will be further explained on the next chapter Chp
59. al Name NC NC 33V 33V PC25 BT_Factory PB10 TXD3 PB11 RXD3 CO NN D oy BR Pp PC8 RTS3 oO PC10 CTS3 zi oO PC24 BT_MODE i NRST i ine GND ci o GND KR NC a NG o gt NC 6 Serial Communication Experts wh AS ystemBase Eddy Eddy DK Programmer Guide Chapter 3 Development Environment 3 1 80 This chapter explains the process of application programming and other important notes SDK s folder structures are as follows Note All material related to Eddy including documentation reference sources and utilities are periodically updated to www embeddedmodule com without prior notice Please visit and download latest updates from the site Source code folder structure ramdisk Filesystem_2 1 x Open Source Busybox Dropbear snmp vsftpd Firmware Folder Boot Loader kernel filesystem image are stored Ramdisk Folder Filesystem images are created here root Linux Filesystem for Eddy is stored Tools Folder Tools used for creating image files is stored Src Folder Source codes of applicatons in Eddy are stored Please refer Chapter4 Compiling Application for the detail description of src folder Eddy APPs folder contains the source code of the basic application ASystemBase ay Eddy Eddy DK
60. alue is ok for bits that are not set to be used GPIO 66 Gm ASystemBase CY Eddy real time Eddy DK Programmer Guide GETGPIOVAL LM Function Format Parameter Returns Notice Reads Read Write status value for Port A B C void ioctl int fd GETGPIOVAL LM int mode 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the value value of Port A B C None SETGPIOPUL_LM Function Format Parameter Returns Notice Sets pullup value when Port A B C are all in input mode void ioctl int fd SETGPIOVAL_LM int value 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores the pullup value of Port A B C Bit value 0 means Pulldown 1 means Pullup None Any value is ok for bits that are not set to be used GPIO GETGPIOPUL_LM Function Format Parameter Returns Notice 117 Reads Read Write status value for Port A B C void ioctl int fd GETGPIOVAL_LM int mode 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the pullup value of Port A B C None 66 Gm ASystemBase CY Eddy Eddy DK Programmer Guide 118 SETGPIOMOD_LA SETGPIOMOD_LB SETGPIOMOD_LC Function Format Parameter Returns Notice Sets Read Write direction for one of Port A B C void ioctl int fd
61. amp Default Database amp Default Doc amp Default Editors amp Default Games amp Default lt 83 Select installation folder as c cygwin Select a folder which Cygwin Setup zip is unzipped If it is unzipped in C cygwin Setup folder select c cygwin setup folder Select the package to install Only select Devel as left picture Make sure the option changed to Install from Default ASystemBase Since 1987 Eddy real time Eddy DK Programmer Guide 3 6 3 7 84 Configuration of Windows Environment Variables Path should be added in order to refer required Eddy libraries in Windows environment Select Desktop gt My Computer gt Right click gt Properties gt select Advanced tab gt click Environment Variables Select Path from System Variable and add the following line on the very beginning C cygwin bin Installation of Toolchain Toolchain compiles source codes composed on Windows environment and make it executable on the target Eddy Eddy Toolchain installation file toolchain windows arm 411 tgz can be found under SDK Windows folder in Eddy DK s CD Copy the file to the root folder of C and unzip the file from Windows command line as below Toolchain should be installed to c cygwin opt lemonix cdt Note that the command is case sensitive en CUYWINDOWSWsystem32Wcmd exe P
62. and external connecter J3 is connected by buffer 33 NANDWE J11_33 NAND Flash Write Enable 34 A21 J11_34 J1_30 Address Bus 35 36 NC Not Connect ASystemBase 8 St Eddy real time Eddy DK Programmer Guide 24 Eddy DK v2 1 241 Modules Locations md ware pees Ely 2 02 _Syatem8ase Co Mode NOTE Ensure that the input power supply for Eddy Serial DK is from 9V to 48V with 500 mA or higher 242 Switch Description S5 ADC Select J13 Boot Mode Select Eddy DK2 u2 SyatemBase Co J14 Key Pad 1 S4 Digital In Select 180 0mm S6 NAND Flash Data Flash amp Chip Select S7 UART Select 8 Com3 Select S9 Com4 Select SW17 Power Switch 27 ASystemBase Since 1987 Eddy real time Eddy DK Programmer Guide 242 1 S1 S4 Digital In Select It is possible to select the Distal Input mode with this switch S1 S4 In order to use VCC Common Mode switch down and to use GNC Common Mode switch up refer to below feature This below schematic is just for reference So you should make you own schematic with the current and voltage that you want Common Input Setting Switch S1 S4 MODE Switch ag Eddy DK v2 1 Isolated Input Signal Source GND Common Common GND GND Eddy DK v2 1 EXTERNAL POWER Down A VCC Common Isolated Input Signal SINK Common VCC es Serial Communication Experts oA
63. anual deals with the complete process of writing source codes and making a firmware that can be uploaded and executed on Eddy module oTo Serial Communication Experts Sh AS ystemBase Eddy real time Eddy DK Programmer Guide 1 3 Document organization Chapter 1 Introduction is a preface with general information and introductory notices Chapter 2 Getting Started gives brief information needed before starting programming work Chapter 3 Writing Application explains about the process of writing a customized application and related work Chapter 4 Compiling Application deals with the process of compiling your application with Makefile Chapter 5 Creating Firmware helps you converting a compiled application into a firmware that can be accepted by Eddy module Chapter 6 Library explains about the library and API functions you can use while programming and application Chapter 7 Eddy Software shows how to implement simple TCP IP and serial routines using example source codes that are included in the development kit Chapter 8 Handling HTML amp CGI provides a guide for integrating your own applications with Eddy s web interface Chapter 9 Appendix provides programming notes and a list of default utilities oTo Serial Communication Experts Sh AS ystemBase Eddy Eddy DK Programmer Guide 1 4 Eddy DK Related Documents The following table summarizes documents included in the Eddy DK document set Document Name
64. aoesiesbueeasasntansosnaseanssanonstadene 107 6 7 GPIO Functions edere nde deden 113 05 ADE MN I tcc ce acu detec nascar esc det denna stee natien enten 120 Ao EED RDM ee een heeele er nee mee ee eee ee ee een ee 121 6 10 Debugging Function cccccssscsssssscsececscsscscscscsccececscsececacscsecanscscsacevacsescarscsceceususcencanscersesaracs 122 Chapter 7 Eddy Software ooo csssscsssssssscssscscescessesecscacscccesacsesecavacseestavacsesetavacseentavacesaraces 123 71 Software Structure Diagram nanne enen enen enennenn enen ennen eneen eenen enden 123 7 2 Main Applications anserina eneen eht edentate etende 124 73 eddy c Application nannake tiet ele E aa aa aaea Naasi 124 TA _Pinetd c Application a cccccsscococsccssuscseassdvevsextatsasanssaddensestmensnerctaecieecsevensretarcetsessedvavsnerciesesnedeaveve 124 7 5 Other Applications cccccssssccssssscsececscsscececececcecsuscsccecacsccsvacscscsacacsusesscacscscsecaususreacanseeseesanes 124 Chapter 8 Handling HTML amp CGI a eenenaeneneneenenenenennenenennnnenenennen 125 8 1 WEB Configuration oooo c cccceccscscssececcssscecescecscacecsesacecsesesacacsesavasecsesavasecsesavaceceusavasauccavacaceacavarers 125 82 Example of HTML Code secscsancysasnenassessxescuivecacaesdewsxdaidenacdhaddecdudsesacacsdsesndasvexenesatecauderssdecess 125 83 Bam CONGO entente A eae eee 127 Chapter 9 Appendix aaneen ennnenenennenenennenenenennenenenennenenenennearnennnnentennnen 129 9 1 System re
65. ater 5 Creating Firmware shlee localhost Eddy_APPs make hello_world opt lemonix cdt bin arm linux gcc O2 g Wall Wno nonnull c o hello_world o hello_world c opt lemonix cdt bin arm linux gcc L opt lemonix cdt lib L opt lemonix cdt bin hello_world o shlee localhost Eddy_APPs J Is Hello_World SB_APIs def c eddy kt c pinetd portview o server tcp_client tcp_multiplex o tcps upgrade a Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 47 48 49 93 Compiling with LemonlDE LemonlDE is an IDE Integrated Development Environment based on Eclipse platform and provides an intuitive GUI interface LemonlDE can be used in both Windows and Linux environments Source coding compile remote debugging and creating a firmware image can be all carried out with LemonlDE Refer to LemonlDE User Guide for detailed information Running Application on Eddy To run an application on Eddy there are several methods First method is to convert an application as a firmware and loads it into the flash memory area and execute However this method is not recommended for developing phase of application since it is time consuming task Second method is to load and execution file of an application to RAM type file system by using the FTP Server on Eddy DK and execute it from there This method is suitable for developing phase of application however the application loaded to Eddy wi
66. char Buffer int Data_Size Handle Handle number bound to UDP socket Buffer Buffer point where packet data to be sent is saved Data_Size Size of the buffer to send None This function can be called after confirming client s network information by sending data to UDP socket bound to Eddy from network that is user has to call SB_ReadUdp first When data transmission has to be made first user has to use SB_SendUdpClient function 66 Se ASystemBase CY Eddy real time Eddy DK Programmer Guide 112 SB_SendUdpClient Function Format Parameter Returns Notice Transmit data to UDP socket Client mode Int SB_SendUdpClient int Handle char Buffer int Data Size Char IP_ Address int Socket No Handle Handle number bound to UDP socket Buffer Buffer point where packet data to be sent is saved Data _Size Size of the buffer to send IP_Address IP address to send data to Socket_No Socket number to send data to None This function can be used when user already knows destination network information to send data to using UDP socket When data transmission has to be made first user has to use SB_SendUdpClient function el Ca SystemBase CP Eddy real time Eddy DK Programmer Guide 6 7 113 GPIO Functions GPIO functions control up to 56 GPIO ports provided by Eddy CPU 34 GPIO ports provided by Eddy S4M They can spot 3 3V power or control writes with in
67. cket error 0 No data was read N Length of the data read Notice When return code is 1 it means the connection is lost with the client so user has to close TCP socket handle SB_CloseTcp Function Close TCP socket handle Format Int SB_CloseTcp int Handle Parameter Handle TCP socket handle number to close Returns None Notice This function shuts down socket handle to finish communication and closes 66 Se ASystemBase CY Eddy real time Eddy DK Programmer Guide 111 SB_BindUdp Function Binds UDP socket Format Int SB_BindUdp int Socket_No Parameter Socket_No UDP socket number to bind Returns Handle Handle number bound to UDP socket 1 Bind failure N Handle number bound to UDP socket Notice SB_ReadUdp Function Reads data transmitted to UDP socket bound in network Format Int SB _ReadUdp int Handle char Buffer int Buffer Size Parameter Handle Handle number bound to UDP socket Buffer Buffer point where packet data to be read will be Buffer_Size saved Size of the buffer to save Returns 1 N Size of the data read 1 Socket error 0 No data was read N Length of the data read Notice When client sends data to bound UDP socket this function remembers client s IP address and socket number for SB_SendUdpServer to use SB_SendUdpServer Function Format Parameter Returns Notice Transmits data to UDP socket Server mode Int SB_SendUdpServer int Handle
68. clude Eddy stick counter of 1msec unit and printed in following form SB_LogMsgPrint s means Real Time n 191020202 Eddy means Real Tile Debugging of each application in Eddy can be configured as follows by using Def command Please see def c def po 1 2 all debug on off Eddy el Serial Communication Experts Ca ASystemBase u Tal E ddy time Eddy DK Programmer Guide Chapter 7 Eddy Software This chapter explains software structure ported to Eddy DK Source codes for all application except Com_redirect gdbserver tae SB_APIs library are disclosed All disclosed source codes may be used as development guide when programming a firmware 7 1 Software Structure Diagram Eddy c is the first program to be executed upon the booting Environment Configure Information configured either by web or def c is loaded next All provided Eddy applications developed by using libraries explained on Chapter 6 etc inittab vsftpd D busybox thttpd j arseen Pinetd c S A N ae Html files Teper Test amp Sample Top_server c applications Getagent c oo oe Tcp_multiplex c Test_dioc _ Setagent c a N Test_Icd c Tep_broadcast c Support Udpe Test keypad c applications A 4 Com_redirect c D Test_rtc c sae Sac a a Ddns_agnet c C Detectc Def c Test_ade c Ne C Up
69. covery via Bootloader o oo ccceccscssececcscscecescscscececsevscecsesavacecsesavaceceusavatsueecavaveceecavaters 129 9 2 System recovery via USB aaan enenenenennenenene ennen eenen annette 134 93 Product SPeensaldn nnaandarineereeretatekenndenaie ate as tebin dani abana aaa ade kende 143 9 4 Ordering Infomation aaan rnenervaarseneenveerneneenennenensenennenvanteusnenenn 150 00 Serial Communication Experts ASystemBase Eddy real time Eddy DK Programmer Guide Chapter 1 Introduction 1 1 1 2 This chapter explains about this manual and introduces the related documents and support About this document This manual explains about how a programmer can develop a customized application for Eddy module and how this application can be uploaded and executed on the module To help programmers with this work information on Eddy s operating system and API functions for convenient source writing is supplied After reading this document a programmer can write his or her own application and execute it on the module Who should read this document This document is designed for programmers who wish to develop a new application using Eddy DK It is strongly recommended that the programmer read this document before starting any programming work If you are an administrator or an end user who just needs to apply the module into practical applications you do not need to read this document User s Guide will be helpful in that case This m
70. d to connect most functions of S4M to externalS4M Input Power 5 VDC Dimensions 70 x 105 mm 6 eo ASysiemBase CE Eddy Eddy DK Programmer Guide Eddy WiFi v3 0 Specifcatons Classification Specification Standard 802 11b 802 119 802 11n 802 11b CCK DQPSK DBPSK Modulation 802 119 64 QAM 16 QAM QPSK BPSK 802 11n BPSK QPSK 16 QAM 64 QAM Frequency Band ISM band 2 4GHz 2 4884GHz Output Power 802 11b 16 dBm 11Mbps 802 119 14 dBm 54Mbps 802 11n 14 dBm 20MHz BW MCS7 13 dBm 40MHz BW MCS7 RX sensitivity 802 11b 84dBm 11MHz 802 119 73dbm 54MHz 802 11n 71dBm MCS 7_HT20 68dBm MCS 15_HT20 68dBm MCS 7_HT40 65dBm MCS 15_HT40 Security WPA WPA PSK WPA2 WPA2 PSK WEP 64bit amp 128bit IEEE 802 11x IEEE 802 11i Working distance 60 120m depending on surrounding Environment 802 11b 11 5 5 2 1 802 11 54 48 36 24 18 12 9 6 802 11n 20 MHz BW 130 1117 104 78 65 58 5 52 39 26 19 5 Data Rate 13 6 5 40 MHz BW 270 243 216 162 150 135 121 5 108 81 54 40 5 27 13 5 unit Mbps Antenna ANT 2 4Ghz 2DB 1 x U FL Dimension 28 2 X 45 4 X 9 6 mm Operating Temp 10 70 C Operating Voltages 3 3V 5 I O supply voltage Weight 10g Approvals KC RoHS Compliant Serial Communication Ex ASystemBase i ml Eddy Eddy DK Programmer Guide 9 3 7
71. d with values handed over from the CGI and linked symbols due to the coding cannot be done on a HTML using variables like on the C language Shown in red below are symbol link which transfers value from getagent c network html 2A Q2 lt tr bgcolor FFFFFF td class content IP Address Ad td class content input type text size 16 maxlength 16 name N IP value v n_ip lt tr bgcolor FFFFFF td class content Subnet Mask lt td lt td class content input type text size 16 maxlength 16 name N_MASK value v n_mask gt lt tr bgcolor FFFFFF td class content Gateway lt td td class content lt input type text size 16 maxlength 16 name N GW value v n_gw lt tr bgcolor FFFFFF td class content DNS lt td a wa ASystemBase CY Eddy Eddy DK Programmer Guide real time td class content input type text size 16 maxlength 16 name N_DNS value v n_dns lt tr bgcolor FFFFFF td class content Telnet Service fid td class content select name N_TELNET lt option v n_telnet_di value 0 Disable lt option option v n_telnet_en value 1 Enable option select lt tr bgcolor FFFFFF td class content Telnet Service td td class content select name N WEB option v n_web_di value 0 Disable lt option lt option v n_web_en value 1 Enable option select As shown ab
72. ddy APPs folder Among the programs in Eddy APPs folder source for device server application is not provided So refer to source code for various purposes provided as sample 89 File Name Description Source Availability ENT Program which runs first when boots up Eddy It also operates o Eddy as configuration Eddy s most significant program which runs and monitors pinetd c subordinate programs EEN o o In case of building new application if it is registered in this file the registered application is running when booted om tediecte Program which enables to recognize Eddy s serial port as its x a i Com port on Windows PC in network Program which connects to server and exchanges data between tcp_client c X serial port and socket Program which waits for socket connection and exchanges data tcp_server c X between serial port and socket detect c Program that interworks with Portview s detector X Agent of NMS program for Windows Portview provided by Portview c X SystemBase As a multi TCP server function it supports client connection up top broagoasi e to 5 and broadcasts serial data to the whole client i i p__miultiplex c As a multi TCP server function it supports client connection up X to 5 and transmits serial data to each client udp c UDP server and client program which exchanges data between x UDP socket and serial port WiFI Operating Source wifi c Th
73. ddy fs 2 x x x bin Makefile options are as follows Make release copy module in release to ramdisk area Make cfg create firmware image of Eddy enviromental files in ramdisk flash Make _ install create a firmware image of Eddy s Filesystem If changes to Makefile are complete use make install command to create firmware image Firmware will be created in FIRMWARE DIR folder defined in Makefile On Windows use cmd command prompt to carry out procedures explained on Linux shlee localhost ramdisk make release shlee localhost ramdisk make install 66 Ga ASystemBase CU Eddy real time Eddy DK Programmer Guide IWXI XI X lWXI XI X IWXI XI X IWXI XI X shlee localhost ramdisk Is _ firmware wanna nnn 88 eddy bl 2 _x_x x bin ennen eddy bs 2 x x x bin wana nana nnn anna eddy os 2 x x x bin mennen eddy fs 2_x x x bin As shown in the picture above a new firmware file _ eddy s 2xxxbin has been created Now you have to upload the firmware image to Eddy via Web or FTP save it to Eddy s flash memory and reset Eddy Then Eddy will run as the loaded firmware settings 5 2 Firmware Upgrade Upload created firmware file to Eddy and save on the Flash Memory Eddy provides four ways of upgrading method FTP Upload a firmware image using FTP program and execute the upgrade command to save it to the
74. dev rtcO tm Pointer to struct that will store date and time read Compatible with struct tm for Linux standard time interface Returns None Notice 121 9 ASystemBase CY Eddy real time Eddy DK Programmer Guide 6 10 Debugging Function 122 Eddy can debug operating condition of each application via Telnet in real time The following functions are used to print debug log message to Telnet window when SB_DEBUG of each application is set ON SB_LogDataPrint Function Format Parameter Returns Notice Print each byte of data in hex or ascii code void SB_LogDataPrint char RTx char buff int data_len RTX Description message of data Buff Buffer address of data to be printed is saved Data_len Size of data None Prints messages to telnet which logged in first The message include Eddy stick counter of 1msec unit and printed in following form SB_LogDataPrint Send t12345 n 8 191020202 Send 8 08 1 2 3 4 5 0d 0a Tick Counter RTx data Len buff Debugging of each application in Eddy can be configured as follows by using Def command Please see def c def po 1 2 all debug on off SB_LogMsgPrint Function Format Parameter Returns Notice Prints in the same format as Printf void SB_LogMsgPrint const char Format Format Format of Printf None Prints messages to telnet which logged in first The message in
75. dividual GPIO port Pins provided by Eddy CPU S4M are public pins that can be used to control other devices and are not used solely for GPIO Eddy CPU S4M provides 32 signal lines as 3 port groups Port A B C Each port in Port A B C can be configured to be used as device or GPIO They can be configured in Web Please refer to sample source _testdkc Eddy CPU GPIO Table The Yellow parts can all be used as GPIO ports if they are not used as devices in Eddy_Apps folder for precise usage Section Description Number of Ports S0 S3 Serial Port 1 4 20 Debug Debug Port 2 Reset Reset 1 Rdy Ready LED 1 ADC Analog Digital Converter 4 LAN LAN Port 2 EEPROM SPI EEPROM 4 NAND NAND Flash 2 KEY Key Pad 8 7 GPIO amp User Peripheral 12 Asy Serial Communication Experts stemBase i mh IN Eddy real time Eddy DK Programmer Guide Eddy S4M GPIO Table Section Description Number of GPIO ADC Analog Digital Converter 2 GPIO amp User Peripheral 32 Each port in Port A B C can be shown as 32 GPIO ports So GPIO ports are shown as each bit in 4 byte int variable in program struct eddy gpio Unsigned int value 3 Unsigned int mode 3 Unsigned int pullup 3 Unsigned int enable 3 Read write value for each GPIO channel in Port A B C Configure read write for each GPIO channel in Port A B C Pullup Pu
76. dy Eddy DK Programmer Guide 26 22 Serial Port LED Operation description Pin Name Signal Name Descriotion Belet TxD Debug Port Tx LED RxD Debug Port Rx LED COM Port 1 TxD COM Port1 Tx LED RS232 RxD COM Port1 Rx LED COM Port 2 TxD COM Port2 Tx LED RS232 RxD COM Port2 Rx LED TxD If RS422 is COM Port3 Tx LED COM Port 3 If RS485 is Tx Rx Common LED RS422 RS485 RxD If RS422 is COM Port3 Rx LED If RS485 is LED Off Not Used TxD If RS422 is COM Port4 Tx LED COM Port 4 If RS485 is Tx Rx Common LED RS422 RS485 RxD If RS422 is COM Port4 Rx LED If RS485 is LED Off Not Used 2 6 2 3 GPIO LED Eddy S4M Provide max 34ea GPIO port No Pin Name Descriotion 1 0 1 PC25 GPIO Only I O 2 PC24 GPIO Only 1 0 3 PC20 GPIO or SPI1_NPCS3 I O 4 PC19 GPIO or SPI1_NPCS2 I O 5 PC18 GPIO or SPI1_NPCS1 I O 6 PC17 GPIO Only 1 0 7 PC15 GPIO Only 1 0 8 PC14 GPIO Only 1 0 9 PC13 GPIO Only 1 0 10 PC12 GPIO Only O 11 PC10 GPIO Only l o 12 PC9 GPIO Only 1 0 13 PC5 GPIO or SPI1_NPCS1 I O 14 PC3 GPIO or AD3 or SPI1_NPCS3 I O 15 PC2 GPIO or AD2 or PCKO I O 16 PC1 GPIO or AD1 or PCKO I O 17 PCO GPIO or ADO I O 18 PB31 GPIO or PCK1 I O 19 PB30 GPIO or PCKO I O 20 PB21 GPIO or RFO I O 21 PB20 GPIO or RKO I O 62 06 Serial Communication Experts Sh AS ystemBase Eddy Eddy DK Programmer Guide
77. e Eddy Eddy DK Programmer Guide 102 Format Parameter Returns Notice void SB_ReadConfig char FileName char Dest int Size FileName File name that includes the path of the file to be read Dest Pointer to the buffer in which the configuration file will be stored Size The size of the file to be read Error Code Returns 1 if succeeded 1 if failed Configuration file in Eddy is stored in etc flash Configuration changes made through web or telent is stored here and all Eddy applications operates with respect to configuration files here SB_WriteConfig Function Format Parameter Returns Notice Saves Eddy s operating environment configuration information into file void SB_WriteConfig char FileName char Source int Size FileName File name that includes path of the file to be written Source Pointer to the struct buffer in which the configuration information is saved Size Size of the struct to be written Error Code Return 1 if succeeded 1 if failed SB_GetSharedMemory Function Format Parameter Returns Notice Reads pointer to registered shared memory void SB_GetSharedMemory int Key_ID int Buffer_Size Key_ID ID of registered shared menory Buffer_Size Size of shared memory used buffer address Memory address of shared memory Returns 1 upon failure Portview is Windows application developed by SystemBase which can remotely m
78. e environment variables FHA AHHH EEE AE A E A A A ARAARA ER RAHA HAARR ERRER HEHRHHHH array set df_mapping bootstrapFileName _ eddy bs 2 1 XX bin kernelFileName eddy os 2 1 XX bin filesystemFileName eddy fs 2 1 XX bin Ond AS ystemBase Eddy real time Eddy DK Programmer Guide Eddy CPU v2 5 Eddy CPU mp v2 5 or Eddy S4M v2 5 Copy Eddy CPU v25 USB Recoveryzip file to SDK Windows USB recovery folder in Eddy DK CD Double click Sam ba 2 10exe file and begin the installation process of USB Tool program then click Next On the splash screen click Agree Click Next Browse to the following folder then click Next C ProgramFiles ATMELCorporation SAM BA v2 10 137 SAM BA v2 10 Setup Welcome to the SAM BA v2 10 Setup Wizard This wizard will guide you through the installation of SAM BA v2 10 It is recommended that you close all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your computer Click Next to continue Ce Cee SAM BA v2 10 Setup License Agreement Please review the license terms before installing SAM BA v2 10 Press Page Down to see the rest of the agreement SOFTWARE LICENSE AGREEMENT Important Read carefully This is a legally binding agreement between Atmel Corporation including its subsidiaries and affiliates Atmel and You You In return for acquiring
79. ed U Boot install os eddy os 21 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0 223 Filename eddy os 21 x x bin Load address 0x20000000 Loading TTTTTTTTTTTTTTITITITTITITTITITITITITITITITI TTT TT When recovery is not proceeded with message shown above it means there is product with same MAC address or IP in the network Check whether there are other Eddy products in the same network le 133 eme ASystemBase e Eddy real time Eddy DK Programmer Guide 92 9 2 1 System recovery via USB Even if the flash in the user area has been damaged it does not affect system booting But if the system continuously reboots due to user program failure or if the system is inaccessible as a result of wrong IP setting you have to change the system to factory default status You can reload firmware via USB to change the system to default status Note USB System recovery may be affected by the characteristics of your PC s USB port System recovery preparation via USB Please refer to the follows because the installation procedures of Eddy CPU v2 1 and Eddy CPU v2 5 differ Eddy S4M v2 1 is compatible with Eddy CPU v2 1 and Eddy S4M v2 5 is compatible with Eddy CPU v2 5 Eddy CPU mp v2 5 is compatible with Eddy CPU v2 5 Eddy CPU v2 1 or Eddy S4M v2 1 134 Copy Eddy CPU_v21_USB_Recoveryzip file to any folder eg C SystemBase USB_recovery from SDK Windows USB_recovery folder in Eddy DK CD Double
80. ed 6 LAN_LINK 69 DRXD 70 DTXD 7 FPG 8 RDY 71 PB16 72 PB17 9 3 3V 10 GND 73 PB18 74 PB19 11 DO 12 D1 75 PB20 76 PB21 13 D2 14 D3 77 PB22 78 PB23 15 D4 16 D5 79 PB24 80 PB25 17 D6 18 D7 81 PB26 82 PB27 19 D8 20 D9 83 PB28 84 PB29 21 D10 22 D11 85 PB30 86 PB31 23 D12 24 D13 87 3 3V 88 GND 25 D14 26 D15 89 PCO 90 PC1 27 NRD 28 NWE 91 PC2 92 PC3 29 3 3V 30 GND 93 PC5 94 PC8 31 AO 32 Al 95 PC9 96 PC10 33 A2 34 A3 97 PC12 98 PC13 35 A4 36 A5 99 PC14 100 PC15 37 A6 38 A7 101 nRESET 102 PC17 39 A8 40 A9 103 PC18 104 PC19 41 A10 42 A11 105 PC20 106 1 Eddy ne Eddy DK Programmer Guide 43 Al2 44 Ai3 107 PC22 108 PC23 45 Al4 46 A15 109 3 3V 110 GND 47 3 3V 48 GND 111 GND 112 PC26 49 PA4 50 PA22 118 TWCK 114 TWO 51 PAS 52 PA30 115 DOP 116 DDM 53 PAS 54 NRST 117 HDPA 118 HOPB 55 PBO 56 PB1 119 HOMA 120 HDMB 57 PB2 58 PB3 121 NAND_OE 122 A21 59 PB4 60 PB5 123 NAND_WE 124 A22 61 PB6 62 PB7 J2 Pin Signal Name 1 PBO 2 PB1 3 PB2 4 PB3 5 3 3V 6 3 3V 7 BHDM USB Host Data 8 BHDP USB Host Data 9 PA31 TXD4 10 PA30 RXD4 11 INRST 12 GND 13 GND 14 PA9 WPIDO 15 PC6 WPID1 16 PC7 WPID2 17 INC 18 INC 79 J1 Pin Sign
81. ent The list of applications can be manually run using telnet Def upgrade loopback The list of applications to test Eddy DK v2 1 board and a device test_sio test_dio test Icd test keypad test_spi_eeprom test_nand test_sd test_adc test_gpio_pin test_gpio_led Sample source to build socket serial port application program is the following Test_serial test_serial_to_lan 1 test_serial_lan 2 test_tcp_server test_tcp_client test_udp_server test_udp_clinet test_read_config test_bluetooth oTo Serial Communication Experts Sh AS ystemBase Eddy real time Eddy DK Programmer Guide Chapter 8 Handling HTML amp CGI 8 1 8 2 125 This chapter describes the CGI module for the environment configuration used by HTML files and HTML codes Provided CGI source and HTML documents are used as Eddy s default firmware and it is modifiable as needed WEB Configuration HTML sources for Eddy are located on src Eddy_APPs web htdocs CGI sources containing information for HTML is located on src Eddy APPs web cgi getagent c It reads environment configuration file of etc folder and transfers configuration value to the HTML page to show the information on the web browser setagent c It reads configuration value modified by a user on the HTML page and saves the value to a temporary environment configuration file on etc Example of HTML Code The following example shows a part of main html source Coding is execute
82. er You can use printenv command to check the current configuration of Eddy and TFTP server s IP address configured in bootloader Eddy real time Eddy DK Programmer Guide 131 U Boot printenv ethaddr 00 05 F4 11 22 33 Config_Size 10000 stdin serial stdout serial stderr serial OS_Size 20000000 filesize 1 fOf07 fileaddr 20000000 netmask 255 255 255 0 ipaddr 192 168 0 223 IP Address of Eddy serverip 192 168 0 220 lt IP Address of TFTP server FileSystem_Size 0 U Boot To change Eddy s temporary IP address and TFTP server s IP address proceed as follows U Boot setenv serverip TFTP server IP address U Boot setenv ipaddr Eddy IP address U Boot Once the IP information is confirmed start recovery install bootloader name of bootloader firmware When recovering bootloader area Note If the bootloader was damaged it could not be recovered install os name of OS firmware When recovering OS area install fs name of File System firmware When recovering File System area 66 Gm ASystemBase CU Eddy Eddy DK Programmer Guide 9 1 3 132 Proceed as follows and it will recover by downloading image file from TFTP server configured The next shows OS recovery procedure U Boot install os eddy os 2 1 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0223 Filename eddy os 2 1 x x bin Load address 0x20000000 Loading HAHAHHAH
83. ersal Serial Bus S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 103 DDM J4 pin25 J6 pin25 USB Device Port Data 104 DDP J4 pin26 J6 pin26 USB Device Port Data USB Port2 Data Connected to DSPORT2 of GL850A 105 DM2 J4 pin27 J6 pin27 USB 2 0 Hub Controller USB Port2 Data Connected to DSPORT2 of GL850A 106 DP2 J4 pin27 J6 pin27 USB 2 0 Hub Controller USB Port3 Data Connected to DSPORT2 of GL850A 107 DM3 J4 pin29 J6 pin29 USB 2 0 Hub Controller USB Port3 Data Connected to DSPORT2 of GL850A 108 DP3 J4 pin30 J6 pin30 USB 2 0 Hub Controller USB Port4 Data Connected to DSPORT2 of GL850A 109 DM4 J4 pin33 J6 pin33 USB 2 0 Hub Controller USB Port4 Data Connected to DSPORT2 of GL850A 110 DP4 J4 pin34 J6 pin34 USB 2 0 Hub Controller 25 2 7 Multimedia Card Interface S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 111 SDDATAO J4 pin35 J6 pin35 SD Data0 112 SDDATA1 J4 pin36 J6 pin36 SD Data1 113 SDDATA2 J4 pin37 J6 pin37 SD Data2 115 SDCMD J4 pin38 J6 pin38 SD command 116 SDDATA3 J4 pin39 J6 pin39 SD Data3 117 SDCDN J4 pin40 J6 pin40 SD card detect 118 SDCLK J4 pin41 J6 pin41 SD Clock 120 SDWP J4 pin42 J6 pin42 SD Write Protect Boot Mode Select signal 122 BMS BMS 1 Boot on Embedded ROM BMS 0 Boot on External Memory 54 oxo Serial Communication Expert
84. es N_GW buff 16 cgiFormNotFound sprintf buff d_ d_ d_ d cfg system gateway 0 cfg system gateway 1 cfg system gateway 2 cfg system gateway 3 listPutf list n_gw buff else listPutf list n_gw buff if cgiFormStringNoNewlines N_DNS buff 16 cgiFormNotFound sprintf buff Yod_ d_ d_ d cfg system dns 0 cfg system dns 1 cfg system_dns 2 cfg system dns 3 listPutf list n_dns buff else listPutf list n_dns buff Serial Communication Experts oo ASystemBase EE Eddy real time Eddy DK Programmer Guide 128 cgiForminteger N_ TELNET amp value cfg system telnet_server if value 1 listPutf list n_telnet_di listPutf list n_telnet_en selected else listPutf list n_telnet_di selected listPutf list n_telnet_en cgiForminteger N_WEB amp value cfg system web server if value 1 listPutf list n_web_di listPutf list n_web_en selected else listPutf list n_web_di selected listPutf list n_web_en The following shows processing part of setagent c to save user modified configuration value Source abstract value cgiFormStringNoNewlines N_IP buff 16 if value2 cgiFormEmpty convert_address buff cfg system ip value cgiFormStringNoNewlines N_MASK buff 16 if value2 cgiFormEmpty convert address buff cfg system mask
85. for connection Return value of SB_ListenTcp wait_msec Connection standby time in msec 1 N New handle number of connected TCP socket 1 Socket error 0 Waiting for connection N New handle number of connected TCP socket When new handle number is given after connection is made previous handle that has been waiting will be closed inside this function oro Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 110 SB_AcceptTcpMulti Function Grants network multiple connection of TCP socket handle waiting for connection Format Int SB_AcceptTcpMulti int Socket_No int wait_msec Parameter Socket_No TCP socket handle number waiting for connection Return value of SB_ListenTcp wait_msec Connection standby time in msec Returns 1 N New handle number of connected TCP socket 1 Socket error 0 Waiting for connection N New handle number of connected TCP socket Notice When new handle number is given after connection is made it will not close previous handle waiting for connection granting maximum of 1024 socket connection SB_ReadTcp Function Read data from connected TCP socket Format Int SB_ReadTcp int Handle char Buffer int Buffer_Size Parameter Handle Handle number of connected TCP socket Buffer Buffer point where packet data to be read will be saved Buffer_Size Size of the buffer to save Returns 1 N Size of the data read 1 So
86. g path for OUT address to the internal address registers NANDOE NANDOE data out control OUT NANDWE NANDWE controls writes to the I O port OUT PC14 NCS3 NANDCS device selection control OUT READY BUSY OUTPUT The R B output indicates the status of the device operation When low it indicates that a program RDYBSY erase or random read operation is in process and R B returns to high state upon completion It is an open drain output and does not float to high z condition when the chip is deselected or when outputs are disabled DATA INPUTS OUTPUTS The I O pins are used to input command DATA address and data and to output data during read bits operations The I O pins float to high z when the chip is deselected or when the outputs are disabled PC17 D 0 7 I O gt 44 A ASystemBase C ince a Eddy Eddy DK Programmer Guide 2458 Ethernet Controller WAN Port Davicom DM9000B Ethernet Controller 16 bit mode set EECS pin should be connected with pull up resistor to use link speed LED RJ45 Transformer Center Tap is powered by DM9000B AVDD18 Eddy CPU v2 1 N2 5 Paine Description vo Signal Name Signal Name PC12 NCS7 CSN Chip Select 7 ae Address 0x8000 0000 Ox8FFF FFFF Interrupt depend on EECK pin20 setting 1 INT pin low active PC15 IRQ1 INTRN 0 INT pin high active IN EECK is not connected in DK board so Interrupt is acted
87. ge Temp 60 150 Humidity 5 95 Non Condensing CE Class A Agorovals FCC Class A C Ne Re RoHS RoHS RoHS Compliant compliant 6 ao ASysiemBase CE Eddy Eddy DK Programmer Guide Eddy DK v2 1 Specificatons Classification Specification NAND Flash 256MB 8bit I F SD Card Push Type Up to 16 GB Connector MMC SD Card MC supported USB Connector 1 x Device 2 x HOST Dual Port LCD Module 128 x 64 Dots Matrix Structure KEY 4 x 4 Matrix Battery Holder 3V Lithium Battery 235 mAh LED Power Ready 20 Programmable IO Console amp Serial TxD RxD 12C Interface 16bit 12C BUS GPIO SPI Interface 2 Kbit EEPROM MCI Interface SD Card MMC Socket ADC Interface Temp Light Sensor Digital I O 8 Port Input 8 Port Output Serial or GPIO Select Switch RS422 485 Select DIO Common VCC or GND Select Programming Jumper Switch Boot Mode Select JTAG Select 2 x RS232 DB9 Male Serial Port 2 x RS422 485 Terminal Block RS422 amp RS485 Selected by S W Console Port DB9 Male LAN Port 2 x RJ45 ICE Port Used for Flash Programming Reset Button Factory Default amp Warm Boot Input Power 9 48VDC Dimensions 240 x 180 mm 66 Serial Communication Experts AS ystemBase Eddy Eddy DK Programmer Guide 933 145 Eddy S4M v2 1 v2 5 Specifcatons Classification Specifica
88. ggle method it can not be used for HW flow control of RS232 To use Eddy BT right please refer to test_bluetooth c the sample source code Eddy BT A S 82 2 855 0501 MAC 00 05 F4 00 AC 82 SN EA225E0002 SystemBase Co Lt Mad in KOREA ee di 45 20 1 00 ss T N2 o r g Wa LLL N a i 8 62 Ci EE R13 i RI mlm R12 SL Ok RE pgee MT R5 roe mjn 74 ASystemBase ag Eddy Eddy DK Programmer Guide 75 NA D D NA NA D NA NA O NA NA 4 vcc vec B FACTORY DEFAULT VCC e TxD NA D D RXD NA RTS NA CTS NA 0 ad NA NRESET 0 a NA GND gt 03 NA GND 3 KE NA NA ad GND NA a5 KE GND NA 8 GND GE NA IB LEFT Description RIGHT Description 1 NA 1 NA 2 NA 2 NA 3 NA 3 NA 4 VCC 3 3V 4 NA 5 Factory Reset 5 VCC 3 3V 6 UART TXD 6 VCC 3 3V 7 UART RXD 7 NA 8 UART RTS 8 NA 9 UART CTS 9 NA 10 Pairing Signal 10 NA 11 H W Reset 11 H W Reset 12 NA 12 Ground 13 NA 13 Ground 14 Ground 14 NA 15 Ground 15 NA 16 Ground 16 NA 17 NA 18 NA Asy Serial Communication Experts ince el Sh ag Eddy real time Eddy DK Programmer Guide 2 10 Eddy CPU mp v2 5 76 Eddy CPU mp V2 5
89. grade c ra Upgradetftp c 7 Sd Portview c Test mmc c C Test_mmc c 5 Va Test nand c Test gpio_pin c act al eanan Test_spi_eeprom c 123 mn ge ASystemBase CT Eddy time Eddy DK Programmer Guide 12 73 14 75 124 Main Applications This section explains the most important aspects of Eddy eddy c and pinetd c Applications other than these two can be divided into monitoring applications executed by pinetd c and user applications manually executed by users Please refer 41 Source Code for brief explanation of functions of each application eddy c Application Program runs the first after Eddy is booted it reads the environment configuration saved under flash folder This initializes network with configuration information and runs various daemon program If environment file is not present on flash it will reset the environment configuration to factory setting Pinetd c Application It is a daemon program with the highest hierarchy of Eddy run by Eddy c which monitors lower processor It periodically monitors the Reset Switch to detect a factory reset request Other Applications The list of applications runs according to the defined protocol of each serial port tcp_server tcp_client com_redirect tcp_broadcast tcp_multiplex udp udp_server client The list of applications runs to handle external network service independently to serial ports portview detect ddns_ag
90. ibrary folder in Eddy X web Html code of web and CGI source folder running in Eddy O ASystemBase Eddy Eddy DK Programmer Guide 42 43 91 Writing Application Program This chapter shows how to write an application program for Eddy First create a hello_world c file under the scr Eddy_APPs directody include lt stdio h int main While 1 printf hello world n sleep 1 Writing Makefile To compile an application program compile information of the application program has to be registered on the Eddyy_APPs Makefile folder The below is description of Makefile under folder of src Eddy_APPs The picture blow shows the environment setting area for an application program compile Add a name under the TARGET highlighted as red and register to the compile environment TARGET eddy pinetd def ddns_agent upgrade portview upgradetftp detect tcp server tcp client tcp_multiplex tcp broadcast udp rt_test hello_world udp udp o rm f CC CFLAGS LDFLAGS IFLAGS o 0 LIBS STRIP Hello_World Hello_World o Rm f CC CFLAGS LDFLAGS IFLAGS o 0 STRIP a Serial Communication Experts mh AS ystemBase Eddy Eddy DK Programmer Guide 44 45 46 92 Application Program Compile Compile the application program to execute on Eddy after registering the compile environment to the M
91. id thttpd pid utmp chmod 777 hello_world hello_world Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy thttpd log 4 10 Execute a file on Booting of Eddy 94 If auto running is not necessary you can skip this section After switching to Executable Mode execute the file by entering hello world To terminate a program press Ct and C key simultaneously login pw If the application is successfully executed on Eddy make a firmware image and load to Flash memory of Eddy to execute on booting Register the application to pinetd c on the folder of Eddy APPS ex Task Launch sbin hello argument Integer argument Application name with path Task_Launch sbin hello_world 0 signal SIGCHLD sig_chld If printed c is modified a user must re compile it by executing make pinetd as above example of section 4 4 a Serial Communication Experts AS ystemBase Eddy real time Eddy DK Programmer Guide Chapter 5 Creating Firmware 5 1 95 On the previous chapter we explained how to make and compile application program with sample program This chapter introduces methods to create a firmware which permanently saves the application into the Eddy module and apply it to hardware of Eddy How to Create a Firmware Firmware image can be created on filesystem_2 x x x ramdisk folder Modify Makefile on fi
92. ifferential 36 LAN_TX J10_36 Physical transmit of CPU Internal Ethernet PHY WAN or receive signal differential ASystemBase B St Eddy real time Eddy DK Programmer Guide J2 Specifications Connect USB cable to J1 while the jumper is connected to J2 so that applications can be compiled linked created and uploaded to the Eddy CPU module Please refer to Programmer Guide for more information J2 Pin Signal Name Pin Signal Name 1 A15 2 A14 3 A13 4 A12 5 A11 5 A10 7 A9 8 A8 9 A7 10 A6 11 A5 12 A4 13 A3 14 A2 15 A1 16 AO 17 PC9 18 NWE 19 FPG 20 NRD 21 GND 22 3 3V 23 GND 24 3 3V 25 D7 26 D6 27 D5 28 D4 29 D3 30 D2 31 D1 32 DO 33 PC13 34 JTAGSEL 35 PC12 36 NC 17 i 9 ASystemBase CT Eddy Eddy DK Programmer Guide J2 Pin Description DK v2 1 Expansion Descripti Pin No Name Pin No Header Pin No escription J9_1 External Address Bus 0 15 0 at reset 1 1 A 15 J3_4 J3_20 i 15 0 J9_16 T DK is directly connected with CPU and external connecter J3 is connected by buffer External device Chip Select 5 Peripheral A N i 17 PC9 Jo 17 J4 14 eripheral A NGG 256MB memory area addressable active low Peripheral B TIOBO Timer Counter ch0 I O Line B 18 NEW J9_18 J1 21 External device Write Enable signal active low For Flash Programming 19 FPG J9 1
93. in Signal Pin Signal 1 DTxD 2 DRxD 1 LAN_RX 2 LAN_TX 3 TxDO 4 RxDO 3 LAN_RX 4 LAN_TX 5 RTSO 6 CTSO 5 LAN_Speed 6 LAN_LINK 7 DTRO 8 DSRO 7 PA5 8 PA22 9 DCDO 10 RIO 9 PA30 10 NC 11 TxD1 12 RxD1 11 PBO 12 PB1 13 RTS1 14 CTS1 13 PB2 14 PB3 70 ASystemBase ay Eddy Eddy DK Programmer Guide 17 P3 TX 18 P3 TX 17 PB12 18 PB13 19 P3_RX 20 P3_RX 19 PB16 20 PB17 21 P4 TX 22 P4 TX 21 PB18 22 PB19 23 P4_RX 24 P4_RX 23 PB20 24 PB21 25 DDM 26 DDP 25 PB30 26 PB31 27 DM2 28 DP2 27 PCO 28 PC1 29 DM3 30 DP3 29 PC2 30 PC3 31 GND 32 GND 31 GND 32 GND 33 DM4 34 DP4 33 PC5 34 PC9 35 SDDATAO 36 SDDATA1 35 PC10 36 PC12 37 SDDATA2 38 SDDATA3 37 PC13 38 PC14 39 SDCMD 40 SDCLK 39 PC15 40 PC17 41 SDCDN 42 SDWP 41 PC18 42 PC19 43 TWCK 44 TWD 43 PC20 44 PC24 45 RDY 46 nRESET IN 45 PC25 46 NRST OUT 71 ASysiemBase CE Eddy real time Eddy DK Programmer Guide 2 8 Eddy WiFi v3 0 Eddy WiFi v2 1 is not compatible please check previous manual Linking to Eddy CPU and Eddy S4M Eddy WiFi module enables to use various types of serial device Security equipment telecommunications device modem data output devices industrial instruments etc through wireless LAN Eddy WiFi module supports IEEE 802 11b g n For application development please refer to WiFi c the source code for Eddy WiFi module Edd
94. is sample source reads Config file of Flash and runs WiFi as O the registered setting Bluetooth Application Sample Source test_bluetooth c Sample source of Eddy BT module connected to Eddy CPU O Eddy S4M test read config c Flash Configuration Read Write sample source O Serial port application sample source test_serial c This sample source opens port number appointed to Argment O and retransmits the received data to the other socket serial to lan communication application sample source This sample source reads Config file information of Flash and test_serial_to_lan 1 c h ane O waits for TCP socket connection After connection it exchanges data between serial and socket port serial to lan communication application sample source ieee Sonata dene This sample source reads Config file information of Flash and o z tries TCP connection to the registered server After connection it exchanges data between serial and socket port ASystemBase ay Eddy Eddy DK Programmer Guide 90 TCP socket communication application sample source EE This sample source waits for TCP connection to socket number o r i appointed to argment and retransmits the received data to the other socket TCP socket communication application sample source This sample source tries connection to IP address and socket test_tcp_client c l ae O number of the server appointed
95. ity Pin State LED Definition 12 LAN_Link J5 pind J7 pind No Link H OFF Link L ON Activity Toggle Blinking 49 i erst Communication Experts Se ASystem Base EE ince Eddy Eddy DK Programmer Guide 2523 Serial RS232 amp COMBO and PIOA Peripheral I O Controller A S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 COM port 3 Receive differential data negative Input 13 P2_RX J4 pin20 J6 pin20 RS422 485 inverting receiver input of Eddy S4M module 14 RDY J4 pin45 J6 pin45 Indicate state of CPU normal blinking COM port 3 Receive differential data positive Input 17 P2_RX J4 pin19 J6 pin19 RS422 485 Noninverting receiver input of Eddy S4M module COM port 1 Data Carrier Detection signal 20 DCDO J4 ping J6 ping RS232 receiver input of Eddy S4M module COM port 3 Transmit differential data positive Output 21 P2_TX J4 pin17 J6 pin17 RS422 485 Noninverting driver ouput of Eddy S4M module COM port 1 Data Terminal Ready signal 22 DTRO J4 pin7 J6 pin7 RS232 driver output of Eddy S4M module COM port 3 Transmit differential data negative Output 25 P2_TX J4 pin18 J6 pin18 RS422 485 inverting driver ouput of Eddy S4M module Reset Input In S W continuously check the interval of LOW when polling input signal from external Reset Key 26 nRESET J4 pin46 J6 pin46
96. lesystem_2 x x x ramdisk folder to create a firmware image Version info required Ramdisk amount and desired application to copy can be set up on the Makefile NOTE Provided DK Sources are Linux based Some commands are not executable on Windows environment To prevent this problem a suffix exe has to be added for some utilities after file name as shown below _ tool genext2fs gt tool genext2fs exe _ tool mkimage gt _ tool mkimage exe IMAGE ramdisk FW_NAME eddy fs 2 x x x bin gt Name and Version Info of Firmware Image FIRMWARE_DIR __ firmware gt Folder to store created firmware install echo Making ramdisk image TOOL b 8192 d root D device_table txt ramdisk _ tool genext2fs U b 5110 d root D device table txt ramdisk tool genext2fs U b 7158 d root D device_table txt ramdisk tool mkcramfs q D device_table txt root ramdisk tool genext2fs exe U b 10240 N 1024 d root D device table txt ramdisk gt Make size of Ramdisk to 10 240 K and register the device of Eddy dev as indicated on Devide_ table txt gzip vf9 ramdisk est f ramdisk gz tool mkimage exe A arm O linux T ramdisk C gzip a 0 e 0 n FW_NAME d ramdisk gz FW_NAME test f FW_NAME mv FW_NAME FIRMWARE_DIR release gt Register the desired application to the folder for copying to Eddy cp f src Eddy_APPs hello_world root sbin cp f _ src Eddy_APPs eddy root sbin
97. ll be deleted when the power is disconnected The LemonlDE integrated developing environment provides advanced solution LemonlDE debugging tool supports the direct transmission of compiled applications to Eddy By using this tool the user can execute and check the result instantly on site If you wish to use LemonlDE please refer to LemonlDE User Guide Uploading and Executing on Eddy Connect to Eddy by using FTP ID and password for FTP server are same as the one using with telnet connection The example below shows how to upload an example file hello world to tmp folder of Eddy on Linux using FTP When uploading a file bin command must be entered first for binary mode For uploading enter put lt file name on the command line shlee localhost Eddy_APPs ftp 192 168 0 223 Name 192 168 0 223 shlee eddy 331 Please specify the password Password 230 Login successful ftp cd tmp ftp bin ftp put hello_world 8914 bytes sent in 0 00027 seconds 3 3e 04 Kbytes s ftp bye shlee localhost Eddy APPs On Windows environment use FTP program of Windows on the Command Prompt When the transmission is completed a user can check the file using Telnet terminal connected Eddy The file is executable using chmod command however the mode has to be switched to executable i Serial Communication Experts SS AS ystemBase Eddy Eddy DK Programmer Guide Is hello_world login
98. lldown when configuring write for each GPIO channel in Port A B C Whether to use GPIO for each GPIO channel in Port A B C enable 0 gt disable Do not use as GPIO 1 gt Enable use as GPIO mode 0 gt Set as input mode 1 gt Set as output mode value 0 gt Read Write status is set to Low 1 gt Read Write status is set to High pullup 0 gt pulldown 1 pullup 114 ar Serial Communication Experts mh AS ystemBase Eddy real time Eddy DK Programmer Guide 115 SETGPIOINIT Function Initializes ports that will be used as GPIO after boot Format void ioctl int fd SETGPIOINIT struct gpio_struct Parameter fd Handle to GPIO device dev eddy_gpio gpio_struct Pointer to the struct which stores GPIO table value in letc eddy gpio cfg with GPIO configuration file registered in Web configuration struct gpio_struct unsigned int value 3 unsigned int mode 3 unsigned int pullup 3 unsigned int enable 3 Returns None Notice Eddy CPU provides maximum GPIO ports of 56 Eddy S4M provides maximum GPIO ports of 34 That is when using only WAN and when devices such as serial ports ADC Rese RDY LED are used number of available GPIO ports decreases This command initializes available GPIO ports leaving the devices that are registered in configuration in Pinetd c after boot so users don t have use this command When used users need to be careful For instance if a serial po
99. lled down It means that UARTs in CPU are connected to Serial Port If switches are pulled up GPIO Ports are enabled and LEDs are controlled by GPIO Ports And if Switch 30 No 6 is pulled up GPIO ports are connected with the Expansion Headers Serial Port amp LED Switch Switch Down Position OFF UP Position ON Bank No Serial Port Test GPIO TEST High LED On UART 0 TEST GPIO PB4 PB5 PB26 PB27 ports are 1 UART 0 2 TXD RXD RTS CTS connected with the GPIO LED of DK signals are connected with UART 0 board and disconnected with the RS232 driver IC UART 0 RS232 driver IC UART 0 TEST GPIO PB24 PB22 PB23 PB25 ports 2 UART 0 2 DTR DSR DCD RI signals are connected with the GPIO LED of DK are connected with UART 0 RS232 board and disconnected with the driver IC UART 0 RS232 driver IC UART 1 TEST GPIO PB6 PB7 PB28 PB29 ports are 3 UART 1 2 TXD RXD RTS CTS connected with the GPIO LED of DK signals are connected with UART 1 board and disconnected with the RS232 driver IC UART 1 RS232 driver IC S7 UART 2 TEST GPIO PB8 PB9 PA4 PAS ports are 4 UART 2 O TXD RXD RTS CTS connected with the GPIO LED of DK signals are connected with UART 2 board and disconnected with the RS422 485 driver IC UART 2 RS422 485 driver IC UART 3 TEST GPIO PB10 PB11 PC8 PC10 ports 5 UART 3 2 TXD RXD RTS CTS are connected with the GPIO LED of DK signals are connected with UART 3 board and disconnected with the RS4
100. mbedded CPU Module 32MB SDRAM Embedded CPU Module 64MB SDRAM Eddy CPU mp v2 5 JIG Board 06 Serial Communication Experts Sh AS ystemBase
101. mer Guide 2 4 5 4 RTC DS1340 Dallas 12C interface 12 5pF load capacitance crystal must be used Refer to Crystal Spec below Do not use another RTC Chip Backup Battery CR2032 235mAh Lithium Battery DS1340 Crystal Specifications Parameter Symbol MIN TYP MAX Units Normal Frequency fo 32 768 KHz Series Resistance ESR 45 60 K2 Load Capacitance CL 12 5 pF 2455 Temp Sensor ADO PCO oI National LM50 Vs 4 5V to 10V LMS50 Output Vout 10mV C Temp x 500mV Vout 1 750V at 125 Vout 750mV at 25 T Vout 100mV at 40 2 4 5 6 Light Sensor BH1600FVC Rohm 100000 10000 1000 100 10 IOUT uA 0 01 1 100 Illuminance Ix 10 000 1 000 000 The Output voltage is caculated as below Viout 0 6 x10 6 x Ev x R1 Where Viout IOUT output voltage V Ev lilluminance of the ALS Ambient Light Sensor surface Ix R1 IOUT output resistor 2 43 ASystemBase ag Eddy Eddy DK Programmer Guide 2 4 5 7 NAND Flash 256MB 8bit Flash Samsung K9F2GO8U0A PCBO0 Chip Select 3 used Address range 0x4000_0000 0x4FFF_FFFF Eddy CPU v2 1 N25 Function Discription l o Signal Name COMMAND LATCH ENABLE A22 CLE The CLE input controls the activating path for OUT commands sent to the command register ADDRESS LATCH ENABLE A21 ALE The ALE input controls the activatin
102. mpile environment utilities manuals i Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 23 Eddy CPU v2 1 v2 5 U2 SDRAM U3 Data Flash U1 Power Regulator 30 4 znim Sor 4 Zoari amp a a s o wo Z vm IJS EEZ 2 8 ge zje so mo x 0 lt oz 9N N Da A oO sre gt w U6 AT91SAM9260 CPU U7 Phy Transceiver J1 Bottom Board Connector J5 Up Board Connector J4 Bottom Board Connector n fon ba ais E zons Te dine Borch J3 Bottom Board Connector J6 Up Board Connector J2 Bottom Board Connector ASystemBase E Since 1987 10 Eddy Eddy DK Programmer Guide Eddy CPU v2 1 v2 5 Pin Assignment J1 J2 Pin Signal Name Pin Signal Name Pin Signal Name Pin Signal Name 1 PA5 2 PA4 1 A15 2 A14 3 PC5 4 PC19 3 A13 4 A12 5 PC21 5 PC23 5 A11 5 A10 7 HDMA 8 NC 7 AQ 8 A8 9 HDPA 10 DDM 9 A7 10 A6 11 PC26 12 DDP 11 A5 12 A4 13 PC4 RDY 14 PC16 13 A3 14 A2 15 ICE NTRST 16 RTCK 15 Al 16 AO 17 TDO 18 TMS 17 PC9 18 NWE 19 TDI 20 TCK 19 FPG 20 NRD 21 3 3V 22 GND 21 GND 22 3 3V 23 3 3V 24 GND 23 GND 24 3 3V 25 PB29 CTS1 26 PB28 RTS1 25 D7 26 D6 27 PB6 TXD1 28 PB7 RXD1 27 D5 28 D4 29 A20 30 A19 29 D3 30 D2 31 LAN Speed 32 LAN ILink 31 D1 32 DO 33 LAN_RX 34 LAN_RX 33 PC13 34 JTAGSEL 35 L
103. n TXD en 100BaseT link it light RXD Left Green Upon MEE set Unk W giis RXD Upon 10BaseT link it off Default Lights When th ta i t Right Yellow efault Lights When the data is sent or received it blinks 2 4 4 2 COM Port 1 amp COM Port 2 37 RS232 RS232 1 HH DCD DSR 6 lt t 4 RXD RTS 7 lt Oi TXD CTS 8 lt i DTR RI 9 EH GND YY DB9 Male COM Port 1 2 53 Pin Signal Description 1 DCD Data Carrier Detection Input COM Port 1 only 2 RXD Receive Data Input 3 TXD Transmit Data Output 4 DTR Data Terminal Ready Output COM Port 1 only 5 GND Ground 6 DSR Data Set Ready input COM Port 1 only 7 RTS Request to Send Output 8 CTS Clear to Send Input 9 RI Ring Indicator Input 5 Q ASystemBase Cr N Eddy real time Eddy DK Programmer Guide 2 4 4 3 COM Port 3 amp COM Port 4 RS422 Full Duplex Pin Signal Description 1 TXD Transmit differential data positive Output 2 TXD Transmit differential data negative Output 3 GND Ground 4 RXD Receive differential data positive Input 5 RXD Receive differential data negative input RS485 Half Duplex Pin Signal Description 1 TRX Transmit Receive differential data positive 2 TRX Transmit Receive differential data negative 2444 Debug Port You can check debug message or status information with debug po
104. n Folder Space required 27 0MB Space available 179 0GB Since 1987 Eddy real time Eddy DK Programmer Guide Click Install Click Next If you want to create Shortcuts check Desktop or Quick Launch Bar then click Next Check Reboot now then click Finish After system reboot folder C Program Files ATMEL Corporation AT91 ISP v1 12 SAM BA v2 8 lib AT91SAM9260 EK After installing the AT91 ISP_ exe file prepare to install the Eddy DK v2 1 board driver copy the isp extram at91sam9260 bin file from CD to the following AT9I ISP v1 12 Setup Choose Start Menu Folder Choose a Start Menu folder for the AT91 ISP v1 12 shortcuts Select the Start Menu folder in which you would like to create the program s shortcuts You can also enter a name to create a new folder AcroSoft Google 32 Google Talk Microsoft Office PineTerm Spyware Doctor ATSI ISP v1 12 Setup Installation Complete Setup was completed successfully Completed CCT COC Show details AT91 ISP v1 12 Setup Create shortcuts SAM B amp Shortcuts Q Bar SAM PROG Shortcuts Desktop Quick Launch Bar ATSI ISP v1 12 Setup s elf Completing the AT91 ISP v1 12 Setup Wizard It is strongly recommended you reboot the computer to complete the installation O1 want to manually reboot later Prepare firmware files and flash writing utility p
105. nd edele ankerden aten enen aenema held 92 46 Compiling on Linux oes eecececcecececcccscececsccscscecsessvscsusesacscecsasacscsasavassceesaateceesavacacsesavateceacavaceneravas 92 47 Compiling with LemonlDE aaa nnenennenennvnernenerntnerneseantnneneneentanenvssenns 93 48 Running Application on Eddy eneen ennnnnenenneneneneenenenen enteren edn 93 49 Uploading and Executing on Eddy ooo cecccccsssssescscscessscscsceccsecscecsesavacecsesavacecsesavacecasavacecercenas 93 410 Execute a file on Booting Of Eddy enne rennenenenerneenerenesnenenenn 94 Chapter 5 Creating Firmware nnnnanenenneneeneneeneneeneneeneneeneneenenteneneenentenenteneneen 95 5 1 How to Create a Firmware ooo cc cccccseccccecescessecescecescaceecacsesacsesecsasaesavscsacsucasscsacsccaceesaceesaceucaceeaces 95 5 2 Firmware Upgrade eu naanunnvserneneenvnernereenvaneneneentnnenusnentntentsnveusnceunn 97 Chapter 6 Library Introduction nnee nneneeneneenenenneneeneneeneneeneneeneneeneneen 100 6 1 MITE UCI LE 100 62 Makefile aam e CPC ON TT eR eee a SOS TO nO 100 6 3 System FUNCTIONS oo secccsececescccecececcccscscecsesacacecsasacecsusevacecsesavasecsesavacscsesaaceceusavateueecavaterestavarers 100 6 4 Eddy Environment Function eeen eneneenennenennenennenenneneenen erneer ennen enen 101 6 5 Serial fUNCtIONS annae ted ose ser deendikanean ethaan ccd den adade todas ek ne beent tenten 104 6 6 Ethernet functions nnen c5ccexacsdesoecdaccecduseaiaedaceacedzaateuanecasaainadeelaatecs
106. net to check eddy fs 2 x x x bin file is in the mp folder Use upgrade eddy fs 2 x x x bin command to update the firmware pwd tmp ls eddy fs 2 x x x bin eddy fs 2_x x x bin upgrade eddy fs 2 x x x bin FileSystem Erase 2388341 Bytes FileSystem Write eddy fs 2 x x_x bin 2388341 Bytes 2388341 2388341 bytes Flash Write OK Flash Verify OK In order for the updated firmware to take effect you need to reboot the module After rebooting you can see the sample program running using Telnet program as shown below Eddy login eddy Password cd sbin Is hello_world ifconfig nameif switch_root com_redirect ifdown pinetd sysctl ps ef PID USER COMMAND 1 root init 2 root posix_cpu_timer 3 root softirg high 0 sbin hello_world 1 Execution result of application program only output to the console port of Eddy The console is a debug port of Eddy DK board and only execution result of application program is generated The result can be seen on a computer screen using a serial emulator program such as hyper terminal on Windows by connecting the debug port to PC and setting communication speed to 115K None 8 1 a Serial Communication Experts mh AS ystemBase Eddy al t ime Eddy DK Programmer Guide 99 Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Asy Serial Communication Ex
107. ng IP address into string type struct in_addr addr addr s_addr SB_Getlp printf IP Address s inet_ntoa addr oro Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide SB _GetMask Function Reads subnet mask address assigned to Eddy Format Unsigned int SB_GetMack char interface Parameter Interface Interface name to be read eth0 for WAN port eth1 for LAN port Returns Unsigned int Returns mask address in unsigned int type Notice Please see SB_Getlp also SB_GetGateway Function Format Parameter Returns Notice Reads gate address assigned to Eddy Unsigned int SB_SetGeteway void None Unsinged int Returns gate address in unsigned int type Please see SB_Getlp also SB_ConnectTcp Function Format Parameter Returns Notice Make connection to the server specified as TCP socket Int SB_ConnectTcp char IP_Address int Socket_No int Wait Sec int Tx Size int Rx Size IP_Address IP address to connect in string type Socket_No Socket number of the server to connect Wait_Sec Wait time for connection in seconds Tx_Size Tx buffer size of the socket in K bytes Rx_Size Rx buffer size of the socket in K bytes 1 N Handle number of the connected socket 1 Connection failure N Handle number to the connected socket If the connection is not made the function t will try to re connect fo
108. o IEEE 802 3u Standard e Supports MDI MDI X auto crossover Auto MDI e MII interface support e RMI interface support with external 50MHz system clock ESD rating 6kV e Built in 1 8V regulator for core e Available in 32 pin bmm x 5mm MLFe package 56 ws ASystemBase oe Eddy real time Eddy DK Programmer Guide 2 5 6 RTC We used D1340 which is connected 12C interface In DS1340 you must use crystal of load capacitance 12 5pF Refer to bellow Crystal spec You have to confirm Crystal spec because some RTC Chips have different spec We used CR2032 235mAh Lithium with Backup Battery DS1340 Crystal Specifications Parameter Symbol MIN TYP MAX Units Normal Frequency fo 32 768 KHz Series Resistance ESR 45 60 K2 Load Capacitance CL 12 5 pF 2 5 7 Temp Sensor we used LM50 National to ADO PCO Vs 4 5V to 10V LMS0 Output Vout 10mV C Temp x 500mV Vout 1 750V at 125 Vout 750mV at 25 T Vout 100mV at 40 ae Serial Communication Experts 4 ASystemBase a Eddy real time Eddy DK Programmer Guide 2 6 Eddy S4M DK v2 1 Eddy S4M DK is Development Kit supporting programmer can easily materialize and test their application 2 6 1 Switch and Connector explanation piz ees snin VELA 3 4 Term S1 Power Reset Switch i Pow 58 ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 2 6 1 1 S2 GPIO Input Configu
109. one Notice Delays in exact msec unit SB _AliveTime Function Returns time measured after Eddy has been booted in day hour minute and second Format void SB_AliveTime int day int hour int min int sec Parameter day Days Eddy has been operationg 0 hour Hour 0 23 min Minute 0 59 sec Second 0 59 Returns None Notice 6 4 Eddy Environment Function 101 Environment functions related with Eddy File System which gives information such as Eddy s version environment configuration version etc SB_GetVersion Function Format Parameter Returns Notice Reads version of O S file system and bootloader ported to Eddy in string type void SB_GetVersion int type char version type Specifies the version function reads B Eddy s bootloader version K Eddy s O S version FP Eddy s file system version Version Pointer where version information string will be stored None Version information will be read like 10a BootLoader and O S will be provided by SystemBase therefore these cannot be changed In case file system is programmed by the user the version can be set by the user When the parameter type other than B K Fare called the function will return 0 00 as version information SB_ReadConfig Function Reads Eddy s operating environment configuration file a Serial Communication Experts SS AS ystemBas
110. onitor Eddy s operating condition In contrast SNMP server which provides basically same function as Portview is industry s standard monitoring protocol S W developed by 3Com Cysco etc and sold in hundreds of thousands of U S dollars To be compatible with both of the applications each application in Eddy uses shared memory to store information and send the information to Portview and SNMP Note that PortView and SNMP Agent has to be set in the environment configuration SB_SetSharedMemory 66 Ga ASystemBase CU Eddy real time Eddy DK Programmer Guide 103 Function Format Parameter Returns Notice Requests shared memory to be used and reads memory pointer void SB_SetSharedMemory int Key_ID int Buffer_Size Key_ID ID of shared memory to be registered Buffer_Size Size of shared memory to be used buffer address Memory address of shared memory Returns 1 upon failure In Eddy this function is used for PortView and SNMP agent User can use this function to access shared memory for other purpose el amer Serial Communics ation Experts gt gt nas ASystemBase Ce Eddy real time Eddy DK Programmer Guide 65 Serial functions 104 These functions are used to handle internal serial port and UART SB_OpenSerial Function Opens serial port Format int SB_OpenSerial int Port_No Parameter Port_No Serial port number 0 First serial p
111. ort 1 Second serial port Only available for Eddy CPU Eddy Dk Returns 1 N Opened serial port handle 1 Open error N Opened serial port handle Notice Eddy provides maximum two serial ports however for normal model where Eddy CPU is mounted Eddy only provides one serial port DK board has two on board serial ports User can use both of the serial ports if the user sets DIP switch on DK board to make it recognized as Eddy CPU or Eddy DK SB_InitSerial Function Initialize data communication configuration of serial port Format Void SB_InitSerial int Handle char Speed char LCR char Flow Parameter Handle Serial port handle acquired from OpenSerial Speed Baud rate 0 150 BPS 1 300 BPS 2 600 BPS 3 1200 BPS 4 2400 BPS 5 4800 BPS 6 9600 BPS 7 19200 BPS 8 38400 BPS 9 57600 BPS 10 115200 BPS 11 230400 BPS 12 460800 BPS 13 921600 BPS el Car ASystemBase CU Eddy real time Eddy DK Programmer Guide Returns Notice LCR XXPPSDD 8 bit binary P P Parity Bits 00 None 01 Odd 10 1 1 Even S Stop Bits 0 1 bits 1 2 bits D D Data Bits 00 5 bits 01 6 bits 10 7 bits 11 8 bits FlowControl Types of flow control 0 no flow control 1 RTS CTS flow control 2 Xon Xoff flow contorl None SB_SendSerial Function Format Parameter Returns Notice Send data to the serial port Void SB_SendSerial int handle char data int length handle Handle to serial port or socket
112. ove there are name and value parts for each record to link with CGI Name stores information modified by user in HTML so that it can save modified value when a user click on the submit button on the lower part of HTML page Value reads value to getagent c to display on HTML page and let user to modify the value as needed le 126 ASystemBase C gt Eddy real time Eddy DK Programmer Guide 8 3 127 Example CGI Code Eddy Serial DK has two CGI programs getagent cgi and setagent cgi getagent c reads an environment configuration file on etc folder to HTML document and setagent c saves user modified information on the HTML document back the environment file on etc folder and saves it to flash so the user modified environment configuration is stored The following example shows processing part of getagent c to display configuration value to HTML page as the example above Source Summary if cgiFormStringNoNewlines N_IP buff 16 cgiFormNotFound sprintf buff d_ d_ d_ d cfg system ip 0 cfg system ip 1 cfg system ip 2 cfg system ip 3 listPuttf list n_ip buff else listPutf list n_ip buff if cgiFormStringNoNewlines N_MASK buff 16 cgiFormNotFound sprintf buff d_ d_ d_ d cfg system mask 0 cfg system mask 1 cfg system mask 2 cfg system mask 3 listPutf list n_mask buff else listPutf list n_mask buff if cgiFormStringNoNewlin
113. p exe file Cygwin Setup Cygwin Net Release Setup Program This wizard will guide you through the installation and updating of the Cygwin environment and a plethora of GNU packages C Setup exe version 2 457 2 2 Copyright 2000 2001 Red Hat Inc http sources redhat com cygwin 7 Select Install from Local Folder and click Next Cygwin Setup Choose Installation Type DER Choose whether to install or download from the intemet or install from files in a local directory Choose A Download Source C C Install from Intemet downloaded files will be kept for future re use C Download Without Installing 82 ASystemBase Since 1987 Eddy real time Eddy DK Programmer Guide DAR Select Root Install Directory e Select the directory where you want to install Cygwin Also choose a few Cc installation parameters Cygwin Setup Choose Installation Directory Root Directory EI o a Cygwin Setup Select Local Package Directory MER Select Local Package Directory Select a directory where you want Setup to store the installation files it gt downloads The directory will be created if it does not already exist r Local Package Directory ZA SDK Windows ttcygwin Browse Cygwin Setup Select Packages Select Packages Select packages to install Category All amp Default Admin amp Default Archive 4 Default Base
114. perts stemB base Eddy Eddy DK Programmer Guide Chapter 6 Library Introduction 6 1 6 2 6 3 100 This chapter introduces useful libraries and API functions that are applicable with Eddy Serial DK Introduction All the functions introduced in this chapter are all APIs included in SB _APls a of src Eddy_APPs SB_APIs folder You also need to mention this library in the Makefile All sample source codes accompanied with Eddy DK use this library and you can see the source codes and Makefile for more information Makefile Library is in src Eddy_APPs SB_APIs folder as a form of SB_API a You need to specify in the Makefile in order to use this library so please refer to the Makefile inside src Eddy_APPs folder System functions Timer and delay functions needed for making application program SB_GetTick Function Returns time measured after Eddy has been booted in msec Format Unsigned long SB_GetTick Void Parameter None Returns 0 4 294 967 295 Notice Returned value is system tick counter in msec unit After it reaches the maximum value Oxffffffff of unsigned long type it starts from zero again which is about period of 50 days SB_msleep Function Delays in msec unit Format void SB_msleep int msec Parameter msec Configure delay time in msec unit a Serial Communication Experts AS ystemBase Eddy real time Eddy DK Programmer Guide Returns n
115. r time specified in wait_sec and return Tx Rx_Size are size of the socket buffer size These can be set from 1 to 64 If it is set to number smaller than 1 size will 4kbytes as default number larger than 64 will set size of the buffer to 64kbytes as default oro Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide SB _ListenTcp Function Format Parameter Returns Notice Wait for connection to TCP socket Int SB_ListenTcp int Socket No Int Tx Size int Rx Size Socket No TCP socket number to wait for connection Tx_Bytes Tx buffer size of the socket in K bytes Rx_Bytes Rx buffer size of the socket in K bytes 1 N Handle number of the TCP socket waiting for connection 1 Socket connection waiting failure N Handle number of the TCP socket waiting for connection As a non blocking function this function requests connection and returns without waiting for connection SB_AcceptTcp will handle waiting for connection Tx Rx_Size are size of the socket buffer size These can be set from 1 to 64 If it is set to number smaller than 1 size will 4kbytes as default number larger than 64 will set size of the buffer to 64kbytes as default SB_AcceptTcp Function Format Parameter Returns Notice Waits for network connection of TCP socket handle Int SB_AcceptTcp int Socket No int wait_msec Socket_No TCP socket handle number to wait
116. ration After configure PBO PB4 to input you can confirm whether the input value is changing with dip switch control Switch No Down Position OFF UP Position ON 1 PBO Value Low High 2 PBO input value Low High 3 PBO input value Low High 4 PBO input value Low High 2612 S3 4 Terminal Resistor selection ON et LE COM Port 3 and COM Port 4 is Combo port which support RS422 RS485 interface Terminal resistors in each port are configured by switch upon each Terminal Block Switch No Down Position OFF UP Position ON 1 RS422 Termination Resistor not connected RS422 Termination Resistor Connected 2 RS485 Termination Resistor not connected RS422 Termination Resistor Connected 1 RS422 Termination Resistor not connected RS422 Termination Resistor Connected 2 RS485 Termination Resistor not connected RS422 Termination Resistor Connected 2 6 1 3 J6 J7 JIG Board connector Socket J6 J7 Pin Signal Pin Signal Pin Signal Pin Signal 1 DTxD 2 DRxD 1 LAN_RX 2 LAN_TX 3 TxDO 4 RxDO 3 LAN_RX 4 LAN_TX 5 RTSO 6 CTSO 5 LAN_Speed 6 LAN_LINK 7 DTRO 8 DSRO 7 PA5 8 PA22 9 DCDO 10 RIO 9 PA30 10 NC 11 TxD1 12 RxD1 11 PBO 12 PB1 13 RTS1 14 CTS1 13 PB2 14 PB3 15 3 3V 16 3 3V 15 5V 16 5V 59 66 Serial Communication Experts wh ASystem Base Eddy real time Eddy DK Programmer Guide 60
117. retedninertententar detentie tier stianosatenaesunianiatnelaulacnitan 81 35 Installation of CyQWin annen eneneeneneenenentenenensenenenteneneenenentenenenneneneeneneneenenennenenenn 82 3 6 Configuration of Windows Environment Variables anneer 84 3 7 Installation of Toolchain accacucdreastanszeeninislsucusweansailotan antennae arbei eerd 84 38 Installation of Eddy DK Source ooo eseecesessscecsecececseseceseesecsesesessesecuesesessescsuesesesseensucsesessearseesesess 85 3 9 Installing on EIN 5 cece el Seen i indiana els web cba pcan ntt 85 3 10 Installation of Toolchain nnee eneen veneneneneneenenenvnrevenenvnrenenenverevenenvarevenenvnenne 86 3 11 Installation of Eddy DK SAUCE neen strate ae mee 86 3 12 Removing Development Environment nennen eneneneeneneneneerenenenenvenenenvenenenenenven 87 3 13 Removing Windows Development Environment nnn enenenenneneneneeneneensenenenenenven 87 3 14 Removing Linux Development Environment nnn enanenenneneneneenenenenenveneneneerenenenenven 87 Chapter 4 Compiling of Application Program unnnunnennenneneenennennenneneeneeneeneen 88 Eh POG TYPE ae a ee en EY ern mene aR eee ee eR ee eee aed 88 42 Writing Application PrOOMB 2 2 f scanccecsscuchdaxetetdeeuiscedis aslidesieniccsntedaeinddemneieeaaiten 91 43 Writing Makefile rennende eedt eeaanerenanaaiaaieamedes 91 0o Serial Communication Experts am ASystemBase 44 Application Program Compile 92 45 Compiling on WINGO WS annannndenerdeanen center dee
118. river for Windows as follows 1 Turn off DK board 2 Connect USB cable to both the DK board and PC 3 Set USB as a standby mode by pulling the right side switch down from the dip switch on the DK board Eddy S4M DK S1 Dip switch 4 Turn on DK board 5 If DK board is recognized on your PC maybe a dialogue box will be pop up for installing new hardware Choose the recommended mode install the software automatically then click Next 6 Click Continue Anyway to proceed with installation 7 Complete the found task Click Finish to successfully install the driver 8 Pull up both of Dip switch on DK board Eddy real time Eddy DK Programmer Guide 923 System recovery execution via USB 1 Tu m off DK board 2 Connect USB cable to both the DK board and PC 3 Set USB as a standby mode by pulling the right side switch down from the dip switch on the DK board Eddy CPU DK S6 Eddy S4M DK S1 4 Turn on DK board 5 After 5 seconds change flash writing mode by pulling up both of S6 Dip switch on DK board Eddy CPU DK S6 Eddy S4M DK S1 6 Start upgrade by double clicking Eddy_burning_SerialFlash bat file You need to wait some time for seeing the log File after executing the batch file 7 With the successful log message as below you can check the result of the upgrade If you cannot see the successful log message you can refer to next chapter to fix the problem u boot file eddy bl 2 _x xx
119. rograms as follows 135 ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 136 1 Copy usb_recovery_xxx zip file to any folder e g C SystemBase USB_recovery from SDK Windows USB_recovery folder in DK Board CD Refer to the Eddy official community site http www embeddedmodule com Among files extracted copy isp extram at91sam9260 bin file to the below folder C Program Files ATMEL Corporation AT91 ISP v1 12 SAM BA v2_8 lib AT91SAM9260 EK Among files extracted copy below listed files to the firmware folder in DK source code folder eddy bl 2 1 x x bin Boot Loader eddy bs 2 1 x x bin Boot Strap File Name eddy os 2 1 x x bin Kernel File Name eddy fs 2 1 x x bin File System File Name Among files extracted Eddy_burning_DataFlash bat file performs transferring firmware to Eddy DK board by executing a TCL file then creates a log file In this file eddy bl 2 1 x x bin file name should be same with the name of the file copied sam ba exe usb ARMO AT91SAM9260 EK Eddy burning DataFlash tcl eddy bl 2 1 xx bin logfile log notepad logfile log Among files extracted Eddy burning _DataFlash tcl file performs transferring firmware to Eddy DK v2 1 board In this file eddy bs 2 1 x x bin eddy os 2 1 x x bin and eddy fs 2 1 x x bin file names should be same with the names of the files copied FH HAHAH HHH AEH AEH A R HAARR EHH HERHEERHHEHH Main script Load the linux demo in DataFlash Update th
120. rt RS232 RS232 GND i TXD O TXD RXD GND DO DB9 Male DB9 Male 38 ASystemBase CE Since 1987 Eddy real time Eddy DK Programmer Guide Environment Setting Debug port is configured as follows so user has to set his or her PC serial port connected to debug port as follows Speed 115200 bps Data bit 8 bit Parity bit Non Parity Stop bit 1 bit 2 4 4 5 Power Jack Contact Polarity Center D 2mm 9 48VDC Outer D 6 5mm Ground Ground 8 48VDC eo 39 29 me ASystemBase CU Eddy real time Eddy DK Programmer Guide 245 Internal Device Description U11 SPI EEPROM U10 12C GPIO Dee paik dy DK2 2 S atemBase Co L ar S Mede U21 Temp Sensor RV1 LCD Bright Control 180 0mm U20 Light Sensor U27 Ethernet Controler U33 NAND Flash J15 RTC Backup Battery U18 RTC Real Time Clock 2 4 5 1 EEPROM Eddy DK v2 1 has the AT25160 2Kx8bit SPI EEPROM 40 ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 2452 LCD Module Graphic LCD Module PowerTIP PG12864LRU JCNH11Q and I2C Bus I O Expander IC PCA9539 Signal Name Function Description 1 0 P 00 07 Dein ie Used for data transfer between the CPU and the LCD O module P10 CS1 Chip enable for D2 Segment 1 to 64 IN P11 CS2 Chip enable for D3 Segment 65 to 128 IN R W signal input is used to select
121. rt is enabled through web configuration and Eddy is rebooted the port acts as a serial port not a GPIO port But when this port is forced to be used as GPIO port with this command the application that uses this serial port will not operate properly SETGPIOMOD_LM Function Format Parameter Returns Notice Sets Read Write direction for all Port A B C void ioctiint fd SETGPIOMOD LM int mode 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores mode value for Port A B C Bit value 0 means input 1 means output None Any value is ok for bits that are not set to be used GPIO 60 Serial Communication Experts SS AS ystemBase Eddy real time Eddy DK Programmer Guide 116 GETGPIOMOD LM Function Format Parameter Returns Notice Reads Read Write direction for all Port A B C void ioctl int fd GETGPIOMOD_LM int mode 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that will store the mode value of Port A B C None SETGPIOVAL_LM Function Format Parameter Returns Notice Sets output value when Port A B C are all in output mode void ioctl int fd SETGPIOVAL_LM int value 3 fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores the value value of Port A B C Bit value 0 means Low 1 means High None Any v
122. s Sh ASystemBase u ince 1987 Eddy real time Eddy DK Programmer Guide 2 5 2 8 etc S4M Pin No 124 Name S4M JIG Pin HDR 46 2 S4M DK Pin HDR 46 2 Description 16 97 121 18 123 53 NC J5 pin10 J5 pin10 No Connection 15 32 50 69 82 102 23 37 55 74 83 114 27 49 62 77 101 GND J4 31 32 J5 31 32 J6 31 32 J7 31 32 Ground 19 31 70 124 24 40 88 28 63 89 3 3V J4 15 16 J6 15 16 3 0 to 3 6V power input 55 Asy Serial Communication Experts stemBase e mh SC Eddy Eddy DK Programmer Guide 25 3 Switch Operation io Switch No 1 Operation descriotion For Flash Programming Store firmware image to Flash memory through USB Device FF 9 Only via Window Host For more information please refer to chapter 9 system recovery ON Normal booting via Eddy S4M v2 1 Data Flash 254 LED Operation System Ready RDY Indicate normal state of system Normal blinking 255 Ethernet Since there is KSZ8041NL PHY in Eddy S4M module when integrating Ethernet just connect RJ45 in which transformer located WARNING When you use RJ45 which has transformer in its internal circuit it is possible to each product doesn t have equal PIN spec Therefore you must confirm PIN number Bellow is KSZ8041NL functions e Fully compliant t
123. status of COM1 Port COM Port 1 Receive LED Shows reception status of COM1 Port 2 4 3 5 COM Port 2 LED COM Port 2 Transmit LED Shows transmission status of COM2 Port COM Port 2 Receive LED Shows reception status of COM2 Port 2 4 3 6 COM Port 3 LED COM Port 3 Transmit LED Shows transmission status of COMS3 Port 34 s h ASystemBase CP Ao Eddy real time Eddy DK Programmer Guide COM Port 3 Receive LED Shows reception status of COM3 Port 2 4 3 7 COM Port 4 LED COM Port 4 Transmit LED Shows transmission status of COM4 Port COM Port 4 Receive LED Shows reception status of COM4 Port 35 Sns Eddy Eddy DK Programmer Guide real time 244 External Device Interface Description J24 COM Port 1 J25 COM Port 2 J21 COM Port 3 J22 COM Port 4 3 pms Eddy DK2 2 f SystemBase Co Ltd Made in Korea Hine EELEE COO 240 0mm J17 LAN J18 WAN J19 USB Device J20 USB Host J23 Power Jack eee vn pm Eddy OK 202 SystemBase Co L 180 0mm J16 SD MMC Card J12 Debug Port J7 ICE Interface J5 Digital I O Port 36 ASystemBase Since 1987 Eddy real time Eddy DK Programmer Guide 2 4 4 1 WAN amp LAN Interface WAN amp LAN Port automatically recognizes Cross Direct auto MDIX mtn Pin Signal Description 1 TXD Transmit Data 2 TXD Transmit Data 3 RXD Receive Data 6 RXD Receive Data TXD LED Descriptio
124. t Ch2 79 PC2 J5 pin29 J7 pin29 Peripheral B PCK1 Programmable Clock Output 1 Peripheral A AD3 Analog to Digital Converter Input Ch3 80 PC3 J5 pin30 J7 pin30 SPI1 Serial Peripheral Interface Peripheral B SPI1_NPCS3 Peripheral Chip Select 3 SPI1 Serial Peripheral Interface 81 PC5 J5 pin33 J7 pin33 Peripheral B SPI1_NPCS1 Peripheral Chip Select 1 84 PC9 J5 pin34 J7 pin34 Only GPIO 85 PC10 J5 pin35 J7 pin35 Only GPIO 86 PC12 J5 pin36 J7 pin36 Only GPIO 87 PC13 J5 pin37 J7 pin37 Only GPIO 90 PC14 J5 pin38 J7 pin38 Only GPIO 91 PC15 J5 pin39 J7 pin39 Only GPIO 92 PC17 J5 pin40 J7 pin40 Only GPIO SPI1 Serial Peripheral Interface 93 PC18 J5 pin41 J7 pin41 Peripheral B SPI1_NPCS1 Peripheral Chip Select 1 SPI Serial Peripheral Interface 94 PC19 J5 pin42 J7 pin42 Peripheral B SPI1_NPCS2 Peripheral Chip Select 2 95 PC24 J5 pin44 J7 pin44 Only GPIO SPI1 Serial Peripheral Interface 96 PC20 J5 pin43 J7 pin43 Peripheral B SPI1_NPCS3 Peripheral Chip Select 3 98 PC25 J5 pin45 J7 pin45 Only GPIO 2 5 2 5 Two Wire Interface S4M S4M JIG S4M DK Pin No Name Pin HDR Pin HDR Description 124 46 2 46 2 Two wire Serial Clock 99 I2C_TWCK J4 pin43 J6 pin43 This can be used GPIO pin unless RTC function is used Two wire Serial Data This can be used GPIO pin unless 100 12C_TWD J4 pin44 J6 pin44 RTC function is used 53 ag Serie Communication Experts SS ASystemBase EE Since 1987 Eddy Eddy DK Programmer Guide 2 5 2 6 Univ
125. terface support e RMI interface support with external 50MHz system clock ESD rating 6kV e Built in 1 8V regulator for core e Available in 32 pin bmm x 5mm MLFe package Pin Signal Description 1 TXD Physical transmit or receive signal differential 2 TXD Physical transmit or receive signal differential 3 RXD Physical transmit or receive signal differential 6 RXD Physical transmit or receive signal differential LED Description LAN Connection Speed en Speed ae LED Definition Ts 10Base T H OFF sa 100Base TX L ON K RYD LAN Connection SS Speed ag LED Definition Aigne yelow No Link H OFF Link L ON Activity Toggle Blinking Serial Communication Experts ASystemBase 66 Ga ak Eddy real time Eddy DK Programmer Guide 2 6 2 5 J17 18 COM Port 1 amp Port 2 RS232 EN DSR SO ers D 2 RXD ors HOO ne ji TEH GND DB9 Male COM Port 1 2 2S RS232 Pin Signal Description 1 DCD Data Carrier Detection Input COM Port 1 only 2 RXD Receive Data Input 3 TXD Transmit Data Output 4 DTR Data Terminal Ready Output COM Port 1 only 5 GND Ground 6 DSR Data Set Ready input COM Port 1 only 7 RTS Request to Send Output 8 CTS Clear to Send Input 9 RI Ring Indicator Input COM Port 2 provide only TxD RxD RTS CTS signal 2 6 2 6 J13 14
126. tion Eddy S4M v2 1 Eddy S4M v2 5 CPU ARM9260B CJ 210 MHz AT91SAM9G20 400MHz Memory AT45DB642D 8MB Data Flash 1S42516160B 32 MB SDRAM Ethernet MC PHY 10 100 Base T MAC KSZ8041NLi PHYceiver Auto MDI MDIX Port 0 1 RS232 DB9 male Port 0 Full Signal Serials Port 1 TxD RxD RTS CTS only Port 2 3 COMBO Terminal Block 5pin COMBO RS422 RS485 is S W selectable USB 2 0 FS 3 Bost Device Port 2 0 FS 12Mbps hadiae Extension Port using GL850A USB Hub chip RTC Real Time Clock RTC DS1340U 33 Connected to 12C I F Battery Holder CR1220 38mAh 3V Lithium Battery ADC 4 Channel 10 Bit ADC TWI I2C Master Multi Master and Slave Mode SPI 8 to 16 bit Programmable Data Length Four External Peripheral Chip Selects MCI SD Spec V2 0 SDHC MMC Spec V4 2 support USB to SD Controller 16GB 12Mbits s GPIO Max 34 Programmable I O Pins LED Ready LED Pr totol TCP UDP Telnet ICMP DHCP TFTP HTTP SNMP182 SSH SSL Network Connection Static IP DHCP Software O S Linux Kernel 2 6 21 Mgt Tools SNMP Web PortView Uploads TFTP FTP Web Dev Tools LemonlDE amp SDK Power Input 3 3 V 200mA Max Physical 7 characteristics Dimensions 59 75 x 61 80 x 4 mm Weight 15g Operating Temp 40 85 C Environment Storage Temp 66 150 C Humidity 5 95 Non Condensing 66 Serial Communication Experts AS ystemBase Eddy
127. v WiFi v3 0 Mac OOOSFAOOBAGS tren tat EA2261 610207 C oseo SystemBass Co Ltd a f Eddy Cpu WEI VIOI NA g NA NA 5 5 NA NA 5 NA vec 5 vec e 5 HDM G HDP NA NA Ee NRESET 0D GND 5 END KE KE D eo 55 255 72 ASystemBase Since 1987 Eddy Eddy DK Programmer Guide 73 LEFT Description RIGHT Description 1 NA 1 NA 2 NA 2 NA 3 NA 4 NA 5 VCC 3 3V 6 VCC 3 3V 7 USB Host Data 8 USB Host Data 9 NA 10 NA 11 H W Reset 12 Ground 13 Ground 14 NA 15 NA 3 NA 16 NA 4 NA 17 NA 18 NA 06 Serial Communication Experts wh AS ystemBase Eddy real time Eddy DK Programmer Guide 29 Eddy BT v2 1 Eddy BT module is based on Bluetooth 2 0 and supports communication distance of up to 1 000m Linking to Eddy CPU and Eddy S4M Eddy BT module enables communication with various types of Bluetooth device in Bluetooth method Eddy BT module s communication interface supports serial method To connect to Eddy CPU Eddy S4M it uses 4 serial port Since it is not considered to use Eddy BT in Eddy s operating environment it can lose data in case of using HW Flow Control 4 port is composed to support RS422 or RS 485 Since it uses RTS CTS signal line in Auto To
128. x tools util linux 2 12r fdisk common h ilesystem_2 1 x x tools util linux 2 1 2r fdisk disksize o ilesystem_2 1 x x tools util linux 2 1 2r fdisk fdiskaixlabel h ilesystem_2 1 x x tools util linux 2 1 2r fdisk disksize c El Installing on Linux This chapter will describe how to install Eddy Development Environment on Linux host The explanation of this manual based on Fedora Core 5 To establish Eddy s integrated development environment LemonlDE please refer to LemonlDE User Guide for further instructions Ses Eddy Eddy DK Programmer Guide 3 10 Installation of Toolchain 3 11 86 Toolchain compiles source codes composed on Linux environment and make it executable on the target Eddy Toolchain install file lemonide_linux_10x tar gz can be found under SDK linux folder in Eddy DK s CD Toolchain should be installed to opt lemonix Note that the command is case sensitive Note Carry out all install procedures under the super user privileges Example below assumes that CDROM is mounted on mnt cdrom If CDROM is mounted on a different location path displayed below will bear difference cd tar zxvf mnt cdrom SDK linux lemonide targz C Installation of Eddy DK Source Install the entire source of Eddy DK Eddy DK Source file Filesystem_2 x x x tar gz can be found under SDK folder on Eddy DK s CD Install Eddy DK Source as shown below The

Download Pdf Manuals

image

Related Search

Related Contents

SISTEMA DE TALADRADORAS CON ACUMULADOR Instrucciones  Betriebsanleitung Notice d'utilisation Operating Instructions  Price Management - Oracle Documentation  pss302 portable soundset 10” streaming audio/mp3/stands  NNeuR User Manual (PDF 1879 Kb)  オープン価格 - Yamaha    

Copyright © All rights reserved.
Failed to retrieve file