ARTIK 030 Mesh Networking Kit User Guide Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide TABLE OF CONTENTS Version History ...................................................................................................................................................................4 Introduction ........................................................................................................................................................................5 System Block Diagram ....................................................................................................................................................... 7 Main Board ..........................................................................................................................................................................8 Main Board Connectors ...............................................................................................................................................8 Radio Board Connectors ......................................................................................................................................9 Breakout Connectors .......................................................................................................................................... 10 Expansion Header ................................................................................................................................................ 11 Debug Connector ............................................................................................................................................... 12 Simplicity Connector .......................................................................................................................................... 13 ARTIK 030 Main Board Peripherals............................................................................................................................ 14 Push Buttons and LEDs ....................................................................................................................................... 14 Memory LCD-TFT Display ................................................................................................................................... 14 Relative Humidity and Temperature Sensor ...................................................................................................... 15 ARTIK 030 Radio Board .....................................................................................................................................................17 ARTIK 030 Module ......................................................................................................................................................17 Serial Flash...................................................................................................................................................................17 ARTIK 030 Debug Adapter Board .................................................................................................................................... 19 Power-up and Reset ......................................................................................................................................................... 21 Main Board Controller Communication .................................................................................................................... 21 Main Board Controller Power..................................................................................................................................... 22 ARTIK 030 Module Reset ........................................................................................................................................... 22 Battery Holder ............................................................................................................................................................ 22 Virtual COM Port...............................................................................................................................................................23 Advanced Energy Monitor................................................................................................................................................24 Theory Of Operation ..................................................................................................................................................24 Accuracy and Performance .......................................................................................................................................25 Usage ..........................................................................................................................................................................25 ARTIK 030 Mesh Networking Kit Debug..........................................................................................................................26 Debug Modes .............................................................................................................................................................26 Debugging During Battery Operation .......................................................................................................................26 Expansion Board ............................................................................................................................................................... 27 Accelerometer............................................................................................................................................................ 27 Push Buttons and LEDs .............................................................................................................................................. 27 Joystick .......................................................................................................................................................................28 2 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide LIST OF FIGURES Figure 1. ARTIK 030 Mesh Networking Kit Components...................................................................................................6 Figure 2. ARTIK 030 Mesh Networking Kit System Block Diagram .................................................................................. 7 Figure 3. ARTIK 030 Main Board........................................................................................................................................8 Figure 4. Connector Placement on the Main Board..........................................................................................................9 Figure 5. ARTIK 030 Module 128x128 Pixel Memory LCD ............................................................................................... 15 Figure 6. Relative Humidity and Temperature Sensor .................................................................................................... 16 Figure 7. ARTIK 030 Module Flash Pin Connections....................................................................................................... 18 Figure 8. Mini Simplicity Connector ................................................................................................................................ 19 Figure 9. Power Switch Options ...................................................................................................................................... 21 Figure 10. Virtual COM Port Interface..............................................................................................................................23 Figure 11. Advanced Energy Monitor ...............................................................................................................................24 Figure 12. Available Sensors............................................................................................................................................. 27 3 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide VERSION HISTORY 053ss Revision Date Description V1.0 October 12, 2016 Initial release of document. V1.1 January 25, 2018 Updated sections to include all boards and all connectors. Convert document to new template. Rewrite section accordingly for technical accuracy. Reorganized document structure to enhance information flow. 4 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide INTRODUCTION The ARTIK 030 Mesh Networking Kit provides a complete software development platform for the ARTIK 030 module. This document provides an overview of the kit components and associated user interfaces. The ARTIK 030 Mesh Networking Kit contains the components shown in Table 1. Table 1. ARTIK 030 Mesh Networking Kit Contents Number of Components Component Type 3 ARTIK 030 Main Board 3 ARTIK 030 Radio Board (with 8 dBm ARTIK 030 module) 1 Debug Adapter Board 3 USB Type A <> USB Mini-B cable 3 Battery holder The Main Board features an on-board J-Link debugger, an Advanced Energy Monitor for real-time current and voltage monitoring, a virtual COM port interface, and access to the Packet Trace Interface (PTI). The ARTIK 030 module is based on Silicon Labs(R) Wireless Gecko EFR32MG SoC and is using Silicon Labs(R) Simplicity StudioTM development tools. For more information, refer to the section entitled Main Board. The 8dBm Radio Board plugs directly into the Main Board. The ARTIK 030 Radio Board features the ARTIK 030 Module and the RF interface. All debug functionality can also be used towards an external target instead of the included Radio Board. For more information, refer to the section entitled Radio Board. The Debug Adapter Board plugs directly into both the 20-pin Debug Connector and the 20-pin Simplicity Connector on the Main Board. The Debug Adapter board combines selected functionality from the Debug and Simplicity connectors into three smaller footprint 10-pin connectors, which are more suitable for space-constrained designs. For more information, refer to the section entitled Debug Adapter Board. The kit also contains USB Type A to USB mini-B cables for connecting a host computer to the Main Board via the miniUSB port. The battery holders included in the kit are used to store two AA batteries when using the kit in a battery powered environment. For more information, refer to the section entitled Battery Holder. Figure 1 provides a list of components in the ARTIK 030 Mesh Networking Kit. 5 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Main Board Radio Board ARTIK 030 Module Main Board Controller Expansion Header Debug Interface Connectors (Debug Adapter Board not shown) Figure 1. ARTIK 030 Mesh Networking Kit Components The ARTIK 030 Mesh Networking Kit contains the following features. Table 2. ARTIK 030 Mesh Networking Kit Features Main Board Radio Board Debug Adapter Board Software Ethernet and USB connectivity ARTIK 030 Radio Board with 256kB Flash and 32kB RAM. Contains 10-pin ARM Cortex CPU connector, 10-pin iSA3 connector, and 10-pin MiniSimplicity connector for use in space-constrained designs. Simplicity Studio Advanced Energy Monitor Integrated high performance chip antenna Virtual COM Port Simplicity Studio Energy Profiler Network Analyzer Packet Trace Interface support SEGGER J-Link on-board debugger Debug Multiplexer supporting external hardware as well as Radio Board Relative Humidity and Temperature sensor Ultra low power 128x128 pixel Memory LCD User LEDs/Pushbuttons 20-pin 2.54 mm header for expansion boards Breakout pads for direct access to all radio Power sources include USB and CR2032 coin cell holder 6 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide SYSTEM BLOCK DIAGRAM Figure 2 shows the system-level block diagram of the ARTIK 030 Mesh Networking Kit. Figure 2. ARTIK 030 Mesh Networking Kit System Block Diagram In Figure 2, the ARTIK 030 module, the 8 MB serial Flash device, and the PCB Antenna blocks are located on the Radio board. All other components are located on the Main board. The Expansion header (EXP Header) in the figure is located on the Main board and is used to connect to the optional Expansion board (not included). The 20-pin Debug and Simplicity connectors are used for connecting to the Debug Adapter Board (included in the kit). 7 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide MAIN BOARD Figure 3 shows the picture of the ARTIK 030 Main Board and its associated components. Figure 3. ARTIK 030 Main Board Main Board Connectors Figure 4 shows the placement of the various connectors that are present on the Main Board. Each of these connectors is described in the following subsections. 8 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Breakout Pads Breakout Pads Figure 4. Connector Placement on the Main Board Radio Board Connectors The Radio board interfaces to the Main board via two 40-pin connectors. These signals are used throughout the Main board. A subset of these signals are also routed to the two 32-pin Breakout connectors as shown Table 4. The pinout for these connectors is shown in Table 3. Table 3. P200 and P201 Radio Board Connectors P200 Radio Connector Pinout Pin Name (Odd numbers) Odd Pin Row Even Pin Row Pin Name (Even numbers) P201 Radio Connector Pinout Pin Name (Odd numbers) Odd Pin Row Even Pin Row Pin Name (Even numbers) 3V3 1 2 GND GND 1 2 VCMU_IN WSTK_P36 3 4 WSTK_P37 WSTK_P0 3 4 WSTK_P1 WSTK_P38 5 6 WSTK_P39 WSTK_P2 5 6 WSTK_P3 WSTK_P40 7 8 WSTK_P41 WSTK_P4 7 8 WSTK_P5 WSTK_P42 9 10 WSTK_P43 WSTK_P6 9 10 WSTK_P7 WSTK_P44 11 12 WSTK_P45 WSTK_P8 11 12 WSTK_P9 WSTK_F0 13 14 WSTK_F1 WSTK_P10 13 14 WSTK_P11 WSTK_F2 15 16 WSTK_F3 WSTK_P12 15 16 WSTK_P13 WSTK_F4 17 18 WSTK_F5 WSTK_P14 17 18 WSTK_P15 WSTK_F6 19 20 WSTK_F7 WSTK_P16 19 20 WSTK_P17 WSTK_F8 21 22 WSTK_F9 WSTK_P18 21 22 WSTK_P19 WSTK_F10 23 24 WSTK_F11 WSTK_P20 23 24 WSTK_P21 WSTK_F12 25 26 WSTK_F13 WSTK_P22 25 26 WSTK_P23 WSTK_F14 27 28 WSTK_F15 WSTK_P24 27 28 WSTK_P25 WSTK_F16 29 30 WSTK_F17 WSTK_P26 29 30 WSTK_P27 WSTK_F18 31 32 WSTK_F19 WSTK_P28 31 32 WSTK_P29 9 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 3. P200 and P201 Radio Board Connectors (Continued) P200 Radio Connector Pinout Pin Name (Odd numbers) Odd Pin Row Pin Name (Even numbers) Even Pin Row P201 Radio Connector Pinout Pin Name (Odd numbers) Odd Pin Row Even Pin Row Pin Name (Even numbers) WSTK_F20 33 34 WSTK_F21 WSTK_P30 33 34 WSTK_P31 USB_VBUS 35 36 USB_VREG WSTK_P32 35 36 WSTK_P33 5V 37 38 GND WSTK_P34 37 38 WSTK_P35 BOARD_ID_SCL 39 40 BOARD_ID_SDA GND 39 40 N/C Breakout Connectors Most of the ARTIK 030 module pins are routed from the radio board to breakout connectors at the top and bottom edges of the Main Board. The J101 connector is located at the bottom of the board next to the power slider switch. The J102 connector is located on the top of the board next to the Ethernet port. A 2.54 mm pitch pin header can be soldered on for easy access to the pins. Table 4 shows how the pins of the ARTIK 030 module are mapped onto the pin numbers printed on the breakout connectors. To see the available functions on each, please refer to the ARTIK 030 Module Data Sheet. Table 4. J101 and J102 Breakout Connectors Pin Name (Odd numbers) J101 Breakout Connector Pinout Odd Pin Row Even Pin Row Pin Name (Even numbers) Pin Name (Odd numbers) J102 Breakout Connector Pinout Odd Pin Row Even Pin Row Pin Name (Even numbers) VCMU 1 2 VMCU 5V 1 2 5V GND 3 4 GND GND 3 4 GND VCOM_CTS/PA2/P0 5 6 P1/PC6/FLASH_MOSI/ DISP_SI DBG_TCK_SWCLK/ PF0/P24 5 6 P25/NC VCOM_RTS/PA3/P2 7 8 P3/PC7/FLASH_MISO DBG_TMS_SWDIO/ PF1/P26 7 8 P27/NC PD10/P4 9 10 P5/PC8/FLASH_SCLK/ DISP_SCLK DBG_TDO_SWO/ PF2/P28 9 10 P29/NC PD11/P6 11 12 P7/PC9 LED0/PF4/P30 11 12 P31/PD13/ DISP_EXTCOMIN PD12/P8 13 14 P9/PA0/VCOM_TX LED1/PF5/P32 13 14 P33/PD14/DISP_SCS DBG_TDI_/PF3/P10 15 16 P11/PA1/VCOM_RX BTN0/PF6/P34 15 16 P35/PD15/DISP_ENABLE I2C_SCL/PC10/P12 17 18 P13/PC11/I2C_SDA BTN1/PF7/P36 17 18 P37/PD15/ SENSOR_ENABLE FLASH_SCS/PA4/ P14 19 20 P15/NC NC/P38 19 20 P39/NC VCOM_ENABLE/ PA5/P16 21 22 P17/NC NC/P40 21 22 P41/NC PTI_CLK/PB11/P18 23 24 P19/NC NC/P42 23 24 P43/NC PTI_DATA/PB12/P20 25 26 P21/NC NC/P44 25 26 P45/NC PTI_SYNC/PB13/P22 27 28 P23/NC NC 27 28 NC 10 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 4. J101 and J102 Breakout Connectors (Continued) Pin Name (Odd numbers) J101 Breakout Connector Pinout Pin Name (Even numbers) Pin Name (Odd numbers) Odd Pin Row Even Pin Row GND 29 30 GND VRF 31 32 VRF J102 Breakout Connector Pinout Pin Name (Even numbers) Odd Pin Row Even Pin Row GND 29 30 GND 3V3 31 32 3V3 Expansion Header The 20-pin expansion header allows for the connection of peripherals or plug-in boards. The connector contains a number of I/O pins that can be used with most of the ARTIK 030 module features. Note that the Expansion Board is not included in the kit but can be purchased separately from Samsung. Additionally, the VMCU, 3V3 and 5V power rails are also exported. The connector follows a standard which ensures that commonly used peripherals such as an SPI, a UART and an I2C bus are available on fixed locations in the connector. The rest of the pins are used for general purpose I/O. Figure 6 shows the pin assignment of the expansion header. Because of limitations in the number of available GPIO pins, some of the expansion header pins are shared between features. The pin-routing on the ARTIK 030 Module is very flexible, so most peripherals can be routed to any pin. However, many pins are shared between the Expansion Header and other functions on the Main Board. Table 5 includes an overview of the Main Board features that share pins with the Expansion Header. The connector pin organization in the table below mimics how the connector is viewed when on the board. Table 5. Expansion Header Pin Mapping Expansion Header Function Main Board Function/ Feature Pin Connection 19 BOARD_ID_SDA Connected to Board Controller for identification of add-on boards. 17 BOARD_ID_SCL Connected to Board Controller for identification of add-on boards. 15 PC10 I2C_SCL SENSOR_I2C_SCL 13 PF3a GPIO DBG_TDI 11 PD12 GPIO 9 PD11 GPIO 7 PD10 GPIO Peripheral Mapping I2C0_SCL #14 5 PA3 GPIO VCOM_RTS_CS USART0_CS #0 3 PA2 GPIO VCOM_CTS_SC:L USART0_CLK #0 1 GND GND GND GND 20 3V3 Board controller supply 18 5V 16 PC11 I2C_SDA SENSOR_I2C_SDA Board USB voltage I2C0_SDA #16 14 PA1 UART_RX VCOM_RX_MISO USART0_RX #0 12 PA0 UART_TX VCOM_TX_MOSI USART0_TX #0 11 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 5. Expansion Header Pin Mapping Pin Connection Expansion Header Function 10 PA9 SPI_CS 8 PC8 SPI_SCLK 6 PC7 SPI_MISO 4 PC6 SPI_MOSI 2 VMCU Main Board Function/ Feature Peripheral Mapping USART1_CS #11 DISP_SCLK USART1_CLK #11 USART1_RX #11 DISP_MOSI USART1_TX #11 ARTIK 030 module voltage domain, included in AEM measurements a. Pin PF3 is used as the DBG_TDI pin in JTAG mode only. When serial wire debugging is used, PF3 can be used for other purposes. Debug Connector The 20-pin Debug connector works in conjunction with the 20-pin Simplicity connector to provide an interface to the optional Debug Adapter board. The adapter board plugs into these two connectors and provides an additional three 10-pin connectors that provide address to peripheral debug components. For more information on the optional adapter board, refer to the section entitled Debug Adapter Board. The Debug Connector serves a dual purpose. Based on the "debug mode", that can be selected using Silicon Labs(R) Simplicity StudioTM. The debug connector can be configured in one of the following three ways: * In the "Debug IN" mode this connector allows an external debug emulator to be used with the on-board ARTIK 030 Module. * In the "Debug OUT" mode this connector allows the kit to be used as a debugger towards an external target. * In the "Debug MCU" (default) mode this connector is isolated from the debug interface of both the Board Controller and the on-board target device. For more information on these debug modes, refer to the section entitled ARTIK 030 Mesh Networking Kit Debug. Because this connector is automatically switched to support the different operating modes, it is only available when the Board Controller is powered (J-Link USB cable connected). If debug access to the target device is required when the Board Controller is unpowered, this should be done by connecting directly to the appropriate breakout connector pins. The pinout of the connector follows that of the standard ARM Cortex Debug+ETM 19-pin connector. and is described below. Table 6. Debug Connector Pinout Pin Function Description 1 VTARGET 3 GND Ground pin. 5 GND Ground pin. 7 NC No connect. 9 Cable_Detect Target voltage on the debugged application. Cable detect pin. This signal must be pulled to ground by the external debugger or application for cable insertion detection. 11 NC No connect. 13 NC No connect. 15 GND Ground pin. 17 GND Ground pin. 12 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 6. Debug Connector Pinout Pin Function 19 GND Description Ground pin. 2 TMS / SDWIO / C2D JTAG test mode select, serial wire data, or C2 data. 4 TCK / SWCLK / C2CK JTAG test clock, serial wire clock, or C2 clock. 6 TDO/SWO 8 TDI / C2Dps 10 RESET / C2CKps JTAG test data out or serial wire output. JTAG test data in or C2D "pin sharing" function. Target device reset or C2CK "pin sharing" function. 12 TRACECLK ETM trace clock. 14 TRACED0 ETM trace data 0. 16 TRACED1 ETM trace data 1. 18 TRACED2 ETM trace data 2. 20 TRACED3 ETM trace data 3. Note that the pin-out matches the pin-out of an ARM Cortex Debug+ETM connector, but these are not fully compatible as pin 7 is physically removed from the Cortex Debug+ETM connector. Some cables have a small plug that prevents them from being used when this pin is present. If this is the case, remove the plug, or use a standard 2x10 1.27 mm straight cable instead. For more information of the debug functionality using Silicon Labs(R) Simplicity StudioTM, refer to the section entitled ARTIK 030 Mesh Networking Kit Debug. Simplicity Connector The 20-pin Simplicity connector works in conjunction with the 20-pin Debug connector as described above to provide an interface to the Debug Adapter board. The Simplicity Connector enables advanced debugging features such as the Advanced Energy Monitor (AEM), the Virtual COM port and the Packet Trace Interface to be used towards an external target. The pinout is illustrated in Table 7. As an example when AEM is used, the current drawn from the VMCU voltage pin is included in the AEM measurements, while the 3V3 and 5V voltage pins are not. To monitor the current consumption of an external target with the AEM, unplug the ARTIK 030 module from the Main Board to avoid that current consumption is added to the measurements. Table 7. Simplicity Connector Pin Descriptions Pin Name Description 1 VMCU 3.3 V power rail, monitored by the AEM, 3 3V3 3.3 V power rail, 5 5V 5 V power rail, 7 GND Ground pin. 9 GND Ground pin. 11 GND Ground pin. 13 GND Ground pin. 15 GND Ground pin. 17 EXT_ID_SCL Board ID SCL. 19 EXT_ID_SDA Board ID SDA. 2 Virtual COM Tx/MOSI Virtual COM Tx/MOSI. 13 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 7. Simplicity Connector Pin Descriptions (Continued) Pin Name Description 4 Virtual COM Rx/MISO Virtual COM Rx/MISO. 6 Virtual COM CTS/SCLK Virtual COM CTS/SCLK. 8 Virtual COM RTS/CS Virtual COM RTS/CS. 10 PTI0_SYNC Packet trace 0 sync. 12 PTI0_DATA Packet trace 0 data. 14 PTI0_CLK Packet trace 0 clock. 16 PTI1_SYNC Packet trace 1 sync. 18 PTI1_DATA Packet trace 1 data. 20 PTI1_CLK Packet trace 1 clock. Main Board Peripherals The Main Board has a set of peripherals that showcase some of the features of the ARTIK 030 Module. Most ARTIK 030 Module I/O's routed to peripherals are also routed to the breakout pads. This must be taken into consideration when using the breakout pads for your application. Push Buttons and LEDs The Main Board has two push button switches marked PB0 and PB1. They are connected directly to the ARTIK 030 module, and are de-bounced by RC filters with a time constant of 1ms. The buttons are connected to pins PF6 and PF7. The Main Board also features two yellow LEDs marked LED0 and LED1 that are controlled by GPIO pins on the ARTIK 030 module. The LEDs are connected to pins PF4 and PF5 in an active-high configuration. Memory LCD-TFT Display A 1.28-inch SHARP Memory LCD-TFT is available on the kit to enable interactive applications to be developed. The display has a high resolution of 128 by 128 pixels, and consumes very little power. It is a reflective monochrome display, so each pixel can only be light or dark, and no back-light is needed in normal daylight conditions. Data sent to the display is stored in the pixels on the glass, which means no continuous refreshing is required to maintain a static image. The display interface consists of an SPI-compatible serial interface and some extra control signals. Pixels are not individually addressable, instead data is sent to the display one line (128 bits) at a time. The Memory LCD-TFT display is shared with the kit Board Controller, allowing the Board Controller application to display useful information when the user application is not using the display. The user application always controls ownership of the display with the DISP_ENABLE line. This line is encoded as follows: 0: The Board Controller has control of the display 1: The user application ARTIK 030 module has control of the display Power to the display is sourced from the target application power domain when the ARTIK 030 module controls the display, and from the Board Controller's power domain when the DISP_ENABLE line is low. Data is clocked in on DISP_MOSI when DISP_CS is high, and the clock is sent on DISP_SCLK. The maximum supported clock speed is 1.1 MHz. DISP_COM is the "COM Inversion" line. It must be pulsed periodically to prevent static build-up in the display itself. More information on the display application information and details on driving the display can be found at the following web site: 14 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide http://www.sharpmemorylcd.com/1-28-inch-memory-lcd.html Figure 5. ARTIK 030 Module 128x128 Pixel Memory LCD Relative Humidity and Temperature Sensor The Si7021 I2C relative humidity and temperature sensor is a monolithic CMOS IC integrating humidity and temperature sensor elements, an analog-to-digital converter, signal processing, calibration data, and an I2C Interface. The patented use of industry-standard, low-K polymeric dielectrics for sensing humidity enables the construction of low-power, monolithic CMOS Sensor ICs with low drift and hysteresis, and excellent long term stability. The humidity and temperature sensors are factory-calibrated and the calibration data is stored in the on-chip nonvolatile memory. This ensures that the sensors are fully interchangeable, with no recalibration or software changes required. The Si7021 is available in a 3x3mm DFN package and is reflow solder able. It can be used as a hardware- and software-compatible drop-in upgrade for existing RH/ temperature sensors in 3x3mm DFN-6 packages, featuring precision sensing over a wider range and lower power consumption. The optional factory-installed cover offers a low profile, convenient means of protecting the sensor during assembly (e.g., reflow soldering) and throughout the life of the product, excluding liquids (hydrophobic/oleo phobic) and particulates. The Si7021 offers an accurate, low-power, factory-calibrated digital solution ideal for measuring humidity, dew-point, and temperature, in applications ranging from HVAC/R and asset tracking to industrial and consumer platforms. The I2C bus used for the Si7021 is shared with the Expansion Header. The temperature sensor is normally isolated from the I2C line. To use the sensor, SENSOR_ENABLE (tied high) must be set high. When enabled, the sensor's current consumption is included in the AEM measurements. 15 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Figure 6. Relative Humidity and Temperature Sensor 16 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide RADIO BOARD The ARTIK 030 Radio Board houses the ARTIK module, as well as an 8 MB Flash for storing Over-The-Air (OTA) firmware updates. During an update, the data is first moved to the Flash, and then to the ARTIK 030 module. ARTIK 030 Module The ARTIK 030 is a fully-integrated, pre-certified module, enabling rapid development of wireless mesh networking solutions. The ARTIK 030 combines an energy-efficient, multiprotocol wireless SoC with a proven RF/antenna design and industry-leading wireless software stacks. This integration accelerates time-to-market and saves months of engineering effort and development costs. The ARTIK 030 can be used in a wide variety of applications, including: * Connected Home * Building Automation * Lighting * Security and Monitoring * Smart Grid / Metering * Industrial Automation Key Features of the ARTIK 030 module include: * Industry-leading mesh networking (ZigBee/Thread) software and development tools * Antenna: internal chip and U.FL variants * TX power: up to +10 dBm * RX sensitivity: down to -99 dBm * 32-bit ARM(R) Cortex(R)-M4 at 40 MHz * Flash memory: 256 kB * RAM: 32 kB * Autonomous Hardware Crypto-Accelerator and Random Number Generator (RNG) * Integrated DC-DC Converter Serial Flash The ARTIK 030 Radio Board is equipped with an 8 Mbit Macronix MX25R SPI flash that is connected directly to the ARTIK 030 module. Figure 13 shows how the serial flash is connected to the ARTIK 030 module. 17 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Figure 7. ARTIK 030 Module Flash Pin Connections The MX25R series are ultra-low power serial Flash devices, so there is no need for a separate enable switch to keep current consumption down. However, it is important that the Flash is always put in deep power down mode when not in use. This is done by issuing a command over the SPI interface. In deep power down, the MX25R typically adds approximately 100nA to the radio board current consumption. 18 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide DEBUG ADAPTER BOARD The ARTIK 030 Debug Adapter Board plugs directly into both the 20-pin Debug Connector and the 20-pin Simplicity Connector on the Main Board. The Debug Adapter board combines selected functionality from the Debug and Simplicity connectors into three smaller footprint 10-pin connectors, which are more suitable for space-constrained designs. The Debug Adapter board contains the following three 10-pin connectors: * Silicon Labs(R) Mini Simplicity Connector * ARM Cortex 10-pin Debug Connector * Silicon Labs(R) ISA3 Packet Trace The ARM Cortex 10-pin Debug Connector follows the standard Cortex pin-out defined by ARM and allows the Starter Kit to be used to debug hardware designs that use this connector. The ISA3 connector follows the same pin-out as the Packet Trace connector found on the Silicon Labs(R) Ember Debug Adapter (ISA3). This allows the Starter Kit to be used to debug hardware designs that use this connector. The Mini Simplicity Connector is designed to offer advanced debug features from the Main Board on a 10-pin connector. These features include: * Serial Wire Debug (SWD) with SWO * Packet Trace Interface (PTI) * Virtual COM Port (VCOM) * AEM Monitored voltage rail Note: Packet Trace is only available on Main Boards. Figure 8 shows a pinout of the mini-Simplicity connector. Figure 8. Mini Simplicity Connector 19 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Table 8. Mini-Simplicity Connector Pin Descriptions Pin Function Description 1 VAEM Target voltage on the debugged application. Supplied and monitored by the AEM when the power selection switch is in the "AEM" position. 2 GND Ground. 3 RST Reset. 4 VCOM_RX Virtual COM Rx. 5 VCOM_TX Virtual COM Tx. 6 SWO Serial wire output. 7 SWDIO Serial wire data. 8 SWCLK Serial wire clock. 9 PTI_FRAME 10 PTI_DATA Packet trace frame signal. Packet trace data signal. 20 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide POWER-UP AND RESET The ARTIK 030 Mesh Networking Kit can be powered by one of two sources: * Debug USB cable * 3V coin cell battery The power source for radio board is selected with the slide switch in the lower left corner of the Main Board. Figure 9 shows how the different power sources can be selected with the slide switch. ARTIK 030 Module Figure 9. Power Switch Options With the switch in the AEM position, a low noise 3.3 V LDO on the Main Board is used to power the Radio Board. This LDO is again powered from the debug USB cable. The Advanced Energy Monitor is now also connected in series, allowing accurate high speed current measurements and energy debugging/profiling. Note that the Advanced Energy Monitor can only measure the current consumption of the ARTIK 030 module when the power selection switch is in the AEM position. When the switch is in the USB position, the ARTIK 030 module remains powered-down since USB power to the module is not supported. Finally, with the switch in the BAT position, a 20 mm coin cell battery in the CR2032 socket can be used to power the device. With the switch in this position no current measurements are active. This is the recommended switch position when powering the radio board with an external power source. Note: Please be aware that the current sourcing capabilities of a coin cell battery might be too low to support certain wireless applications. Main Board Controller Communication The Main Board Controller is located as shown in Figure 1. The interface between the ARTIK 030 module and the Board Controller is a UART connection. The connection is enabled by setting the VCOM_ENABLE (PA5) line high, and using the lines VCOM_TX (PA0) and VCOM_RX (PA1) for communication. Specific library functions have been provided in the ARTIK 030 Module Board Support Package (BSP) that supports various requests to be made to the Board Controller, such as querying AEM voltage or current. 21 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Main Board Controller Power The ARTIK 030 Main Board contains a controller that is responsible for performing various board-level tasks, such as handling the debugger and the Advanced Energy Monitor. The Main Board Controller is shown in Figure 1. The debug logic on the Main Board is powered by the USB port, independent of the power switch setting. Note that the USB setting on the power switch cannot be used to power the ARTIK 030 module since USB power to the module is not supported. The Main Board Controller is powered exclusively through the USB port located in the top left corner of the board. This part of the ARTIK 030 Mesh Networking Kit resides in a separate power domain, so a different power source can be selected for the target device while retaining debugging functionality. This power domain is also isolated to prevent current leakage from the target power domain when power to the Board Controller is removed. The Main Board Controller power domain is exclusively supplied by the J-Link USB cable and is not influenced by the position of the power switch. The kit has been carefully designed to keep the board controller and the target power domains isolated from each other as one of them powers down. ARTIK 030 Module Reset The ARTIK 030 module can be reset in one of the following three ways: 1. Pressing the RESET button 2. On-board debugger pulling the #RESET pin low 3. External debugger pulling the #RESET pin low In addition to the reset sources mentioned above, the Board Controller also issues a reset to the ARTIK 030 Module when booting up. This means that removing power to the Board Controller (unplugging the J-Link USB cable) does not generate a reset, but plugging the cable back in does generate a reset, and the Board Controller boots up. Battery Holder In radio applications with high output power, peak current consumption can exceed the current sourcing capacity of a coin-cell battery. To support evaluation of the ARTIK 030 module in situations where powering the kit from a wired USB connection is impractical, for instance during range-tests, the kit is supplied with a battery holder for 2 AA batteries. To use the battery holder, first set the power switch in the BAT position. Then attach the cable to pin 1 and 2 on the expansion header, orienting the connector so the black cable goes down towards pin 1, and the red cable up towards pin 2. This is important to ensure the correct polarity for the battery power. 22 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide VIRTUAL COM PORT When enabling virtual serial communication (VCOM), the Main Board Controller makes communication possible on the following interfaces: * Virtual USB COM port using a CDC driver * TCP/IP, by connecting to the Mesh Networking Kit on port 4901 with a Telnet client The VCOM functionality can operate in two different modes: 1. Transparent mode allows the target to communicate using a regular serial driver. The board controller forwards the raw byte stream to its interfaces. 2. BSP-mode is initiated by a BSP call in the target application. This mode enables the target to use all BSP functionality, while having access to VCOM over USB and Ethernet. The virtual COM port interface is shown in Figure 10. Figure 10. Virtual COM Port Interface The Virtual COM port consists of a physical UART between the target device and the board controller Figure 10. The UART serial port is available to the host PC over USB or Ethernet. The UART interface consists of four pins and an enable signal. Details of the UART Interface are given in Table 9. Table 9. Virtual COM Port Interface Signal Description VCOM_TX Transmit data from the ARTIK 030 module to the board controller. VCOM_RX Receive data from the board controller to the ARTIK 030 module. VCOM_CTS Clear-to-Send hardware flow control input, asserted by the board controller when it is ready to receive more data. VCOM_RTS Request-to-Send hardware flow control output, asserted by the ARTIK 030 module when it is ready to receive more data. VCOM_ENABLE Enables the VCOM interface, allowing data to pass through to the board controller. 23 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide ADVANCED ENERGY MONITOR The Simplicity StudioTM Energy Profiler is used by developers to quickly and easily discover inefficiencies in a running application. In real-time, Simplicity Studio graphs and logs electrical current as a function of time while correlating this to the actual target application code running on the ARTIK 030 module. There are multiple features in the profiler software that allows for easy analysis, such as markers and statistics on selected regions of the current graph or aggregate energy usage by different parts of the application. Theory Of Operation The Advanced Energy Monitor (AEM) circuitry on the board is capable of measuring current signals in the range of 0.1 A to 95 mA, which is a dynamic range of almost 120dB. It can do this while maintaining approximately 10kHz of current signal bandwidth. This is accomplished through a combination of a highly capable current sense amplifier, multiple gain stages and signal processing within the kit's board controller before the current sense signal is read by a host computer for display and/or storage. The current sense amplifier measures the voltage drop over a small series resistor, and the gain stage further amplifies this voltage with two different gain settings to obtain two current ranges. The transition between these two ranges occurs around 250 A. The current signal is combined with the target processor's Program Counter (PC) sampling by utilizing a feature of the ARM CoreSight debug architecture. The Instrumentation Trace Macrocell (ITM) block can be programmed to sample the MCU's PC at periodic intervals (50kHz) and output these over SWO pin ARM devices. When these two data streams are fused and correlated with the running application's memory map, an accurate statistical profile can be built over time, that shows the energy profile of the running application in real-time. At power-up or on a power-cycle, an automatic AEM calibration is performed. This calibration compensates for any offset errors in the current sense amplifiers. ARTIK 030 Module Figure 11. Advanced Energy Monitor 24 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide Accuracy and Performance The Advanced Energy Monitor is capable of measuring currents in the range of 0.1 A to 95 mA. For currents above 250 A, the AEM is accurate within 0.1 mA. When measuring currents below 250 A, the accuracy increases to 1 A. Even though the absolute accuracy is 1 A, in the sub 250 A range, the AEM is able to detect changes in the current consumption as small as 100 nA. The AEM current sampling rate is 10 kHz. Note: The AEM circuitry only works when the kit is powered and the power switch is in the AEM position. Usage The AEM data is collected by the Board Controller and can be displayed by the Simplicity StudioTM Energy Profiler, available through Silicon Labs(R) Simplicity StudioTM. By using the Simplicity StudioTM Energy Profiler, current consumption and voltage can be measured and linked to the actual code running on the ARTIK 030 module in real time. 25 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide ARTIK 030 MESH NETWORKING KIT DEBUG The Main Board comes with an integrated debugger which can be used to download code and debug the ARTIK 030 module. In order for debugging to work properly, make sure the appropriate debug mode is selected as described below. Debug Modes Programming external devices is done by connecting to a target board through the provided Debug IN/OUT Connector, and by setting the debug mode to [Out]. The same connector can also be used to connect an external debugger to the ARTIK 030 module, by setting the debug mode to [In]. A summary of the different supported debug modes is shown below. Table 10. Debug Modes Mode Description Debug MCU In this mode the on-board debugger is connected to the ARTIK 030 Module on the ARTIK 030 Main Board. Debug In In this mode, the on-board debugger is disconnected, and an external debugger can be connected to debug the ARTIK 030 module on the ARTIK 030 module Main Board. Debug Out In this mode, the on-board debugger can be used to debug a supported device mounted on a custom board. The debug adapter is not provided. Selecting the active debug mode is done with a drop-down menu in the Kit Manager tool, which is available through Simplicity StudioTM. Debugging During Battery Operation When the ARTIK 030 module is powered by a battery and the J-Link USB is connected, the on-board debug functionality is available. If the USB power is disconnected, the Debug In mode will stop working. If debug access is required when the target is running on another energy source such as a battery, and the board controller is powered down, the user should make direct connections to the GPIO used for debugging. This can be done by connecting to the appropriate pins of the breakout pads. 26 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide EXPANSION BOARD The Expansion Board included with the ARTIK 030 Mesh Networking Kit includes the following features: * 3-axis accelerometer (Bosch Sensortech BMA280) * Joystick with 9 measureable positions * Push-button switch and 2x LEDs sharing the same I/O pins The Expansion Board connects to the Main Board via the 20-pin Expansion header located as shown in The connections between the Expansion Board and the ARTIK 030 module are shown in Figure 15. Figure 12. Available Sensors The subsequent sections contain more detailed information about each feature. Refer to the section above entitled Expansion Header for a pinout of this header. Accelerometer The Expansion Board contains a Bosch Sensortec BMA280 triaxial, low-power, low-g accelerometer sensor with SPI interface. It features 14-bit digital resolution and allows very low-noise measurement of acceleration in 3 perpendicular axes and can therefore sense tilt, motion, shock and vibration. For more details on the Bosch Sensortec BMA280 please visit: http://www.boschsensortec.com/bst/products/all_products/bma280 Push Buttons and LEDs The Expansion Board contains two push buttons (marked BTN2 and BTN3 on the PCB) and two LEDs (LED2 and LED3 are not marked but are placed above the corresponding push button markings). The push buttons and LEDs share the same two module I/O pins. Each push button is connected to a LED through a transistor, allowing both I/O's to be used either as an input (for reading the push button state) or as an output (to control the LED state on or off). 27 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide When configured as an input, "0" indicates that the button is being pressed and "1" that the push button is not being pressed. Likewise, when configured as an output, "0" turns the LED on and "1" turns it off. Pressing a push button switch also lights up the corresponding LED because the LED is controlled by the same line (state) regardless of whether it is the module or the push button that pulls the line low. The push buttons are de-bounced by RC filters with a time constant of about 1ms. Pressing the push button while having the pin configured as an output in high state ("1") does not cause damage, but may cause extra current to flow. Joystick The ARTIK 030 Mesh Networking Kit has an analog joystick with 9 measurable positions. This joystick is connected to the ARTIK 030 module pin PD4 and uses different resistor values to create voltages measurable by the internal ADC on the ARTIK 030 module. The joystick output is connected to AD Channel 0 (ADC0). 28 Samsung Semiconductor, Inc. ARTIK 030 Mesh Networking Kit User Guide LEGAL INFORMATION INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH THE SAMSUNG ARTIKTM DEVELOPMENT KIT AND ALL RELATED PRODUCTS, UPDATES, AND DOCUMENTATION (HEREINAFTER "SAMSUNG PRODUCTS"). NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. THE LICENSE AND OTHER TERMS AND CONDITIONS RELATED TO YOUR USE OF THE SAMSUNG PRODUCTS ARE GOVERNED EXCLUSIVELY BY THE SAMSUNG ARTIKTM DEVELOPER LICENSE AGREEMENT THAT YOU AGREED TO WHEN YOU REGISTERED AS A DEVELOPER TO RECEIVE THE SAMSUNG PRODUCTS. EXCEPT AS PROVIDED IN THE SAMSUNG ARTIKTM DEVELOPER LICENSE AGREEMENT, SAMSUNG ELECTRONICS CO., LTD. AND ITS AFFILIATES (COLLECTIVELY, "SAMSUNG") ASSUMES NO LIABILITY WHATSOEVER, INCLUDING WITHOUT LIMITATION CONSEQUENTIAL OR INCIDENTAL DAMAGES, AND SAMSUNG DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, ARISING OUT OF OR RELATED TO YOUR SALE, APPLICATION AND/OR USE OF SAMSUNG PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATED TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT, OR OTHER INTELLECTUAL PROPERTY RIGHT. Samsung Products are not intended for use in medical, life support, critical care, safety equipment, or similar applications where product failure could result in loss of life or personal or physical harm, or any military or defense application, or any governmental procurement to which special terms or provisions may apply. This document and all information discussed herein remain the sole and exclusive property of Samsung. All brand names, trademarks and registered trademarks belong to their respective owners. For updates or additional information about Samsung ARTIKTM, contact the Samsung ARTIKTM team via the Samsung ARTIKTM website at www.artik.io. Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electric or mechanical, by photocopying, recording, or otherwise, without the prior written consent of Samsung Electronics. SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed herein are for reference purposes only. All information discussed herein is provided on an "AS IS" basis, without warranties of any kind. This document and all information discussed herein remain the sole and exclusive property of Samsung Electronics. No license of any patent, copyright, mask work, trademark or any other intellectual property right is granted by one party to the other party under this document, by implication, estoppel or other-wise. Samsung products are not intended for use in life support, critical care, medical, safety equipment, or similar applications where product failure could result in loss of life or personal or physical harm, or any military or defense application, or any governmental procurement to which special terms or provisions may apply. For updates or additional information about Samsung products, contact your nearest Samsung office. All brand names, trademarks and registered trademarks belong to their respective owners. 29