Developing IoT devices. Creating wearables with the new LinkIt™ 2523 HDK by SAC

Post on 16-Apr-2017

358 views 5 download

Transcript of Developing IoT devices. Creating wearables with the new LinkIt™ 2523 HDK by SAC

Philip Handschin Technical Consultant

Developing IoT devices. Creating wearables with the new LinkIt™ 2523 HDK by SAC

Topics

2

WHAT IS MEDIATEK LABS LinkIt Development platform for RTOS

How to get started • Install SDK

• Compile test project

• Prepare board for flashing

• Flash the board

• Create own project

• Documentation

Questions

MediaTek Labs A Developer Centric Ecosystem

Global program – free to join

Supporting developers: Device creation

App development

Services

labs.mediatek.com

2016-12-07 Copyright © MediaTek Inc. All rights reserved. 4

Enabling Developer and Maker Success

Dev resources

Insights and inspiration

Access to hardware

SDKs for makers (Arduino), professional developers (C/Eclipse) and Linux (OpenWrt and Ubuntu)

Technical support

Peripherals (sensors, etc)

Cloud management of device data

Developer advice & matchmaking

Design, production & go-to-market help

Go from idea to prototype to product

MediaTek LinkIt™ portfolio Software and hardware development platforms for wearables & IoT

Copyright © MediaTek Inc. All rights reserved.

LinkIt Assist 2502 labs.mediatek.com/2502

Wearable form factors

For professional developers (C/Eclipse)

LinkIt ONE

labs.mediatek.com/linkitone

Unrivalled connectivity on a single board

For DIY & maker community (Arduino)

LinkIt Connect 7681 labs.mediatek.com/7681

The simple way to Wi-Fi enable your devices

For low-cost smart home or office deployment

LinkIt Smart 7688 labs.mediatek.com/7688

Open-source Wi-Fi platform for a more connected world

OpenWrt Linux, Python, Node.js, Arduino

• Using FreeRTOS with open-source modules with common SDK • Hardware integrated PMU and security engines • Development and debugging support in KEIL, IAR, and GCC • labs.mediatek.com/rtos

MediaTek LinkIt™ Development Platform for RTOS

Copyright © MediaTek Inc. All rights reserved.

LinkIt 7687 HDK by SAC

labs.mediatek.com/7687

IoT development board for power efficient IoT devices with secure Wi-Fi connectivity

LinkIt 2523 HDK by SAC labs.mediatek.com/2523

For Bluetooth connected wearables with fast and accurate positioning

2016-12-07 Copyright © MediaTek Inc. All rights reserved. 7

Rapidly growing LinkIt community

Topics

8

What is MediaTek Labs

LINKIT DEVELOPMENT PLATFORM FOR RTOS How to get started

• Install SDK

• Compile test project

• Prepare board for flashing

• Flash the board

• Create own project

• Documentation

Questions

LinkIt Development platform for RTOS

9

MediaTek SOC Range of MediaTek SOC starting with MT2523G

SDK & tools GCC compiler and Keil µVision support, flashing and pin mux tools

RTOS & API Optimized RTOS and API to take advantage of MediaTek SOC features and connected peripherals

+ + +

HDK & modules LinkIt and compatible HDKs for prototyping and compatible modules for device manufacture

labs.mediatek.com/rtos

10

Topics

11

What is MediaTek Labs

LinkIt Development platform for RTOS

HOW TO GET STARTED • Install SDK

• Compile test project

• Prepare board for flashing

• Flash the board

• Create own project

• Documentation

Questions

INSTALL SDK How To Get Started

12

Download SDK

13

Install MinGW

14

▪ Download MinGW cross-compiler

• https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download

15

16

Test MinGW installation

17

▪ Navigate to C:\MinGW\msys\1.0 folder

▪ launch terminal by running msys.bat

▪ Close it again

Copy SDK to MinGW

18

▪ Unzip the downloaded SDK file

▪ Copy the whole folder to

▪ C:\MinGW\msys\1.0\home\<username>\LinkIt_SDK_V4.0.0_public

Install ARM_GCC

19

▪ Download ARM-GCC-win32 • https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-

q3-update/+download/gcc-arm-none-eabi-4_8-2014q3-20140805-win32.zip

▪ Create a new folder named win under • C:\MinGW\msys\1.0\home\<username>\<SDK

root>\tools\gcc\

▪ b) Unzip the content of the zip file to <sdk_root>\tools\gcc\win\ folder.

▪ c) Rename the unzipped folder gcc-arm-none-eabi

20

COMPILE TEST PROJECT How To Get Started

21

Demo

22

▪ Navigate to C:\MinGW\msys\1.0 folder

▪ launch terminal by running msys.bat

Compile a test project

23

▪ Change to SDK directory

▪ Use “./build.sh list” to see all commands/projects

▪ Use “./build.sh <HDK> <PROJECT>”

▪ Example “./build.sh mt2523_hdk rtc_set_alarm”

Out directory

24

▪ Once compilation is successful, out files are in

▪ <sdk_root>\out\<HDK>\<project_name>\

PREPARE BOARD FOR FLASHING How To Get Started

25

Unzip PC_tool_Win

26

▪ Under <SDK_root>/tools, unzip PC_tool_Win

Prepare board drivers

27

▪ MT2523_FlashTool\MS_USB_ComPort_Driver\v1.1032.1

InstallDriver.exe

▪ Install driver

▪ Connect board with a micro USB cable

MT2523 USB

28

29

MK 20 USB

31

32

FLASH THE BOARD How To Get Started

33

Prepare HDK for flashing

34

FLASH THE BOARD How To Get Started

35

Flash the board

36

▪ Disconnect the board from your computer

▪ Start the flash tool

Flash the board

37

1

2

3

4. Plug in board to computer

Run the project

38

▪ Disconnect the micro-USB cable

▪ Reconnect the USB cable to MK20 port

▪ Open HyperTerminal/Putty program

• Choose Serial connection

• Choose COM port and Speed

• Open connection

1

CREATE A NEW PROJECT How to get started

39

Build your own project

40

▪ Copy existing project folder

▪ Change makefile in GCC folder

• <project_name>/GCC

▪ Change Code

▪ Compile project

Debug

41

▪ If the build fails, log can be found in out directory

• <SDK_root>\out\<hdk>\<project>\log

▪ More debug details in getting started guide.

Check out logs

42

▪ Open HyperTerminal/Putty program

• Choose Serial connection

• Choose COM port and Speed

• Open connection

1

DOCUMENTATION How To Get Started

43

Documentation

44

▪ <SDK root>/doc

▪ How to setup GCC compiler • LinkIt_SDK_v4_GCC_Build_Environment_Guide

▪ Getting started with development • LinkIt_for_RTOS_Get_Started_Guide

Debugger setup under point 2.3.6

▪ Complete API reference • <SDK root>\doc\LinkIt SDK for 2523 API Reference

Manual\index.html

Topics

45

What is MediaTek Labs

LinkIt Development platform for RTOS

How to get started • Install SDK

• Compile test project

• Prepare board for flashing

• Flash the board

• Create own project

• Documentation

QUESTIONS

Questions?

46

Download Resources:

labs.mediatek.com/rtos

MediaTek Cloud Sandbox:

labs.mediatek.com/mcs

Check the Forum:

labs.mediatek.com/forums

Copyright © MediaTek Inc. All rights reserved.