Page tree
Skip to end of metadata
Go to start of metadata

Introduction

This page will show you step-by-step how to interface a ST TESEO-LIV3F mikroBUS Add-On Board designed by Matt Mielke to a BeagleBone Black/Green or PocketBeagle.

Hardware Requirements

Compatible Base Boards

Adapter Boards

Software Requirements

Install BeagleBoard.org Latest IoT image

Today the latest version is: 2018-10-07 (these can be updated, so always check for the latest version)

Stretch IoT Image:
wget https://debian.beagleboard.org/images/bone-debian-9.5-iot-armhf-2018-10-07-4gb.img.xz

sha256sum: 52363c654b7a1187656b08c5686af7564c956d6c60c7df5bf4af098f7df395e0

Insert microSD into pc adapter and check device node name (in our case /dev/sdd):

voodoo@hades:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sde      8:64   1   3.7G  0 disk 
└─sde1   8:65   1   3.3G  0 part 
sda      8:0    0 465.8G  0 disk 
└─sda1   8:1    0 465.8G  0 part /

Download the *.img.xz and write to microSD card via etcher.io:

voodoo@hades:~$ wget https://debian.beagleboard.org/images/bone-debian-9.5-iot-armhf-2018-10-07-4gb.img.xz
 
voodoo@hades:~$ sudo /opt/etcher-cli/etcher -d /dev/sde bone-debian-9.5-iot-armhf-2018-10-07-4gb.img.xz
? This will erase the selected drive. Are you sure? Yes
Flashing: 17.08 MB/s [========================] 100% eta 0s    
Validating: 0 B/s [========================] 100% eta 0s      
 
Checksums:
  - /dev/sde: bf47c6c412286c0bc799a651f2ef3d1162eed3312afb1692c2806fa06df33ad81a38dc82502a69bea7badd1e1a5f629eaa284227a3d7169d9ddc83f20856b36d


Utilize g_serial on usb mini connector

Since we will be using an adapter plugged into the headers, accessing the debug he J1 serial debug header on the baseboard, you can use the pre-loaded g_serial module via: (note, no boot logs will be shown)

gtkterm -p /dev/ttyACM0 -s 115200 &

Install and Enable TESEO-LIV3F Overlay

Install updated version of bb-cape-overlays package.

sudo apt update
sudo apt install --only-upgrade bb-cape-overlays

Enabled Overlay

/boot/uEnv.txt
#BeagleBone + mikroBUS Expansion Board
#Spot 2: using /dev/ttyS1
uboot_overlay_addr0=/lib/firmware/BB-mBC2-UART1-TESEO-LIV3F.dtbo

#Spot 3: using /dev/ttyS1
uboot_overlay_addr0=/lib/firmware/BB-mBC3-UART1-TESEO-LIV3F.dtbo

#Spot 4: using /dev/ttyS4
uboot_overlay_addr0=/lib/firmware/BB-mBC4-UART4-TESEO-LIV3F.dtbo

#PocketBeagle: using /dev/ttyS1
uboot_overlay_addr0=/lib/firmware/PB-UART4-TESEO-LIV3F.dtbo

Verify TESEO is running:

debian@beaglebone:~$ tio /dev/ttyS4 -b9600
$GPRMC,203054.000,A,4806.58821,N,09611.76727,W,0.0,0.0,230119,,,D*71
$GPGGA,203054.000,4806.58821,N,09611.76727,W,2,12,0.8,353.71,M,-26.4,M,,*58
$GPVTG,0.0,T,,M,0.0,N,0.0,K,D*08
$GNGSA,A,3,31,16,26,03,22,23,29,09,,,,,1.4,0.8,1.1*20
$GNGSA,A,3,71,73,72,74,,,,,,,,,1.4,0.8,1.1*25
$GPGSV,3,1,12,23,65,295,40,16,65,151,42,26,62,079,32,03,36,217,25*7D
$GPGSV,3,2,12,09,33,304,29,31,27,072,33,22,21,200,18,29,10,029,25*72
$GPGSV,3,3,12,07,08,262,24,27,06,148,,46,00,000,29,48,24,225,32*7C
$GLGSV,2,1,07,73,76,284,36,71,73,233,30,72,37,322,30,70,30,168,*66
$GLGSV,2,2,07,74,30,242,33,81,12,020,16,82,11,068,,,,,*5D
$GPGLL,4806.58821,N,09611.76727,W,203054.000,A,D*4E
$PSTMCPU,64.26,-1,49*49
$GPRMC,203055.000,A,4806.58821,N,09611.76727,W,0.0,0.0,230119,,,D*70
$GPGGA,203055.000,4806.58821,N,09611.76727,W,2,12,0.8,353.71,M,-26.4,M,,*59
$GPVTG,0.0,T,,M,0.0,N,0.0,K,D*08
$GNGSA,A,3,31,16,26,03,22,23,29,09,,,,,1.4,0.8,1.1*20
$GNGSA,A,3,71,73,72,74,,,,,,,,,1.4,0.8,1.1*25
$GPGSV,3,1,12,23,65,295,40,16,65,151,42,26,62,079,33,03,36,217,26*7F
$GPGSV,3,2,12,09,33,304,29,31,27,072,33,22,21,200,17,29,10,029,26*7E
$GPGSV,3,3,12,07,08,262,24,27,06,148,,46,00,000,29,48,24,225,32*7C
$GLGSV,2,1,07,73,76,284,36,71,73,233,30,72,37,322,30,70,30,168,*66
$GLGSV,2,2,07,74,30,242,33,81,12,020,16,82,11,068,,,,,*5D
$GPGLL,4806.58821,N,09611.76727,W,203055.000,A,D*4F
$PSTMCPU,66.17,-1,49*49

Check that pps loaded?

debian@beaglebone:~$ dmesg | grep pps
[    0.453512] pps_core: LinuxPPS API ver. 1 registered
[    0.453519] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[   59.282816] pps pps0: new PPS source pps.-1
[   59.282941] pps pps0: Registered IRQ 75 as PPS source

Run ppstest:

debian@beaglebone:~$ sudo ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1548275631.672262731, sequence: 3909 - clear  0.000000000, sequence: 0
source 0 - assert 1548275632.672283981, sequence: 3910 - clear  0.000000000, sequence: 0
source 0 - assert 1548275633.672347814, sequence: 3911 - clear  0.000000000, sequence: 0
source 0 - assert 1548275634.672390398, sequence: 3912 - clear  0.000000000, sequence: 0
source 0 - assert 1548275635.672433523, sequence: 3913 - clear  0.000000000, sequence: 0

Comments

Any questions or comments please go to our TechForum: TechForum

  • No labels