Good Way TM51010 Getting Started Manual

Wi-fi & ble m.2 wireless module amazon freertos

Advertisement

Quick Links

TM51010 Wi-Fi & BLE M.2 Wireless Module
Amazon FreeRTOS Getting Started Guide
Getting Started Guide
Good Way Technology Co., Ltd.
3F, No. 135, Ln. 235, Baociao Rd., Sindian Dist., New Taipei City 231, Taiwan
Tel: +886- 2-8919-1200, Fax: +886- 2-8919-1220
www.gtrend-auto.com
All information provided in this document is subject to legal disclaimers.
TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide
1
© Good Way 2020. All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TM51010 and is the answer not in the manual?

Questions and answers

Summary of Contents for Good Way TM51010

  • Page 1 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide TM51010 Wi-Fi & BLE M.2 Wireless Module Amazon FreeRTOS Getting Started Guide Good Way Technology Co., Ltd. 3F, No. 135, Ln. 235, Baociao Rd., Sindian Dist., New Taipei City 231, Taiwan Tel: +886- 2-8919-1200, Fax: +886- 2-8919-1220 www.gtrend-auto.com...
  • Page 2 Use of Good Way Resources may require a license from a third party under the patents or other intellectual property of the third party, or a license from Good Way under the patents or other Good Way’s intellectual property.
  • Page 3 Customers’ own risk. Customers are solely responsible for compliance with all legal and regulatory requirements in connection with such selection. Customer will fully indemnify Good Way and its representatives against any damages, costs, losses, and/or liabilities arising out of Designer’s non- compliance with the terms and provisions of this Notice.
  • Page 4: Table Of Contents

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Table of Contents TM51010 Wi-Fi & BLE M.2 Wireless Module ......................5 Wi-Fi & BLE M.2 Wireless Module ........................... 5 PCB Layout Overview ............................... 6 Pin Out ....................................6 M.2 Pin Assignment ................................. 7 LOGUART and SWD ................................
  • Page 5: Tm51010 Wi-Fi & Ble M.2 Wireless Module

    MCU with built-in security features and ultra-low power consumption. The embedded system product developers and device makers can now drastically shorten their development cycle and reduce time to market by using Good Way Wi-Fi & BLE M.2 Wireless Module.  Features ...
  • Page 6: Pcb Layout Overview

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide PCB Layout Overview The PCB layout is shown in Fig 1-1 Fig 1-1 PCB layout Pin Out The pin out board is shown in Fig 1-2. Fig 1-2 pin out There are two rows of pins on the board.
  • Page 7: Pin Assignment

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide M.2 Pin Assignment The M.2 pin number mapping is shown in Fig 1-3. TOP View Bottom View TOP View Bottom View Fig 1-3 M.2 pin number mapping Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 8 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Pin Assignment Pin No. Pin Name Pin Description Pin No. Pin Name Pin Description Power Ground Ground VDD_3V3 Power supply voltage 3.3V GPIO General Purpose Input/Output Power Ground No Connection VDD_3V3 Power supply voltage 3.3V...
  • Page 9: Loguart And Swd

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide No Connection Power Ground GPIO General Purpose Input/Output LOGUART and SWD The LOGUART and SWD board pin mapping is shown in Fig 1-4. Fig 1-4 Pin number mapping Pin Assignment Pin No.
  • Page 10: Configure Aws Iot Core

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Configure AWS IoT Core Create a New Device To create a new device, navigate to Manage -> Things in the left-hand navigation menu. Then click “Register a thing”. Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 11 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Then, name the new device. This example uses the name TestDevice. Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 12 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Download the certificate, public key, and private key for the device by clicking Download. Next, download the root CA for AWS IoT by clicking to the Download link. Once all the certificate and keys have been downloaded, click Activate. Finally, click Done Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 13: Create A Policy

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Create a policy A policy defines a device’s access permissions to IoT Core. To create a policy, navigate to Secure -> Policies. Then click “Create a policy” NOTE – this policy grants unrestricted access for all iot operations, and is to be used only in a development environment. For non-dev environments, all devices in your fleet must have credentials with privileges that authorize intended actions only, which include (but not limited to) AWS IoT MQTT actions such as publishing messages or subscribing to topics with specific scope and context.
  • Page 14: Attach Policy

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Attach Policy The last step to configuring the device is attaching a policy. To attach a policy to new device, navigate to Manage -> Things. Then click on the device which was created.
  • Page 15 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Click Security, then click the certificate create in previous step. Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 16 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 17: Configure Tm51010 Amazon Freertos

    Download Source Code from github Open source link: https://github.com/GoodWayDev/amazon-freertos and select main to get newest source code. TM51010 also support v202002, please find source in “TM51010-v202002” branch. Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 18: Cloning A Repository By Download Zip

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide 3.1.1 Cloning a repository by Download ZIP On GitHub, navigate to the main page of the repository. Above the list of files, click Code. Click Download ZIP to get source code.
  • Page 19: Get Broker Endpoint By Aws Iot Core

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Get Broker Endpoint by AWS IoT Core Broker Endpoint Get Thing Name Thing Name Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 20: Setup Thing's Private Key And Certificate

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Setup IoT Core Information with TM51010 Amazon FreeRTOS Setup BROKER_ENDPOINT, THING_NAME, WIFI_SSID, PASSWORD in “amazon- freertos/demos/include/aws_clientcredential.h” 3.4.1 Setup Thing’s Private Key and Certificate Filled keyCLIENT_CERTIFICATE_PEM and keyCLIENT_PRIVATE_KEY_PEM in “ambd_amazon- freertos/ demos/include/aws_clientcredential_keys.h”...
  • Page 21 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Final aws_clientcredential_keys.h overview. Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 22: Enable Freertos Demo On Tm51010

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide 3.4.2 Enable FreeRTOS demo on TM51010 Find platform_opts.h in amazon-freertos\vendors\realtek\boards\amebaD\aws_demos\config_files and enable CONFIG_EXAMPLE_AMAZON_FREERTOS Fine aws_demo_config.h in amazon-freertos\vendors\realtek\boards\amebaD\aws_demos\config_files and add CONFIG_MQTT_DEMO_ENABLED Now you can start to compile TM51010 Amazon FreeRTOS Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 23: Compile Tm51010 Amazon Freertos

    IAR Build Environment Setup Currently the amazon-freertos of TM51010 supported by the IAR Embedded workbench ver.8.30.1. For windows operating system only. This chapter illustrates how to setup IAR development environment for Realtek Ameba-D SDK, including building projects and downloading images.
  • Page 24 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Fig 4-1 KM0 processor options Fig 4-2 Building KM0 project Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 25 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Note: After building each project, IAR will pop up a command prompt window to execute post-build action to generate images from executable files. This may takes several seconds. Do not stop it while it is in progress. After post-build action is completed, the window would disappear automatically.
  • Page 26 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Fig 4-4 Building KM4 project Note: After building each project, IAR will pop up a command prompt window shown in bellow to execute post-build action to generate images from executable files. This may takes several seconds. Do not stop it while it is in progress. After post-build action is completed, the window would disappear automatically.
  • Page 27: Imagetool

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide ImageTool The tool can be find in amazon-freertos\vendors\realtek\tools\ameba-image-Tool-v2.4.1\ Introduction This chapter introduces how to use ImageTool to encrypt, generate and download images. As show in Fig 5-1, Make sure Chip Select is AmebaD(8721D).
  • Page 28: Environment Setup

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Environment Setup 5.2.1 Hardware Setup The hardware setup is shown in Fig 5-2. Note: FT232 USB to UART dongle must be used. Fig 5-2 Hardware setup 5.2.2 Software Setup ...
  • Page 29: Download

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Download 5.3.1 Image Download Assuming that the ImageTool on PC is a server, it sends images files to Ameba (client) through UART. There are two ways to download images to board.
  • Page 30 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Fig 5-3 ImageTool ‘Download’ tabpage setting Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 31: Mqtt Demo

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide MQTT Demo Get Device Log Install Tera Term to get device log Fig 6-1 Hardware setup The serial port is same with ImageTool that get from 5.3.1.1 step (3) Getting Started Guide All information provided in this document is subject to legal disclaimers.
  • Page 32: Run Mqtt Demo

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Run MQTT Demo Default setting of SDK are enable MQTT demo. Once the TM51010 Module has rebooted, the application will automatically start run MQTT demo and communicate to IoT Core.
  • Page 33: Monitoring Mqtt Messages On The Cloud

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Monitor connection summary. Monitoring MQTT messages on the cloud To subscribe to the MQTT topic with the AWS IoT MQTT client 1. Sign in to the AWS IoT console. 2. In the navigation pane, choose Test to open the MQTT client.
  • Page 34 TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Getting Started Guide All information provided in this document is subject to legal disclaimers. © Good Way 2020. All rights reserved.
  • Page 35: Troubleshooting

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide Troubleshooting If these steps don’t work, look at the device log in the serial terminal. You should see some text that indicates the source of the problem. For general troubleshooting information about Getting Started with FreeRTOS, see Troubleshooting getting started.
  • Page 36: Error: Invalid Key

    TM51010 Wi-Fi & BLE M.2 Wireless Module Getting Started Guide ERROR: Invalid Key Please check WIFI_SSID and WIFI_PASSWORD in in amazon-freertos/demos/include/aws_clientcredential.h Failed to establish new MQTT connection Please check clientcredentialMQTT_BROKER_ENDPOINT in amazon-freertos/blob/master/demos/include/aws_clientcredential.h TLS_Connect fail Please check keyCLIENT_CERTIFICATE_PEM and keyCLIENT_PRIVATE_KEY_PEM in ambd_amazon- freertos/blob/master/demos/include/aws_clientcredential_keys.h...

Table of Contents