Click here to load reader
Upload
mediatek-labs
View
351
Download
10
Embed Size (px)
Citation preview
Philip HandschinTechnical Consultant
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
MediaTek LabsA Developer Centric Ecosystem
� Global program – free to join� Supporting developers:
�Device creation�App development�Services
� labs.mediatek.com
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
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
2023-05-03Copyright © MediaTek Inc. All rights reserved. 6
Rapidly growing LinkIt community
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
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
9
Potential Applications
Home Appliance
Smart Gadget
7687
7687
Cloud
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
11
INSTALL SDKHow To Get Started
12
Download SDK
13
Install MinGW
▪Download MinGW cross-compiler • https://sourceforge.net/projects/mingw/files/
Installer/mingw-get-setup.exe/download
14
15
16
Test MinGW installation
▪Navigate to C:\MinGW\msys\1.0 folder ▪ launch terminal by running msys.bat ▪ Close it again
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
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
19
20
COMPILE TEST PROJECTHow To Get Started
21
Demo
▪Navigate to C:\MinGW\msys\1.0 folder ▪ launch terminal by running msys.bat
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”
23
Out directory
▪Once compilation is successful, out files are in ▪ <sdk_root>\out\<HDK>\<project_name>\
24
PREPARE BOARD FOR FLASHINGHow To Get Started
25
Prepare board
▪ Connect board with a micro USB cable▪Download mbed driver• https://
developer.mbed.org/handbook/Windows-serial-configuration
▪ Install driver
26
27
FLASH THE BOARDHow To Get Started
28
Prepare HDK for flashing
Set Flash Mode
29
Unzip PC_tool_Win
▪Under <SDK_root>/tools, unzip PC_tool_Win
30
Flash continue
▪Open folder “MT7687_FlashTool_Public/win” ▪Open MT76x7_Flash_Tool.exe
31
FLASH THE BOARDHow To Get Started
32
Select COM port
▪ Click Refresh▪ Select correct COM PORT
1
2 3
33
34
1
2
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
36
CREATE A NEW PROJECTHow to get started
37
Build your own project
▪ Copy existing project folder▪ Change makefile in GCC folder• <project_name>/GCC
▪ Change Code▪ Compile project
38
Demo
▪ Create a project▪ Connect to wifi▪ Execute Get request.▪ Print result on terminal
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.
40
Check out logs
▪ Open HyperTerminal/Putty program• Choose Serial connection• Choose COM port and Speed• Open connection
1
2
3
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
42
Questions?
Download Resources:labs.mediatek.com/rtos
MediaTek Cloud Sandbox:labs.mediatek.com/mcs
Check the Forum:labs.mediatek.com/forums
What’s Next ?
43
▪4 October– [Webinar] State of IoT NationMore Infohttp://home.labs.mediatek.com/event/iot-state-of-the-nation-2016-an-open-panel-discussion/
Copyright © MediaTek Inc. All rights reserved.