developing iot devices. creating wearables with the new linkit™ 2523 hdk by sac

47
Philip Handschin Technical Consultant Developing IoT devices. Creating wearables with the new LinkIt™ 2523 HDK by SAC

Upload: mediatek-labs

Post on 16-Apr-2017

362 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: 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

Page 2: 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

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

MediaTek Labs A Developer Centric Ecosystem

Global program – free to join

Supporting developers: Device creation

App development

Services

labs.mediatek.com

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

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

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

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

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

• 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

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

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

Rapidly growing LinkIt community

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

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

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

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

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

10

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

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

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

INSTALL SDK How To Get Started

12

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

Download SDK

13

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

Install MinGW

14

▪ Download MinGW cross-compiler

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

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

15

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

16

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

Test MinGW installation

17

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

▪ launch terminal by running msys.bat

▪ Close it again

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

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

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

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

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

20

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

COMPILE TEST PROJECT How To Get Started

21

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

Demo

22

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

▪ launch terminal by running msys.bat

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

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”

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

Out directory

24

▪ Once compilation is successful, out files are in

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

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

PREPARE BOARD FOR FLASHING How To Get Started

25

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

Unzip PC_tool_Win

26

▪ Under <SDK_root>/tools, unzip PC_tool_Win

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

Prepare board drivers

27

▪ MT2523_FlashTool\MS_USB_ComPort_Driver\v1.1032.1

InstallDriver.exe

▪ Install driver

▪ Connect board with a micro USB cable

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

MT2523 USB

28

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

29

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

MK 20 USB

31

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

32

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

FLASH THE BOARD How To Get Started

33

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

Prepare HDK for flashing

34

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

FLASH THE BOARD How To Get Started

35

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

Flash the board

36

▪ Disconnect the board from your computer

▪ Start the flash tool

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

Flash the board

37

1

2

3

4. Plug in board to computer

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

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

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

CREATE A NEW PROJECT How to get started

39

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

Build your own project

40

▪ Copy existing project folder

▪ Change makefile in GCC folder

• <project_name>/GCC

▪ Change Code

▪ Compile project

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

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.

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

Check out logs

42

▪ Open HyperTerminal/Putty program

• Choose Serial connection

• Choose COM port and Speed

• Open connection

1

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

DOCUMENTATION How To Get Started

43

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

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

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

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

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

Questions?

46

Download Resources:

labs.mediatek.com/rtos

MediaTek Cloud Sandbox:

labs.mediatek.com/mcs

Check the Forum:

labs.mediatek.com/forums

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

Copyright © MediaTek Inc. All rights reserved.