background image

                                                                                                                Eddy DK Programmer Guide

 

                                 

 

15 

More than 5 seconds: Factory Default function. 

Peripheral A : D16 

External Data Bus 

Peripheral B : SPI0_NPCS2 

Disabled 

SPI0_SPCK, SPI0_MISO, and SPI0_MOSI signals for SPI0 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_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 

Peripheral A : CTS1 

USART1 Clear To Send 

25 

PB29   

J10_25 

J2_30 

Peripheral B : ISI_VSYNC 

Image Sensor Vertical Synchronization 

Peripheral A : RTS1 

USART1 Request To Send 

26 

PB28   

J10_26 

J2_29 

Peripheral B : ISI_PCK (IN) 

Image Sensor Pixel Clock Provided by the Image Sensor 

Peripheral A : TXD1 

USART1 Transmit Data   

27 

PB6   

J10_27 

J2_7 

Peripheral B : TCLK1 

Timer Counter ch1 External CLK IN 

Peripheral A : RXD11 

USART1 Receive Data 

28 

PB7 

J10_28 

J2_8 

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) 

Summary of Contents for Eddy DK

Page 1: ...1 Eddy DK Programmer Guide Ver 2 5 1 1 2011 02 15...

Page 2: ...C12 PC13 J2 pin35 PC13 PC12 17 18 19 J2 pin33 PC12 PC13 J2 pin35 PC13 PC12 Oct 22 2009 2 1 0 3 18 19 J2 pin33 J9_26 J9_33 J2 pin34 J9_25 J9_34 J2 pin33 J9_24 J9_35 Nov 23 2009 2 1 0 3 2 4 6 Added S4M...

Page 3: ...ment Environment 78 3 1 Source code directory structure 78 3 2 Language 79 3 3 Development Environment 79 3 4 Installing on Windows OS 79 3 5 Installation of Cygwin 80 3 6 Configuration of Windows Env...

Page 4: ...nment Function 99 6 5 Serial functions 102 6 6 Ethernet functions 105 6 7 GPIO Functions 111 6 8 ADC Function 118 6 9 RTC Function 119 6 10 Debugging Function 120 Chapter 7 Eddy Software 121 7 1 Softw...

Page 5: ...After reading this document a programmer can write his or her own application and execute it on the module 1 2 Who should read this document This document is designed for programmers who wish to devel...

Page 6: ...ing 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 libr...

Page 7: ...al 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 s...

Page 8: ...h 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...

Page 9: ...iety of functions into the module with relatively less restrictions Eddy DK supports IDE LemonIDE and SDK environment to help programmers to execute their own applications on the module Programmers ca...

Page 10: ...Eddy DK Programmer Guide 10 2 3 Eddy CPU v2 1 v2 5...

Page 11: ...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 A1 16 A0 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...

Page 12: ...2 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 DCD0 30 PB5 RXD0 29 TWD 30 TCK 31 PB4 TXD0 32 PB24 DTR0 31 NANDOE 32 NAND_CLE A22 33 PB22...

Page 13: ...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...

Page 14: ...24 Peripheral B SPI1_NPCS2 SPI1 Serial Peripheral Interface Peripheral Chip Select 2 Peripheral A D21 External Data bus 5 PC21 J10_5 J4_26 Peripheral B EF100 Ethernet WAN Force 100Mbit sec 6 PC23 J10_...

Page 15: ...V to 3 6V power input 22 GND Ground 23 3 3V 3 0V to 3 6V power input 24 GND Ground Peripheral A CTS1 USART1 Clear To Send 25 PB29 J10_25 J2_30 Peripheral B ISI_VSYNC Image Sensor Vertical Synchronizat...

Page 16: ...nk H OFF Link L ON Activity Toggle Blinking 33 LAN_RX J10_33 CPU Ethernet PHY WAN Physical receive or transmit signal differential 34 LAN_RX J10_34 CPU Ethernet PHY WAN Physical receive or transmit si...

Page 17: ...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...

Page 18: ...on 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 25 32 D 7 0 J9_25 J3_32 J3_29 J3_36 External Data Bus 0 7 DK is directly connec...

Page 19: ...Eddy DK Programmer Guide 19 Peripheral B NCS7 External device Chip Select 7 256MB memory area addressable active low 36 NC Not Connect...

Page 20: ...4 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 PC0 20 PC1 AD1 21 PC2 22 PC3 AD3 23 PB14 DRXD 24 PB15 DTXD 25 GND 26 GND 2...

Page 21: ...ial Peripheral Interface Peripheral Chip Select 1 Peripheral A NCS4 External Device Chip Select 4 10 PC8 J8_10 J4_13 Peripheral B RTS3 USART3 Request to Send Peripheral A D20 External Data Bus 11 PC20...

Page 22: ...t 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 27 BMS J8_27 Boot Mode Select signal BMS 1 Boot on Embedded ROM BMS 0 Boot on Ext...

Page 23: ...Eddy DK Programmer Guide 23 Peripheral B ISI_D7 Image Sensor Data 7 Peripheral A RI0 USART0 Ring Indicator 36 PB25 J8_36 J2_26 Peripheral B ISI_D5 Image Sensor Data 5...

Page 24: ...me 1 PB12 2 PB13 3 PB30 4 PB31 5 PB0 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 D15...

Page 25: ...l Peripheral Interface Master In Slave Out 5 PB0 J11_5 J2_2 Peripheral B TIOA3 Timer Counter ch3 I O Line A Peripheral A D22 6 PC22 J11_6 J4_27 Peripheral B TCLK5 Timer Counter ch5 External CLK IN Per...

Page 26: ..._18 J2_22 Peripheral B ISI_D1 Image Sensor Data 1 19 A17 J11_19 J3_2 20 A18 J11_20 J3_1 External Address Bus 21 28 D 8 15 J11_21 J11_28 J3_28 J3_21 External Data Bus 8 15 DK is directly connected with...

Page 27: ...Eddy DK Programmer Guide 27 2 4 Eddy DK v2 1 2 4 1 Modules Locations 2 4 2 Switch Description NOTE Ensure that the input power supply for Eddy Serial DK is from 9V to 48V with 500 mA or higher...

Page 28: ...ommon 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...

Page 29: ...S6 NAND Flash Data Flash Chip Select This switch is Nand Flash Data Flash Chip select switch This switch is needed in firmware Programming Flash Programming Booting device Selection Switch No 1 Switch...

Page 30: ...25 ports are connected with the GPIO LED of DK board and disconnected with the UART 0 RS232 driver IC 3 UART 1 TEST UART 1 TXD RXD RTS CTS signals are connected with UART 1 RS232 driver IC GPIO PB6 PB...

Page 31: ...ode RS485 non echo mode 3 RS422 Termination Resistor not connected RS422 Termination Resistor Connected S8 Port 3 4 RS485 Termination Resistor not connected RS422 Termination Resistor Connected 1 RS48...

Page 32: ...ird 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 Po...

Page 33: ...t switches refer to 2 4 2 4 UART Select PIN name Function Discription I O PC10 CTS3 UART 3 Clear to Send I PC8 RTS3 UART 3 Request to Send O PB11 RXD3 UART 3 Receive Data I PB10 TXD3 UART 3 Transmit D...

Page 34: ...2mA Refer to CPU Datasheet 41 2 DC characteristics 2 4 3 2 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...

Page 35: ...er Guide 35 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 stat...

Page 36: ...Eddy DK Programmer Guide 36 2 4 4 External Device Interface Description...

Page 37: ...ink it lights Upon 10BaseT link it off Right Yellow Default Lights When the data is sent or received it blinks 2 4 4 2 COM Port 1 COM Port 2 RS232 Pin Signal Description 1 DCD Data Carrier Detection I...

Page 38: ...fferential 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 Recei...

Page 39: ...ort 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 Con...

Page 40: ...Eddy DK Programmer Guide 40 2 4 5 Internal Device Description 2 4 5 1 EEPROM Eddy DK v2 1 has the AT25160 2Kx8bit SPI EEPROM...

Page 41: ...r for read IN P14 E Start enable signal to read or write the data IN 2 4 5 3 16bit I2C Bus GPIO This 16 bit I2C Bus GPIO PCA9539 provides general purpose remote I O expansion Slave address of this chi...

Page 42: ...Eddy DK Programmer Guide 42 P11 DIO Input DI1 P12 DIO Input DI2 P13 DIO Input DI3 P14 DIO Input DI4 P15 DIO Input DI5 P16 DIO Input DI6 P17 DIO Input DI7 INT Connected with PB16 of Eddy CPU OUT...

Page 43: ...S1340 Crystal Specifications Parameter Symbol MIN TYP MAX Units Normal Frequency fo 32 768 KHz Series Resistance ESR 45 60 K Load Capacitance CL 12 5 pF 2 4 5 5 Temp Sensor AD0 PC0 National LM50 2 4 5...

Page 44: ...OUT NANDWE NANDWE controls writes to the I O port OUT PC14 NCS3 NANDCS device selection control OUT PC17 RDYBSY R B READY BUSY OUTPUT The R B output indicates the status of the device operation When l...

Page 45: ...ered by DM9000B AVDD18 Eddy CPU v2 1 v2 5 Signal Name DM9000B Signal Name Description I O PC12 NCS7 CSN Chip Select 7 Address 0x8000 0000 0x8FFF FFFF OUT PC15 IRQ1 INTRN Interrupt depend on EECK pin20...

Page 46: ...el 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 othe...

Page 47: ...Eddy DK Programmer Guide 47 Eddy S4M v2 1 Eddy S4M v2 5...

Page 48: ...3_TX 22 DTR0 85 PC10 86 PC12 23 GND 24 3 3V 87 PC13 88 3 3V 25 P3_TX 26 nRESET 89 3 3V 90 PC14 27 GND 28 3 3V 91 PC15 92 PC17 29 P4_RX 30 RxD0 93 PC18 94 PC19 31 3 3V 32 GND 95 PC24 96 PC20 33 P4_RX 3...

Page 49: ...4 Name S4M JIG Pin HDR 46 2 S4M DK Pin HDR 46 2 Description 7 LAN_RX J5 pin2 J7 Pn2 Ethernet PHY Physical receive or transmit signal differential in CPU 8 LAN_TX J5 pin1 J7 Pin1 Ethernet PHY Physical...

Page 50: ...6 Reset Input In S W continuously check the interval of LOW when polling input signal from external Reset Key Under 5sec Normal reset function Over 5sec Factory Default function 29 P3_RX J4 pin23 J6 p...

Page 51: ...PIO 46 RxD1 J4 pin12 J6 pin12 COM port 1 Receive Data signal RS232 receiver input in Eddy S4M module 47 PA22 J5 pin8 J7 pin8 Only used for GPIO 48 RTS1 J4 pin13 J6 pin13 COM port 1 Request to Send sig...

Page 52: ...J7 pin17 Peripheral A TXD5 USART5 Transmit Data 64 PB13 J5 pin18 J7 pin18 Peripheral A RXD5 USART5 Receive Data Peripheral A TK0 SSC Transmit Clock 65 PB16 J5 pin119 J7 pin119 Peripheral B TCLK3 Timer...

Page 53: ...IO 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 93 PC18 J5 pin41 J7 pin41 Peripheral B SPI1_NPCS1 SPI...

Page 54: ...ected to DSPORT2 of GL850A USB 2 0 Hub Controller 109 DM4 J4 pin33 J6 pin33 USB Port4 Data Connected to DSPORT2 of GL850A USB 2 0 Hub Controller 110 DP4 J4 pin34 J6 pin34 USB Port4 Data Connected to D...

Page 55: ...DR 46 2 S4M DK Pin HDR 46 2 Description 16 18 53 97 121 123 NC J5 pin10 J5 pin10 No Connection 15 23 27 32 37 49 50 55 62 69 74 77 82 83 101 102 114 GND J4 31 32 J5 31 32 J6 31 32 J7 31 32 Ground 19 2...

Page 56: ...ng 2 5 5 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 intern...

Page 57: ...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 TY...

Page 58: ...Eddy DK Programmer Guide 58 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...

Page 59: ...nal 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 Resist...

Page 60: ...C9 35 SDDATA0 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...

Page 61: ...Eddy DK Programmer Guide 61 2 6 2 Interface Explanation 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...

Page 62: ...Port 4 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 I O 1 PC25 GPIO Only I O 2 PC24 GPIO Only...

Page 63: ...SI or TIOB3 I O 31 PB0 GPIO or SPI1_MISO or TIOA3 I O 32 PA30 GPIO Only I O 33 PA22 GPIO Only I O 34 PA5 GPIO Only I O PIO line has high drive current capable so that can drive about 16mA except PC4 P...

Page 64: ...uto MDI MII interface support RMII interface support with external 50MHz system clock ESD rating 6kV Built in 1 8V regulator for core Available in 32 pin 5mm x 5mm MLF package Pin Signal Description 1...

Page 65: ...nd 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 COM Port 3...

Page 66: ...rential data negative J15 Debug Port You can confirm debug massage and information of state through debug port Environment Configuration Debug port is configured like below so that you must change ser...

Page 67: ...Signal 1 PA5 2 PA22 3 PA30 4 NC 5 PB0 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 PB31 21 PC0 22 PC1 23 PC2 24 PC3 25 PC5 26 PC9 27 PC1...

Page 68: ...nable 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...

Page 69: ...to MDI MII interface support RMII interface support with external 50MHz system clock ESD rating 6kV Built in 1 8V regulator for core Available in 32 pin 5mm x 5mm MLF package Pin Signal Description 1...

Page 70: ...conds General reset function More than 5 second Factory Default function IN 2 7 5 J4 5 Expansion Header Provide most function of eddy S4M with pin connector You can confirm the function with direct co...

Page 71: ...B21 25 DDM 26 DDP 25 PB30 26 PB31 27 DM2 28 DP2 27 PC0 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 SDDATA0 36 SDDATA1 35 PC10 36 PC12 37 SDDATA2 38 SD...

Page 72: ...e 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 80...

Page 73: ...mer 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...

Page 74: ...y BT module s communication interface supports serial method To connect to Eddy CPU Eddy S4M it uses 4th serial port Since it is not considered to use Eddy BT in Eddy s operating environment it can lo...

Page 75: ...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...

Page 76: ...9 11 D0 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...

Page 77: ...B1 119 HDMA 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 J1 Pin Signal Name Pin Signal Name 1 PB0 2 PB1 1 NC 3 PB2 2 NC 4 PB3 3 3 3V 5 3 3V 4 3 3V 6 3...

Page 78: ...e 3 1 Source code directory structure Firmware Directory Boot Loader kernel filesystem image are stored Ramdisk Directory Filesystem images are created here root Linux Filesystem for Eddy is stored To...

Page 79: ...Eddy 3 3 Development Environment Eddy DK requires Windows or Linux host system Officially supported OSs are as follows Windows Linux Windows XP SP2 Windows 2000 Windows 2003 Red Hat 9 0 Fedora Core 4...

Page 80: ...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 th...

Page 81: ...ry 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 pictur...

Page 82: ...d the following line on the very beginning c cygwin bin 3 7 Installation of Toolchain Toolchain compiles source codes composed on Windows environment and make it executable on the target Eddy Eddy Too...

Page 83: ...ip the file from Windows command line as below DK Source should be installed to c eddy_DK_2xx Note that the command is case sensitive 3 9 Installing on Linux This chapter will describe how to install...

Page 84: ...dy 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 eddy_DK_2xx folder will be created after the installation Unzip the...

Page 85: ...y 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...

Page 86: ...ectory Folder Name Description busybox 1 5 0 Linux Utility containing basic commands for the shell dropbear 0 50 SSH Secure Shell Server gdbserver Remote debugging program for LemonIDE Only executable...

Page 87: ...ti TCP server function it supports client connection up to 5 and broadcasts serial data to the whole client X tcp_multiplex c As a multi TCP server function it supports client connection up to 5 and t...

Page 88: ...ent After connection it retransmits the received data to the other socket O def c Eddy Configuration program Program which links to telnet and enables configuration of Eddy O upgrade c Firmware update...

Page 89: ...is description of Makefile under directory 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 r...

Page 90: ...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 wi...

Page 91: ...nIDE integrated developing environment provides advanced solution LemonIDE debugging tool supports the direct transmission of compiled applications to Eddy By using this tool the user can execute and...

Page 92: ...o Flash memory of Eddy to execute on booting Register the application to pinetd c on the directory of Eddy_APPS If printed c is modified a user must re compile it by executing make pinetd as above exa...

Page 93: ...file name as shown below tool genext2fs tool genext2fs exe tool mkimage tool mkimage exe IMAGE ramdisk FW_NAME eddy fs 2 x x x bin Name and Version Info of Firmware Image FIRMWARE_DIR firmware Directo...

Page 94: ...ate a Firmware image Created firmware is stored on the FIRMWARE_DIR directory stated on the Makefile On Windows use cmd command prompt to carry out procedures explained on Linux shlee localhost ramdis...

Page 95: ...il 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 US...

Page 96: ...rd 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 p...

Page 97: ...Eddy DK Programmer Guide 97 Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy Welcome to Eddy...

Page 98: ..._APPs SB_APIs directory 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 6 3 System functions Timer an...

Page 99: ...on Reads version of O S file system and bootloader ported to Eddy in string type Format void SB_GetVersion int type char version Parameter type Specifies the version function reads B Eddy s bootloader...

Page 100: ...he configuration information is saved Size Size of the struct to be written Returns Error Code Return 1 if succeeded 1 if failed Notice SB_GetSharedMemory Function Reads pointer to registered shared m...

Page 101: ...ey_ID int Buffer_Size Parameter Key_ID Buffer_Size ID of shared memory to be registered Size of shared memory to be used Returns buffer_address Memory address of shared memory Returns 1 upon failure N...

Page 102: ...ver 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 t...

Page 103: ...will return after transmission is completed SB_ReadSerial Function Reads data from the serial port Format int SB_ReadSerial int handle char data int length int wait_msec Parameter handle Handle to ser...

Page 104: ...High Bit6 RI 0 Low 1 High Bit7 DCD 0 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...

Page 105: ...Format Unsigned int SB_GetIp 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 tha...

Page 106: ...socket Format Int SB_ConnectTcp char IP_Address int Socket_No int Wait_Sec int Tx_Size int Rx_Size Parameter IP_Address IP address to connect in string type Socket_No Wait_Sec Tx_Size Rx_Size Socket...

Page 107: ...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...

Page 108: ...ting 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 Buf...

Page 109: ...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_SendUdpServ...

Page 110: ...a_Size IP_Address Socket_No Handle number bound to UDP socket Buffer point where packet data to be sent is saved Size of the buffer to send IP address to send data to Socket number to send data to Ret...

Page 111: ...s 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 testdk c in Eddy_Apps d...

Page 112: ...write value for each GPIO channel in Port A B C Unsigned int mode 3 Configure read write for each GPIO channel in Port A B C Unsigned int pullup 3 Pullup Pulldown when configuring write for each GPIO...

Page 113: ...mber 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 comman...

Page 114: ...hat will store the mode value of Port A B C Returns None Notice SETGPIOVAL_LM Function Sets output value when Port A B C are all in output mode Format void ioctl int fd SETGPIOVAL_LM int value 3 Param...

Page 115: ...put mode Format void ioctl int fd SETGPIOVAL_LM int value 3 Parameter 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 Pul...

Page 116: ...D_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 buffe...

Page 117: ...en Port is in input mode Format void ioctl int fd SETGPIOVAL_L int value 3 Parameter fd Handle to GPIO device dev eddy_gpio mode Pointer to the buffer that stores the pullup value Bit value 0 means Pu...

Page 118: ...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 None Notice X X X X X X X X bits chann...

Page 119: ...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...

Page 120: ...dy s tick 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 c...

Page 121: ...e 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 t...

Page 122: ...highest hierarchy of Eddy run by Eddy c which monitors lower processor It periodically monitors the Reset Switch to detect a factory reset request 7 5 Other Applications The list of applications runs...

Page 123: ...a user on the HTML page and saves the value to a temporary environment configuration file on etc 8 2 Example of HTML Code The following example shows a part of main html source Coding is executed wit...

Page 124: ...lor FFFFFF td class content Telnet Service td td class content select name N_WEB option v n_web_di value 0 Disable option option v n_web_en value 1 Enable option select As shown above there are name a...

Page 125: ...NotFound sprintf buff d d d d cfg system ip 0 cfg system ip 1 cfg system ip 2 cfg system ip 3 listPutf list n_ip buff else listPutf list n_ip buff if cgiFormStringNoNewlines N_MASK buff 16 cgiFormNotF...

Page 126: ...t c to save user modified configuration value Source abstract value2 cgiFormStringNoNewlines N_IP buff 16 if value2 cgiFormEmpty convert_address buff cfg system ip value2 cgiFormStringNoNewlines N_MAS...

Page 127: ...us 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 tha...

Page 128: ...s will be printed to minicom When these are printed press enter to enter into bootloader The below image shows status after entering bootloader You can recover by copying OS firmware and config image...

Page 129: ...install os name of OS firmware When recovering OS area install fs name of File System firmware When recovering File System area U Boot printenv ethaddr 00 05 F4 11 22 33 Config_Size 10000 stdin seria...

Page 130: ...rver IP address is just example so it can be differ with user U Boot install os eddy os 2 1 x x bin TFTP from server 192 168 0 220 our IP address is 192 168 0 223 Filename eddy os 2 1 x x bin Load add...

Page 131: ...duct with same MAC address or IP in the network Check whether there are other Eddy products in the same network U Boot install fs eddy fs 2 1 x x bin TFTP from server 192 168 0 220 our IP address is 1...

Page 132: ...ystem 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...

Page 133: ...then click Finish After system reboot copy the isp extram at91sam9260 bin file from CD to the following directory C Program Files ATMEL Corporation AT91 ISP v1 12 SAM BA v2 8 lib AT91SAM9260 EK After...

Page 134: ...e System File Name 4 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...

Page 135: ...y e g C SystemBase USB_recovery from SDK Windows USB_recovery directory in Eddy DK CD Double click Sam ba_2 10 exe file and begin the installation process of USB Tool program then click Next On the sp...

Page 136: ...Eddy DK Programmer Guide 136 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...

Page 137: ...s 2 5 x x 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 fi...

Page 138: ...side switch down from the dip switch on the DK board Eddy CPU DK S6 Dip switch 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 f...

Page 139: ...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...

Page 140: ...y_burning_xxxxFlash tcl u boot file eddy bl 2 x x x bin E Script File Eddy_burning_xxxxFlash tcl returned error could not read eddy bl 2 x x x bin no such file or directory could not read eddy bl 2 x...

Page 141: ...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...

Page 142: ...onsole Serial TxD RxD I2C Interface 16bit I2C 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 Switch Serial...

Page 143: ...RTC DS1340U 33 Connected to I2C 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 Ex...

Page 144: ...rmination resistor configuration switch Input switch for testing GPIO Off Low ON High LED RDY Power 34 Programmable IO Console Serial TxD RxD LED JTAG Port Used for downloading code and single steppin...

Page 145: ...s 8 PER 802 11b 85dBm 11Mbps 8 PER Security WEP 64 128 WPA WPA2 Working distance 60 120m depending on surrounding environment Data Rate 802 11b 11 5 5 2 1 Mbps 802 11g 54 48 36 24 18 12 11 9 6 5 5 2 1...

Page 146: ...emperature 40 85 o 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 Ant...

Page 147: ...S4M 2 1 Embedded CPU Module Mini PCI Type Eddy S4M 2 5 Embedded CPU Module Mini PCI Type Eddy S4M DK 2 1 Eddy S4M v2 1 Development Kit Eddy S4M JIG 2 1 Eddy S4M v2 1 JIG Board Eddy WiFi 2 1 802 11 b...

Reviews: