Catalog
1EWN-8720CMN1AA Module ..................................................................................................................................... 4
1.1 General Specifications.................................................................................................................................... 4
1.2 Features......................................................................................................................................................... 4
1.3 PCB Layout Overview ..................................................................................................................................... 6
1.4 Pin-Out Reference.......................................................................................................................................... 7
2Configure AWS IoT Core.......................................................................................................................................... 10
2.1 Create a New Device.................................................................................................................................... 10
2.2 Create a policy ............................................................................................................................................. 13
2.3 Attach Policy................................................................................................................................................ 14
3Configure AmebaZ2 Amazon FreeRTOS................................................................................................................... 17
3.1 Download Source Code from github............................................................................................................. 17
3.1.1
Cloning a repository by Download ZIP ............................................................................................... 17
3.2 Get Broker Endpoint by AWS IoT Core.......................................................................................................... 18
3.3 Get Thing Name........................................................................................................................................... 18
3.4 Setup IoT Core Information with AmebaZ2 Amazon FreeRTOS...................................................................... 19
3.4.1
Setup Thing’s Private Key and Certificate........................................................................................... 19
3.4.2
Enable FreeRTOS demo on AmebaZ2................................................................................................. 21
4Compile AmebaZ2 Amazon FreeRTOS ..................................................................................................................... 22
4.1 Pre-Requisite ............................................................................................................................................... 22
4.2 IAR Build Environment Setup........................................................................................................................ 22
4.3 Install IAR IDE............................................................................................................................................... 22
4.4 Compilation ................................................................................................................................................. 22
4.5 Generate Image Binary ................................................................................................................................ 23
5ImageTool............................................................................................................................................................... 24
5.1 Introduction................................................................................................................................................. 24
5.2 Environment Setup ...................................................................................................................................... 24
5.2.1
Hardware Setup................................................................................................................................ 24
5.2.2
Software Setup ................................................................................................................................. 26
5.3 Image Download.......................................................................................................................................... 26
6MQTT Demo ........................................................................................................................................................... 28
6.1 Get Device Log............................................................................................................................................. 28
6.2 Run MQTT Demo ......................................................................................................................................... 28
6.3 Monitoring MQTT messages on the cloud .................................................................................................... 30
7Troubleshooting...................................................................................................................................................... 32
7.1 Image Tool Download Fail............................................................................................................................ 32
7.2 ERROR: Invalid Key....................................................................................................................................... 32