UP Core carrier board (low speed I/O)

From UpWiki
Revision as of 08:07, 5 August 2020 by Upwikiadmin (talk | contribs) (EEPROM check)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Warning Warning: POWER OFF the UPCore board BEFORE plugging/unplugging a carrier board.

UPC-CRST02 Hardware Specifications

CPLD Max10 for HAT 40 pin setting
RS232 1x USB to RS232
Internal I/O ports 1x jumper for RS232/RS422/RS485
1x Power LED (bottom side)
Edge I/O ports 1x RS-232/422/485 connector
1x 12-24V power input
1x horizontal 30 pin wafer box header for HAT 40 I/O pins at back side
1x horizontal 20 pin wafer box header for FPGA MAX10
Operating Temperature 0 ~ 60ºC
Operating humidity 10%∼80%RH non-condensing
Form factor 56.5mm x 66mm
Certificate CE/FCC Class A

Pin Map (DIO1 30-pin header)

Pin Description Linux GPIO
02 I2C0_SOC_SCL 1
03 I2C1_SOC_SDA 2
04 I2C1_SOC_SCL 3
05 GPIO22/SPI_CS0N 8
06 GPIO23/SPI_CS1N 7
10 GPIO16/UART1_TX 14
11 GPIO17/UART1_RX 15
12 GPIO25/PWM0 12
13 GPIO13/PWM1 13
14 GPIO14/I2S2_FRM 19
15 GPIO18/I2S2_CLK 18
16 GPIO27/I2S2_DATAIN 20
18 ISH_GPIO0 4
19 ISH_GPIO2 5
20 ISH_GPIO3 6
21 ISH_GPIO4 17
23 3.3V
24 3.3V
25 GND  
26 GND  
27 GND  
28 5V  
29 5V  
30 GND  

Quick tests

Board detection in BIOS

Run your UPCore board with your UP-CRST01 carrier board attached. Including USB keyboard and HDMI display. Press Esc key and enter to the BIOS settings. There, you will see something like:

Carrier board Vendor: AAEON
Carrier board Product: UP-CRST02 rev A0.2_0_0

Board detection in Linux

Open a terminal windows for your Linux distro (https://wiki.up-community.org/Software#Operating_Systems).

Check the dmesg log looking for CRST01 board:

dmesg | grep CRST02

You will see something like that:

[    0.000000] ACPI: SSDT 0x000000005B87FFD0 000654 (v01 AAEON  UPCRST02 00000000 INTL 20160831)

FPGA check

You can check the FPGA chip registers from your Linux machine:

cat /sys/kernel/debug/regmap/AANT0F02\:00/registers 

You will see the register values:

10: 0301
11: 3042
20: 4300
40: ffff
41: 003f

EEPROM check

Load EEPROM module to get access via I2C:

modprobe eeprom

Check your EEPROM access in the defined I2C device:

ls /sys/bus/i2c/devices/8-0050/
driver  eeprom  modalias  name  power  subsystem  uevent

LEDs check

Access to the LEDs directories:

sudo -i
cd /sys/class/leds

Turn the green UPC-CRST02 LED on:

echo 255 > upboard\:green\:/brightness

Turn the green UPC-CRST02 LED off:

echo 0 > upboard\:green\:/brightness

DB9 port check

For a quick test for the serial ports, you will need to open your port using picocom in another console:

sudo apt-get install picocom
sudo picocom /dev/ttyUSB0

  • RS-232:

Connect the pin JP1 in 3-5 and 2-4 and a wire between 2 and 3 pins in the DB9 port.

Send a command to receive in the port console:

sudo echo "Hello World" > /dev/ttyUSB0
  • RS-422:

Connect the pin JP1 in 3-5 and 4-6 and a wire between 1 and 4 pins in the DB9 port.

Send your command to receive in the port console:

sudo echo "Hello World" > /dev/ttyUSB0
  • RS-485:

NOTICE: You will need a RS-485 converter for that.

Connect the pin JP1 in 1-3 and 2-4 and and your 485 converter to 1 and 2 pins in the DB9 port.

Send your command to receive in the port console:

sudo echo "Hello World" > /dev/ttyUSB0