background image

EWN-8720CMN1AA Getting Started Guide 

 

 

 

 

 

 

Final aws_clientcredential_keys.h overview. 

 

Summary of Contents for EWN-8720CMN1AA

Page 1: ...EWN 8720CMN1AA Getting Started Guide EWN 8720CMN1AA Getting Started Guide Version A0 ...

Page 2: ...hing 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 4 Compile 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 5 ImageTool 24 5 1 Introduction 24 5 2 Environment Setup 24 5 2 1 Ha...

Page 3: ...EWN 8720CMN1AA Getting Started Guide 7 3 Failed to establish new MQTT connection 33 7 4 TLS_Connect fail 33 ...

Page 4: ...mbine a Real M300 KM4 CPU that is based on ARMv8 M architecture and carry WLAN MAC a 1T1R capable WLAN baseband an RF circuit and Bluetooth Low Energy BLE in a single chip Figure 1 1 EWN 8720CMN1AA Module Appearance View 1 2 Features MCU Features Real M300 KM4 clock frequency up to 100MHz I Cache 32KB D Cache 16KB Supports DMA EXecute In Place XIP on flash Internal Memory Supports 384KB ROM Suppor...

Page 5: ...High Throughput Block Acknowledgement Long NAV for media reservation with CF End for NAV release Bluetooth Low Energy Bluetooth Low Energy BLE 4 2 Supports LE secure connections LE scatternet Supports 1 Master 1 Slave Secure Supports secure boot Wi Fi WEP WPA WPA2 WPS MD5 SHA 1 SHA2 224 SHA2 256 HMAC AES Crypto engine Interface SPI SDIO UART interface SPI I2C master for sensor I2S PWM and GPIO 1 G...

Page 6: ...EWN 8720CMN1AA Getting Started Guide 1 3 PCB Layout Overview Module Size Unit mm 18 0 0 2 25 50 0 3 2 9 0 2 Figure 1 2 EWN 8720CMN1AA Module Size ...

Page 7: ...EWN 8720CMN1AA Getting Started Guide 1 4 Pin Out Reference Figure 1 3 EWN 8720CMN1AA Module Pin Definition ...

Page 8: ...WM 4 SPI_MOSI 9 GPIOA_7 Flash_SPI_CS SPI_M_CS SPI_CSn 10 GPIOA_8 Flash _SPI_CLK SPI_M_CLK SPI_SCL 11 GPIOA_9 Flash _SPI_WP SPI_M_DATA 2 SPI_MOSI UART0_RTS 12 GPIOA_10 Flash _SPI_SO SPI_M_DATA 1 SPI_MISO UART0_CTS 13 GPIOA_11 Flash _SPI_SI SPI_M_DATA 0 I2C_SCL UART0_OUT PWM 0 14 GPIOA_12 Flash _SPI_HOLD SPI_M_DATA 3 I2C_SDA UART0_IN PWM 1 15 GND Ground 16 GPIOA_13 UART0_IN PWM 7 17 GPIOA_14 SDIO_IN...

Page 9: ...ult states of all pins are High impedance Unused pins should be kept floating 3 Some IO are used to connect to the flash of the module It is recommended not to use these IO As shown in the table PIN Definition Description 9 GPIOA_7 Flash_SPI_CS 10 GPIOA_8 Flash _SPI_CLK 11 GPIOA_9 Flash _SPI_WP 12 GPIOA_10 Flash _SPI_SO 13 GPIOA_11 Flash _SPI_SI 14 GPIOA_12 Flash _SPI_HOLD Table 2 EWN 8720CMN1AA M...

Page 10: ...EWN 8720CMN1AA Getting Started Guide 2 Configure AWS IoT Core 2 1 Create a New Device To create a new device navigate to Manage Things in the left hand navigation menu Then click Register a thing ...

Page 11: ...EWN 8720CMN1AA Getting Started Guide Then name the new device This example uses the name TestDevice ...

Page 12: ... 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 1 2 3 4 ...

Page 13: ...ust 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 The specific permission policies can vary for your use cases Identify the permission policies that best meet your business and security requirements For sample policies refer to https doc...

Page 14: ...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 Click Security then click the certificate create in previous step ...

Page 15: ...EWN 8720CMN1AA Getting Started Guide ...

Page 16: ...EWN 8720CMN1AA Getting Started Guide ...

Page 17: ...ertos and select master for get newest source code The stable version could be found in Releases page 3 1 1 Cloning a repository by Download ZIP 1 On GitHub navigate to the main page of the repository 2 Above the list of files click Code 3 Click Donwload ZIP to get source code For more information please refer Cloning a repository from GitHub to GitHub Desktop ...

Page 18: ...EWN 8720CMN1AA Getting Started Guide Broker Endpoint Thing Name 3 2 Get Broker Endpoint by AWS IoT Core 3 3 Get Thing Name ...

Page 19: ...aster 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 amazon freertos blob master demos include aws_clientcredential_keys h by xxxxxxxx certifiacte pem and xxxxxxxx private pem key It can done by amazon freertos tools certificate_configuration CertificateConfigurator html ...

Page 20: ...EWN 8720CMN1AA Getting Started Guide Final aws_clientcredential_keys h overview ...

Page 21: ... in amazon freertos vendors realtek boards amebaZ2 aws_demos config_files and enable CONFIG_EXAMPLE_AMAZON_FREERTOS Fine aws_demo_config h in amazon freertos vendors realtek boards amebaZ2 aws_demos config_files and add CONFIG_MQTT_DEMO_ENABLED Now you can start to compile AmebaZ2 Amazon FreeRTOS ...

Page 22: ...y 4 3 Install IAR IDE IAR IDE provides the toolchain for Ameba ZII It allows users to write programs compile and upload them to your board Also it supports step by step debug function User can visit the official website of IAREmbedded Workbench and install the IDE by following its instructions Note Please use IAR version 8 30 or above 4 4 Compilation 1 Open amazon freertos projects realtek amebaZ2...

Page 23: ...eertos projects realtek amebaZ2 IAR aws_demos Debug Exe 1 partition bin stores partition table recording the address of Boot image and firmware image 2 bootloader bin is bootloader image 3 firmware_is bin is application image 4 flash_is bin links partition bin bootloader bin and firmware_is bin Users need to choose flash_is bin when downloading the image to board by Image Tool ...

Page 24: ...age Tool to generate and download images As show in picture below Image Tool has two menu pages Download used as image download server to transmit images to Ameba through UART Note If you need to download code via external uart must use FT232 USB to connect UART dongle Fig 5 1 AmebaZII ImageTool UI 5 2 Environment Setup 5 2 1 Hardware Setup The hardware connection diagram is shown below ...

Page 25: ...EWN 8720CMN1AA Getting Started Guide Fig 5 2 hardware connection diag ...

Page 26: ... switch to position 2 and finally flip the reset switch to position 1 b If the chip enters download mode the below log should be shown on log UART console Fig 5 3 Ameba ZII UART download mode c After confirming it is in download mode remember to disconnect the log UART console before using Image Tool to download because the tool will also need to connect to this log UART port Notes After downloadi...

Page 27: ...m flash memory 5 Choose correct Flash Pin according to the IC part number Flash Pin IC part number PIN_A7_A12 RTL8710CX RTL8720CM PIN_B6_B12 RTL8720CF 6 Choose the correct UART port use rescan to update the port list 7 Click Download to start downloading image While downloading the status will be shown on the left bar Note It s recommended to use the default settings unless user is familiar with t...

Page 28: ... Tera Term to get device log UART DOWNLOAD RESET Fig 6 1 Hardware setup The serial port is same with ImageTool that get from 5 4 step 6 6 2 Run MQTT Demo Default setting of SDK are enable MQTT demo Once the AmebaD EVB has rebooted the application will automatically start run MQTT demo and communicate to IoT Core ...

Page 29: ...EWN 8720CMN1AA Getting Started Guide ...

Page 30: ...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 3 In Subscription topic enter iotdemo and then choose Subscribe to topic ...

Page 31: ...EWN 8720CMN1AA Getting Started Guide ...

Page 32: ...urce of the problem For general troubleshooting information about Getting Started with FreeRTOS see Troubleshooting getting started 7 1 Image Tool Download Fail Please check device in UART_DOWNLOAD mode or not Refer 5 3 for more detail 7 2 ERROR Invalid Key Please check WIFI_SSID and WIFI_PASSWORD in in ambd_amazon freertos blob master demos include aws_clientcredential h ...

Page 33: ...se check clientcredentialMQTT_BROKER_ENDPOINT in ambd_amazon freertos blob master demos include aws_clientcredential h 7 4 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 ...

Reviews: