Home

Products

Support

Contact

 

 

Support Home

Product

Tools, Drivers, etc

GESBC-5200

Product Support

Pre-compiled Binary Images

Pre-compiled boot strap code.
Pre-compiled device tree binary.
Pre-compiled Linux 4.14 kernel image.
Embedded Linux file system UBI image Embedded Linux File System.
Pre-compiled boot strap code for SD card U-boot boot strategy.
Pre-compiled U-boot binary for SD card boot (NAND FLASH not supported).



Getting Started

The GESBC-5200 comes from factory with Linux pre-installed and ready to run.

  1. Connect a 9 ~ 24V DC power supply to J1
  2. Connect a null modem serial cable between GESBC-5200 debug port and PC/terminal serial port.
  3. Launch a terminal emulation program, such as HyperTerminal, putty, or minicom, on the PC configured to connect to the serial port of the GESBC-5200. Configure the serial port with the following parameters: 115200 bits per second, 8 data bits, no parity, 1 stop bit, no flow control.
  4. Connect the board to a local area network (optional)

When GESBC-5200 powers up the system boot message will be displayed on the terminal screen.


Power Connection

The GESBC-5200 Industrial Computer can use a wide range of DC power supply.

Connector Pin 1 Pin 2
J1 7.5VDC ~ 25VDC Ground


JTAG Connection

The GESBC-5200 supports JTAG interface. The JTAG connection is on the back side of the PCB with a 2x5 surface mount header (unpopulated from factory). The JTAG signal arrangement is shown in the following table

Pin 1 Pin 3 Pin 5 Pin 7 Pin 9
+3.3V NTRST TMS RTCK GND
Pin 2 Pin 4 Pin 6 Pin 8 Pin 10
+3.3V TDI TCK TDO GND


RS-232 Port connection

The GESBC-5200 has a debug serial port P0 that can be connected to desktop system to debug/monitor system. The debug serial port communication settings are 115200,8,N,1.

The DB9 connector P1 on the GESBC-5200 connects to FLEX COM4 of the processor. The Linux device node is /dev/ttyS1 when using factory installed device tree setting.

The header connector P2 is connected to the FLEX COM1 of the processor. The Linux device node is /dev/ttyS2 when using factory installed device tree setting.

Pin 1 Pin 2 Pin 3
P0 (debug serial port) Rx Tx GND
P2 (FLEX COM1) Rx Tx GND


RS-485 Connection

The RS-485 interface on the GESBC-5200 is on the 3 pin 2.54mm spacing header P3. It is connected to FLEX COM3 of the SAMA5D27 processor. The Linux device node is /dev/ttyS3 using factory installed device tree setting.

Connector Pin 1 Pin 2 Pin 3
P3 RS-485-A RS-485-B GND

Sample RS-485 communication C program to send data through the RS-485 port.


CAN Bus

The GESBC-5200 supports one channel of CAN interface. The 3 pin 2.54mm spacing header P4 provides the CAN bus signals.

Connector Pin 1 Pin 2 Pin 3
P4 CANH CANL GND

A 120ohm termination resistor can be connected across the CANH and CANL signal lines via a 2-pin jumper JP4.


ZigBee Network

ZigBee is a wireless technology developed as an open global standard to address the unique needs of low-cost, low-power wireless M2M networks. Applications include wireless light switches, electrical meters with in-home-displays, traffic management systems, and other consumer and industrial equipment. The GESBC-5200 contains a socket to provide direct plug-in interface to XBee line of modules by Digi. The GESBC-5200 can be easily configured as ZigBee network gateway with the ZigBee plug-in module.

The XBee socket M1 signals are listed in the following table,

Pin # Name GPIO Pin Name Description
1 Vcc NA 3.3V power supply from GESBC-5200
2 Dout PC23 ZigBee module UART data out
3 Din PC22 ZigBee module UART data in
5 RSTn NA Low active reset for ZigBee module
10 GND NA
12 CTSn PC25 Clear-to-Send Flow Control
16 RTSn PC24 Request-to-Send Flow Control

The serial port connected to the XBee socket is FLEX COM3. The Linux device node of the XBee port is /dev/ttyS4 when using factory installed device tree.

Note: pins not listed in the above table have no connection on the GESBC-5200.


High Current Digital Output Ports

The GESBC-5200 has 8 high current drive digital outputs. The driver stage uses power MOSFET. The maximum voltage is 60VDC. The maximum continuous drain current @10VDC @32° is 1A.

The terminal block J21 provides the digital output connection.

Pin # on J21 GPIO From CPU Pin Device node
O1 PB11 /sys/class/gpio/PB11
O2 PB12 /sys/class/gpio/PB12
O3 PB13 /sys/class/gpio/PB13
O4 PB14 /sys/class/gpio/PB14
O5 PB15 /sys/class/gpio/PB15
O6 PB16 /sys/class/gpio/PB16
O7 PB17 /sys/class/gpio/PB17
O8 PB18 /sys/class/gpio/PB18

The output port can be controlled by sending a logic 1 or 0 to the corresponding device node. For example,

  echo "1" > /sys/class/gpio/pioB11/value

Please note a logic value 1 send to the output will turn on the output MOSFET and pull the output low.


Protected Digital Inputs

The GESBC-5200 has 6 protected digital inputs. The protected inputs can withstand over voltage up to 30V.

Pin # on J21 GPIO From CPU Pin Device node
I1 PB19 /sys/class/gpio/PB19
I2 PB20 /sys/class/gpio/PB20
I3 PB21 /sys/class/gpio/PB21
I4 PB22 /sys/class/gpio/PB22
I5 PB23 /sys/class/gpio/PB23
I6 PB24 /sys/class/gpio/PB24

The input value can be read directly from the device node, for example,

  cat /sys/class/gpio/pioB20/value


4 channel 12(14) bit analog-to-digital converter inputs

The GESBC-5200 has 4 channel single ended analog inputs connected to the on-chip A/D.

A/D Signal AN0 AN1 AN2 AN3 GND
Pin on J21 Pin A1 Pin A2 Pin A3 Pin A4 GND
CPU Pin # PD19 PD20 PD21 PD22 N/A


Digital GPIO (LVTTL)/IO Expansion J24

The GESBC-5200 has 14 LVTTL digital GPIO lines on J24 that also includes SPI and I2C bus. These GPIO ports are connected directly to the ARM processor. The maximum output current is 4mA.


Pin # Name Description
1 PB0 CPU GPIO group B line 0
2 PB1 CPU GPIO group B line 1
3 PB2 CPU GPIO group B line 2
4 PB3 CPU GPIO group B line 3
5 PB4 CPU GPIO group B line 4
6 PB5 CPU GPIO group B line 5
7 PB6 CPU GPIO group B line 6
8 PB7 CPU GPIO group B line 7
9 PA14 CPU GPIO group A line 14 (SPI0_SPCK)
10 PA15 CPU GPIO group A line 15 (SPI0_MOSI)
11 PA16 CPU GPIO group A line 16 (SPI0_MISO)
12 PA17 CPU GPIO group A line 17 (SPI0_CS0)
13 PD4 CPU GPIO group D line 4 TWD1
14 PD5 CPU GPIO group D line 5 TWCK1
15 GND
16 GND


FLASH memory Allocation Map From Factory

The GESBC-5200 has 128MB of NAND FLASH. The FLASH memory is "soft" partitioned into several regions as system storage. The storage map is shown in the following table.

0x0000_0000 ~ 0x0003_FFFF: Bootstrap code /dev/mtd0
0x0018_0000 ~ 0x001F_FFFF: Device tree binary /dev/mtd1
0x0020_0000 ~ 0x007F_FFFF: Linux kernel /dev/mtd2
0x0080_0000 ~ 0x0FFF_FFFF: Root File System /dev/mtd3


Update System Software

The Linux kernel and device tree binary can be updated in-system. The following example updates the Linux kernel image in the NAND FLASH,

 # flash_erase /dev/mtd2 0 0
 # nandwrite -p /dev/mtd2 zImage

Please note the example above assumes the kernel image size is less than 6MByte. The NAND FLASH must be erased before writing new kernel image.


Application Development

Cross Development

A Linux based host system can be used as the cross development system. To use a general purpose Linux desktop for cross development the ARM Linux cross compiler and commonly used development tools must be installed. The factory installed embedded file system is based on Buildroot 2015.02 using glibc 2.19, binutils 2.25. The cross compiler tool chain must have compatible library in order for the cross compiled program to run on the target system.

Below is a simple example cross compiling the hellowWorld application,

  arm-linux-gnueabi-gcc -o helloWorld helloWorld.c

With cross compiler tool chain and development tools properly installed the cross compiling process is no different than native compiling process except the compiler name would be the cross compiler name.

Below are two pre-built Linux virtual machine images (compatible with VMWare VMWorkstation VMPlayer) has ARM cross development tools installed and ready to use.


Additional Information

For customers that would like to build their own Linux kernel and/or file system. The following link provides information on build tools, kernel source, etc. Linux & Open Source related information for Microchip SAMA5D27 ARM processor