background image

67 

OSD3358-SM-RED 

– User Guide 

Rev. 1.0 9/19/2017 

Octavo Systems LLC 

Copyright 2017 

file specified in the boot configuration file uEnv.txt located in /boot/ folder communicates which 
peripherals are available and enabled, device drivers that need to be loaded, default pin mux 
settings after boot, etc. The device Tree Binary file is a compiled version of a .dts(Device Tree 
Source) file. A Device Tree Compiler (dtc) is necessary to convert the source file into the binary 
file. The device tree source files for the OSD335x devices and the OSD3358-SM-RED board 
are linked below. The best way to write custom device trees is by using the dtb-rebuilder and is 
also linked below. 

Useful resources: 

1.  OSD3358-SM-RED device tree files: 

https://github.com/octavosystems/OSD335x-

Device-Tree

  

2.  Device tree usage: 

http://elinux.org/Device_Tree_Usage

  

3.  Device tree reference: 

http://elinux.org/Device_Tree_Reference

  

4.  Device tree rebuilder: 

https://github.com/RobertCNelson/dtb-rebuilder

 

 

5.2.1

 

Device Tree Overlays 

Similar to the capes of Beaglebone Black, capes can be added to the OSD3358-SM-RED 
platform for enhanced functionality. The board is cape compatible with existing Bealgebone 
Black capes. So, capes for the Beaglebone Black can be used with the OSD3358-SM-RED 
board. The additional cape specific setup for Linux is done using Device Tree Overlays. 
BeagleBone Black compatible expansion capes also normally include an I2C EEPROM (must 
be on I2C2 in the address range of 0x54 to 0x57), that provides information such as the name of 
the cape, cape version, part number, and other relevant run-time information. The information 
required to load the correct Device Tree Overlay for a specific cape is read from the I2C 
EEPROM by the Cape Manager (

http://elinux.org/Capemgr

). See the BeagleBone Black SRM 

(

https://github.com/beagleboard/beaglebone-black/wiki/System-Reference-Manual

) “Cape 

Board Support” section for details. Device Tree Overlays can also be loaded (cape is enabled) 
or unloaded (cape is disabled) at run-

time through the cape manager’s /sys interface. 

Useful resources: 

1.  Cape Manager:  

http://elinux.org/Capemgr

 

2.  Using cape manager and device tree overlays: 

https://github.com/jadonk/validation-

scripts/tree/master/test-capemgr

  

3.  Beaglebone Black capes: 

http://elinux.org/Beagleboard:BeagleBone_Capes

  

4.  Device tree overlays tutorial: 

https://learn.adafruit.com/introduction-to-the-beaglebone-

black-device-tree/exporting-and-unexporting-an-overlay

 

 

5.3

 

Onboard sensor interfacing 

As described in section 3 & 4, there are several sensors on OSD3358-SM-RED board. The 
board is equipped with a software library and examples to interface with the sensors. The library 
package ‘Redperipherallib’ is pre-installed on Linux and allows commands line access to these 

Summary of Contents for OSD3358-SM-RED

Page 1: ...relevant resources for support and development are given below OSD3358 SM RED board design files https octavosystems com files osd3358 sm red eagle files Sign up for OSD3358 SM RED latest software up...

Page 2: ...2 OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 Revision History Revision Details Date Author Initial draft 09 19 2017 Neeraj Dantu...

Page 3: ...2 3 1 Specification 22 3 2 Processor U1 25 3 3 PC USB interface X1 26 3 4 Serial debug interface J3 27 3 5 EMMC U7 28 3 6 Cape Headers J5 J6 29 3 7 JTAG J4 30 3 8 Micro SD card slot X3 31 3 9 HDMI int...

Page 4: ...15 Ethernet 58 4 16 HDMI interface 59 4 17 9 Axis IMU 60 4 18 Temperature sensor hub 61 4 19 Barometer 61 4 20 Trusted Platform Module TPM 62 4 21 EEPROM 63 4 22 Header descriptions 63 4 23 On board...

Page 5: ...5 OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 9 Reference Documents 76...

Page 6: ...ws the OSD3358 SM RED and its power inputs The board can be powered through any of three inputs 1 Micro USB cable connected to the micro USB port 2 5V AC adapter connected to the barrel jack 3 Single...

Page 7: ...power up sequence of the board when powered via USB AC Adapter or battery inputs 1 Connect your preferred power source a USB i Connect the micro USB side of the USB cable to the micro USB port X1 ii C...

Page 8: ...in the 5V AC adapter with 2 5 mm x 5 5 mm barrel into the power connector X2 Figure 3 Powering the RED board using an AC DC adapter c Battery input terminals i Connect the battery input terminals to...

Page 9: ...cated below indicating Linux is booting Figure 6 RED board boot up LEDs D4 D7 turn ON NOTE Notes on connecting the PMIC_TS input of the SiP can be found in Battery pack temperature monitoring section...

Page 10: ...will be needed 1 5V AC adapter 2 HDMI DVI D monitor 3 Micro HDMI to HDMI cable and or HDMI to DVI D adapter 4 Wired wireless USB keyboard and mouse 5 Ethernet cable or WiFi USB adapter connected to a...

Page 11: ...oard and mouse plugged in to RED board 4 If internet connectivity is required a a WiFi USB adapter can be plugged into one of the available USB ports on X4 or X5 connector A list of compatible adapter...

Page 12: ...5V AC adapter into the power connector X2 Figure 10 AC DC adapter plugged in to RED board 6 The board will go through the default boot up process 7 After the board boots up the monitor screen should s...

Page 13: ...OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 8 Click on the Start System Tools Q Terminal to open up a command terminal Figure 12 Shell command terminal on booted desk...

Page 14: ...vided in the box can be used to connect the RED board to a computer laptop Unlike the standalone mode this setup does not require additional hardware The following steps describe the procedure to powe...

Page 15: ...SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 3 Wait for the board to show up as a mass storage device on the computer laptop Figure 14 OSD3358 SM RED USB mass storage filesys...

Page 16: ...gure 15 OSD3358 SM RED home webpage indicating a connection to the board 5 Access the cloud9 IDE through the url http 192 168 7 2 3000 Cloud9 IDE is an opensource web based development environment sup...

Page 17: ...serial port A USB UART serial adapter can also be used for host devices with a USB port A terminal program such as Putty is required for communication The following steps describe the procedure to acc...

Page 18: ...ight 2017 2 Connect the USB side of the adapter to the computer laptop Figure 18 UART USB adapter plugged in to the computer 3 Check which COM port of the computer laptop the adapter is connected to u...

Page 19: ...C Copyright 2017 4 Open a serial console opensource applications like Putty come with one Select the serial communication option and specify the port and speed of the protocol as shown below and click...

Page 20: ...s open connect the board to a power supply through one of the three power inputs of the board The boot messages should begin to scroll on the console After boot the console will ask for secure shell l...

Page 21: ...icator for the kernel D6 Activity indicator for MMC0 interface SD card D7 Heartbeat indicator from Linux kernel 2 5 Powering down power cycling Once the system has completely booted the board can be s...

Page 22: ...storage and resistors capacitors and inductors into a single 21mm x 21mm design in ready package The AM335x is a low cost low power ARM Cortex A8 based processor that is widely used in the industry a...

Page 23: ...r cycle the board power the board ON OFF Reset button S1 Function Holds the processor in reset Boot button S3 Function Used for SD card boot User LEDs D4 D7 Number 4 eMMC U7 Part number SDIN8DE2 16G M...

Page 24: ...e diode accuracy 0 75 C Local sensor accuracy 0 35 C Supply voltage 3 3V I2C bus I2C0 I2C address 0x48 Barometer U22 Part number BMP280 Pressure range 300 1100 hPa Relative accuracy 0 16 Pa Supply vol...

Page 25: ...nical Reference Manual http www ti com lit ds sprs717j sprs717j pdf TPS65217C Datasheet http www ti com lit ds symlink tps65217 pdf Powering AM335x with TPS65217x http www ti com lit ug slvu551i slvu5...

Page 26: ...programs through a secure shell command prompt In addition the Beagleboard compatible Linux image allows a web browser Chrome or Firefox to browse to the web server running on the board and access Cl...

Page 27: ...ort of the processor is exposed as a 1x6 header J3 shown below This interface serves as a debug port that can be accessed via USB port of a laptop computer using a USB to Serial interface adapter The...

Page 28: ...B embedded Multi Media Card eMMC U7 is connected to 8 bit wide MMC1 port of the processor shown below It contains the Linux image that the board will boot from by default The board can be made to boot...

Page 29: ...interfaces to the processor exposing a wide range of peripherals of the processor They are compatible with Beaglebone Black headers P8 P9 http elinux org Beagleboard Cape_Expansion_Headers meaning cap...

Page 30: ...the JTAG footprint it is recommended to use the emulators and JTAG header parts listed below The JTAG footprint comes with solder on the pads to make it easy to solder the JTAG connector JTAG HEADER 1...

Page 31: ...t X3 shown below interfaces the processor with a micro SD card The slot is connected to 4 bit wide MMC0 interface of the processor A micro SD card inserted in the slot can be used as a storage device...

Page 32: ...are supported via the preloaded software image 1280 x 1024 1440 x 900 1024 x 768 1280 x 720 HDMI Framer TDA199988 Datasheet https media digikey com pdf Data 20Sheets NXP 20PDFs TDA19988_DS_21_july_20...

Page 33: ...is capable of 10 100 1000 Mbps speeds and is connected to the RGMII port of the processor The Cloud9 IDE web server and the secure shell command prompt can be accessed by connecting an ethernet cable...

Page 34: ...connect USB storage devices and other USB gadgets such as WiFi adapters and wireless wired keyboard and mouse The 4 ports can supply a combined current of 500mA to the devices that are connected to t...

Page 35: ...low The MPU 9250 U23 sits on the I2C0 line of the processor It has a 3 Axis gyroscope a 3 Axis accelerometer and a 3 Axis magnetometer inside and functions as a 9 Axis motion tracking device More info...

Page 36: ...lf More information on how to use it can be found in Section 5 3 Figure 33 Temperature sensor on board Temperature sensor TMP468 datasheet http www ti com lit ds symlink tmp468 pdf 3 14 Pressure senso...

Page 37: ...ported by the TPM include secure cryptographic key generation secure boot authentication and random number generation The TPM sits on I2C0 interface of the processor While the board does not come with...

Page 38: ...d to communicate with the Flash is multiplexed with the I2C1 and UART2 interfaces on header J6 When using the NOR Flash the 2 pins of the jumper J11 should be shorted together or the FLASH_EN signal c...

Page 39: ...of OSD3358 SM RED The power system of the platform is comprised of 1 AC USB battery inputs 2 protection circuit on AC input 3 The PMIC TPS65217C and LDO TL5209 inside the OSD3358 512M BSM The PMIC is...

Page 40: ...ows the voltage output levels of each of the voltage sources which can be measured on the respective test point Each of the output voltages can be changed dynamically using I2C commands when the PMIC...

Page 41: ...eup event is detected and is connected to EXT_WAKEUP pin of the processor 3 The PMIC has an interrupt pin PMIC _NINT to signal an event or fault condition to the processor via EXTINT pin The pin is re...

Page 42: ...input protection circuit shown in Figure 39 To power the board using a 1S Li Po battery the following hook up is required Table 3 OSD3358 SM RED battery connections Pin Function Hook up VIN_BAT TP5 Ba...

Page 43: ...ltage requirements of the TL5209 LDO that supplies SYS_VDD1_3P3V of the OSD335x SM the voltage of the battery that will power the board needs to be greater than 3 7 V If the voltage of the battery fal...

Page 44: ...PGOOD and PWRONRSTN operate on 1 8V logic WARMRSTN is 3 3V logic input Therefore an open drain buffer U3 is used to drive the WARMRSTN input WARMRSTN can also be pulled low using the reset switch S1 A...

Page 45: ...heir default values Rails not controlled by the sequencer are shut down immediately After 1 sec of RESET state the board powers up again If the PMIC_IN_PB_IN pin is kept low for an extended amount of...

Page 46: ...et requires that the voltage difference between the power rails VDDS 1 8V and VDDSHVx 1 6 3 3V of the AM335x processor be less than 2V during the entire power down sequence A detailed description of t...

Page 47: ...V since this power output will come up as part of the boot sequence 4 6 Clock inputs to the processor OSD335x SM has 2 clock inputs OSC0 and OSC1 4 6 1 OSC0 This input is the main clock source for the...

Page 48: ...M335x TRM http www ti com lit ug spruh73p spruh73p pdf AM335x datasheet http www ti com lit ds sprs717j sprs717j pdf and Reference Design Clock circuitry article https octavosystems com app_notes osd3...

Page 49: ...ction SYSBOOT 15 0 0x401C SYSBOOT 15 14 01b Input crystal frequency of OSC0 input is 24MHz SYSBOOT 13 12 00b Reserved SYSBOOT 11 6 000000b Don t care for ROM code for the OSD3358 SM RED boot modes SYS...

Page 50: ...50 OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 Figure 47 OSD3358 SM RED boot configuration...

Page 51: ...rface Figure 48 shows UART0 interface of OSD3358 512M BSM connected to header J3 on the board through a dual buffer This port can be used for debug by monitoring boot messages the processor sends thro...

Page 52: ...needed to boot Linux are stored in here The ROM code reads the second stage bootloader in the eMMC and passes control to it The ROM only supports 4 bit mode But after initial boot the eMMC can be int...

Page 53: ...sh the on board eMMC or as a normal storage device Unlike MMC1 this is a 4 bit interface which can cause it to be slower than the eMMC interface Similar to the MMC1 interface the SD card interface als...

Page 54: ...ystems LLC Copyright 2017 4 11 JTAG Figure 51 OSD3358 SM RED JTAG circuit A JTAG header footprint J4 is provided on the board to facilitate software development and debug using JTAG emulators More inf...

Page 55: ...lter the noise on the reference voltages Of the total 8 analog inputs AIN0 AIN7 seven AIN0 AIN6 are brought out to expansion headers on the board and can be used AIN7 is connected to PMIC_MUX_OUT to m...

Page 56: ...gure 53 shows USB client port X1 connected to USB0 interface of the processor in the OSD3358 SM RED Board schematic As described in Section 2 this port can be used to power the board through a laptop...

Page 57: ...1 interface of the processor into 4 independent USB connection ports each of which have ESD protection and can be used to connect USB peripherals simultaneously The hub chip has UART and I2C interface...

Page 58: ...of 4 data lines for transmission and reception along with clock and control lines for each MDIO interface is used by the processor for instruction configuration of the PHY A 25MHz crystal oscillator...

Page 59: ...e able to drive an HDMI monitor with on board TDA1998 HDMI framer U10 and micro HDMI connector X6 The framer converts the processor 16 bit LCD interface to drive HDMI monitors The framer is powered by...

Page 60: ...I2C0 interface This sensor sits on the horizontal axis of the board that cuts the board in half The chip is located at coordinates 3485 mil 1075 mil from the bottom left of the board oriented in the...

Page 61: ...hub The hub is powered by SYS_VDD1_3P3V and can be used to monitor thermal behavior across multiple locations of the system More information setting up remote measurements can be found in the temp se...

Page 62: ...tform Module TPM is present on I2C0 interface of the processor It is powered by SYS_VDD1_3P3V and can be used to develop security applications for the processor Coupled with the NOR Flash device on SP...

Page 63: ...scription Size bytes Contents Header Header Value designates section is valid 9 0xAA 0x55 0x33 0xEE Board Name Board name 8 Name in ASCII A335BNLT The device specific information and its format can be...

Page 64: ...s header P8 of the Beaglebone Black J6 Same pin map as header P9 of the Beaglebone Black J7 Populating this jumper disables the 12MHz external HDMI clock from Y3 J8 Function I2C communication port for...

Page 65: ...P3 VDD_MPU TP4 VDDS_PLL TP5 VIN_BAT VIN_BAT PMIC Battery voltage input TP6 BAT_SENSE BAT_SENSE PMIC Battery sense input TP7 TEMP_SENSE TEMP_SENSE PMIC Temperature sense input TP8 GND TP9 TPM_GPIO1 TP1...

Page 66: ...ntrol to the next stage bootloader 2 MLO This stage sets up pin muxing initializes the clocks and memory and loads the next stage bootloader 3 U boot This is the primary Linux bootloader It looks for...

Page 67: ...onal cape specific setup for Linux is done using Device Tree Overlays BeagleBone Black compatible expansion capes also normally include an I2C EEPROM must be on I2C2 in the address range of 0x54 to 0x...

Page 68: ...w to use the peripherals onboard libraries Contains libraries necessary to exercise the peripherals onboard o bmp280 Contains functions and definitions to interface with the pressure sensor o gpio Con...

Page 69: ...ions d use default matrix size s size specify matrix size h Display help message Result 2 rc_calibrate_gyro Function This command performs calibration of the gyro sensor in the IMU Options None Result...

Page 70: ...for the next 15 seconds Rotate the cape around in the air through as many orientations as possible to collect sufficient data for calibration Press ENTER to continue or anything else to quit spin spi...

Page 71: ...the ADC module Options None Results 7 rc_test_barometer Function This command runs a test on the barometer and returns the temperature pressure altitude and filtered altitude sensor values Options No...

Page 72: ...peripheral library Options None Results 10 rc_test_tmp Function This command tests the temperature sensor and returns the temperature value on channel 8 Options None Results root beaglebone rc_test_i...

Page 73: ...folder The Makefile will compile a single shared object robotics_cape so and install it to usr lib It will also move all the header files to usr include To use the so it is enough to put in include r...

Page 74: ...74 OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 7 Mechanicals Figure 64 show the dimensions of the board Figure 64 Dimensions of RED board...

Page 75: ...75 OSD3358 SM RED User Guide Rev 1 0 9 19 2017 Octavo Systems LLC Copyright 2017 Figure 65 RED board top view Figure 66 RED board bottom view...

Page 76: ...335x sm datasheet 2 AM335x datasheet http www ti com lit ds sprs717j sprs717j pdf 3 AM335x Technical Reference Manual http www ti com lit ds sprs717j sprs717j pdf 4 TPS65217C Datasheet http www ti com...

Page 77: ...eference design lesson 1 power circuitry part 4 clamping circuit 23 Reference Design Tutorial series Clock circuitry article https octavosystems com app_notes osd335x design tutorial bare minimum boot...

Reviews: