how to get started with the mediatek linkit™ development platform for rtos

44

Click here to load reader

Upload: mediatek-labs

Post on 15-Apr-2017

350 views

Category:

Technology


10 download

TRANSCRIPT

Page 1: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

Philip HandschinTechnical Consultant

How to get started with the MediaTek LinkIt™ Development Platform for RTOS

Page 2: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

2

Topics

WHAT IS MEDIATEK LABSLinkIt Development platform for RTOSHow to get started

• Install SDK• Compile test project• Prepare board for flashing• Flash the board• Create own project

Questions

Page 3: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

MediaTek LabsA Developer Centric Ecosystem

� Global program – free to join� Supporting developers:

�Device creation�App development�Services

� labs.mediatek.com

Page 4: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

2023-05-03Copyright © 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: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

MediaTek LinkIt™ portfolioSoftware and hardware development platforms for wearables & IoT

Copyright © MediaTek Inc. All rights reserved.

LinkIt Assist 2502labs.mediatek.com/2502

� Wearable form factors� For professional developers (C/Eclipse)

LinkIt ONElabs.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: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

2023-05-03Copyright © MediaTek Inc. All rights reserved. 6

Rapidly growing LinkIt community

Page 7: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

7

Topics

What is MediaTek Labs

LINKIT DEVELOPMENT PLATFORM FOR RTOSHow to get started

• Install SDK• Compile test project• Prepare board for flashing• Flash the board• Create own project

Questions

Page 8: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

8

LinkIt Development platform for RTOS

MediaTek SOC

Range of MediaTek SOC starting with MT7687F offering IoT devices secure Wi-Fi connectivity

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 9: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

9

Potential Applications

Home Appliance

Smart Gadget

7687

7687

Cloud

Page 10: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

10

Topics

What is MediaTek LabsLinkIt Development platform for RTOS

HOW TO GET STARTED• Install SDK• Compile test project• Prepare board for flashing• Flash the board• Create own project

Questions

Page 11: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

11

INSTALL SDKHow To Get Started

Page 12: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

12

Download SDK

Page 13: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

13

Install MinGW

▪Download MinGW cross-compiler • https://sourceforge.net/projects/mingw/files/

Installer/mingw-get-setup.exe/download

Page 14: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

14

Page 15: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

15

Page 16: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

16

Test MinGW installation

▪Navigate to C:\MinGW\msys\1.0 folder ▪ launch terminal by running msys.bat ▪ Close it again

Page 17: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

17

Copy SDK to MinGW

▪Unzip the downloaded SDK file▪ Copy the whole folder to▪ C:\MinGW\msys\1.0\home\<username>\

LinkIIt_SDK_V3.3.1

Page 18: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

18

Install ARM_GCC

▪ 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 19: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

19

Page 20: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

20

COMPILE TEST PROJECTHow To Get Started

Page 21: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

21

Demo

▪Navigate to C:\MinGW\msys\1.0 folder ▪ launch terminal by running msys.bat

Page 22: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

22

Compile a test project

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

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

▪ Example “./build.sh mt7687_hdk http_client_get”

Page 23: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

23

Out directory

▪Once compilation is successful, out files are in ▪ <sdk_root>\out\<HDK>\<project_name>\

Page 24: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

24

PREPARE BOARD FOR FLASHINGHow To Get Started

Page 25: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

25

Prepare board

▪ Connect board with a micro USB cable▪Download mbed driver• https://

developer.mbed.org/handbook/Windows-serial-configuration

▪ Install driver

Page 26: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

26

Page 27: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

27

FLASH THE BOARDHow To Get Started

Page 28: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

28

Prepare HDK for flashing

Set Flash Mode

Page 29: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

29

Unzip PC_tool_Win

▪Under <SDK_root>/tools, unzip PC_tool_Win

Page 30: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

30

Flash continue

▪Open folder “MT7687_FlashTool_Public/win” ▪Open MT76x7_Flash_Tool.exe

Page 31: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

31

FLASH THE BOARDHow To Get Started

Page 32: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

32

Select COM port

▪ Click Refresh▪ Select correct COM PORT

1

2 3

Page 33: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

33

Page 34: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

34

1

2

Page 35: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

35

Run the project

▪ Disconnect the micro-USB cable ▪ Switch the flash FLASH Normal mode▪ Reconnect the USB cable and press the reset button ▪ Open HyperTerminal/Putty program• Choose Serial connection• Choose COM port and Speed• Open connection 1

2

3

Page 36: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

36

CREATE A NEW PROJECTHow to get started

Page 37: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

37

Build your own project

▪ Copy existing project folder▪ Change makefile in GCC folder• <project_name>/GCC

▪ Change Code▪ Compile project

Page 38: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

38

Demo

▪ Create a project▪ Connect to wifi▪ Execute Get request.▪ Print result on terminal

Page 39: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

39

Debug

▪ 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 40: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

40

Check out logs

▪ Open HyperTerminal/Putty program• Choose Serial connection• Choose COM port and Speed• Open connection

1

2

3

Page 41: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

41

Topics

What is MediaTek LabsLinkIt Development platform for RTOSHow to get started

• Install SDK• Compile test project• Prepare board for flashing• Flash the board• Create own project

QUESTIONS

Page 42: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

42

Questions?

Download Resources:labs.mediatek.com/rtos

MediaTek Cloud Sandbox:labs.mediatek.com/mcs

Check the Forum:labs.mediatek.com/forums

Page 44: How to get started with the MediaTek LinkIt™ Development Platform for RTOS

Copyright © MediaTek Inc. All rights reserved.