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.
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 ...
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.
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...
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.
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 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.
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.
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.
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.
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.
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.
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 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.
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).
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 ...
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.
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.
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.
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.
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.
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...
Need help?
Do you have a question about the TM51010 and is the answer not in the manual?
Questions and answers