Murata ABR Getting Started Manual

Murata ABR Getting Started Manual

Aws freertos sdk

Advertisement

Quick Links

TypeABR AWS FreeRTOS SDK
Version :
Author :
Document ID :
Release Date :
Murata reserves the right to make changes in specifications at anytime and without notice. The information
furnished in this data sheet is believed to be accurate and reliable. However, no responsibility is assumed by
Murata for its use,no any infringements of patents or other rights of third parties resulting from its use.
No license is generated under any rights of Murata or its supporters unless specifically agreed.
Getting Started Guide
Notice
Preliminary & Public
Murata Manufacturing Co., Ltd.
Document ID : S10204
0.2.0
SyChip Engineering
S10204
August 11, 2020
User manual

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Murata ABR

  • Page 1 However, no responsibility is assumed by Murata for its use,no any infringements of patents or other rights of third parties resulting from its use. No license is generated under any rights of Murata or its supporters unless specifically agreed.
  • Page 2: Table Of Contents

    CONTENTS 1 Introduction Scope ..............................2 Audience ..............................2 Contact Information and Support ......................2 Text Conventions ............................ 2 Acronyms ............................... 3 Related Documents ..........................3 2 Overview System Diagram ............................. 4 Preparation ............................. 5 2.2.1 Hardware Preparation ....................... 5 2.2.2 Software Preparation ........................
  • Page 3 TypeABR AWS FreeRTOS SDK Getting Started Guide Revision History Revision Date Description V0.1.0 2020-06-17 • Initial version. V0.2.0 2020-08-11 • Add the section for LastWillAndTestament test case. • Revise for public release. CONTENTS...
  • Page 4: Introduction

    AWS Demo on Murata TypeABR module. 1.2 Audience This document is intended for software/firmware engineers to evaluate AWS IOT with Murata TypeABR module. 1.3 Contact Information and Support For general contact, technical support services, technical questions and report documentation errors contact Mu- rata Technical Support window.
  • Page 5: Acronyms

    TypeABR AWS FreeRTOS SDK Getting Started Guide 1.5 Acronyms Abbr. Description Evaluation Board 1.6 Related Documents • [DS] TypeABR_Module_Datasheet.pdf, Murata • [UG] CMWC1ZZABR EVB Hardware Manual.pdf, Murata • [AN] S10093-TypeABR_Firmware_Upgrade_Guide.pdf, Murata 1.5. Acronyms...
  • Page 6: Overview

    CHAPTER OVERVIEW This tutorial contains instructions for the following getting started steps: 1. Required preparation materials. 2. Connecting your board to a host machine. 3. Installing software on the host machine for developing and debugging embedded applications. 4. Cross-compiling a FreeRTOS demo application to a binary image. 5.
  • Page 7: Preparation

    TypeABR AWS FreeRTOS SDK Getting Started Guide 2.2 Preparation 2.2.1 Hardware Preparation Table 2.1: Hardware Preparation Name Quantity Comment TypeABR EVB TypeABR Evaluation Kit USB-to-UART adaptor& cable Monitoring the log J-Link JTAG adaptor for loading image Laptop with Ubuntu/Linux OS Host machine for cross-compiling and load image AP Router Provide Internet access to AWS Cloud Server...
  • Page 8: Build The Aws Freeertos Sdk

    CHAPTER THREE BUILD THE AWS FREEERTOS SDK The below steps were verified on Ubuntu x86_64 GNU/Linux OS. 3.1 Set up development environment 1. Install the required packages sudo apt-get install lib32ncursesw5 lib32z1 lib32ncurses5 libbz2-1.0:i386 libncurses5-dev lib32ncurses5-dev libncursesw5-dev C → 2. Install the gcc-arm-none-eabi toolchain. wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc- arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2...
  • Page 9: Aws Freeertos Sdk Modifications

    TypeABR AWS FreeRTOS SDK Getting Started Guide 3.3 AWS FreeeRTOS SDK Modifications 1. Modify board file for TypeABR module Modify below settings in mw300_rd.c located in aws_freertos/vendors/marvell/WMSDK/mw320/sdk/src/boards board_32k_osc() return false; void board_uart_pin_config(int switch (id) case UART0_ID: GPIO_PinMuxFun(GPIO_2, GPIO2_UART0_TXD); GPIO_PinMuxFun(GPIO_3, GPIO3_UART0_RXD); GPIO_PinMuxFun(GPIO_0, GPIO0_UART0_CTSn);...
  • Page 10: Build The Aws Demos Firmware

    TypeABR AWS FreeRTOS SDK Getting Started Guide #define keyCLIENT_PRIVATE_KEY_PEM "-----BEGIN CERTIFICATE-----\n"\ "...base64 data...\n"\ "-----END CERTIFICATE-----\n" 3.4 Build the AWS demos firmware The firmware file aws_demos.bin is located in build after below commands. amazon-freertos cmake -DVENDOR=marvell -DBOARD=mw320 -DCOMPILER=arm-gcc -S . -B build -DAFR_ENABLE_ TESTS=0 C →...
  • Page 11: Run The Firmware

    CHAPTER FOUR RUN THE FIRMWARE 4.1 Download the firmwares Using below commands to download the firmwares into TypeABR module. export DEBUG_INTERFACE=jlink ./vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/flashprog.py -l ./vendors/marvell/ WMSDK/mw320/sdk/tools/OpenOCD/mw300/layout.txt --boot2 ./vendors/marvell/WMSDK/ C → mw320/boot2/bin/boot2.bin C → ./vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/flashprog.py --wififw ./vendors/ marvell/WMSDK/mw320/wifi-firmware/mw30x/mw30x_uapsta_W14.88.36.p135.bin C → ./vendors/marvell/WMSDK/mw320/sdk/tools/OpenOCD/flashprog.py --mcufw ./build/ marvell/mw320/aws_demos.bin -r C →...
  • Page 12: Monitoring Mqtt Messages On The Cloud

    TypeABR AWS FreeRTOS SDK Getting Started Guide 4.3 Monitoring MQTT messages on the cloud You can use the MQTT client in the AWS IoT console to monitor the messages that your device sends to the AWS Cloud. To subscribe to the MQTT topic with the AWS IoT MQTT client 1.
  • Page 13: Lastwillandtestament

    CHAPTER FIVE LASTWILLANDTESTAMENT TypeABR module have passed all of the required FreeRTOS qualification tests. However, some modifications are required to pass the LastWillAndTestament test case. TEST(MQTT_System, LastWillAndTestament)/libraries/c_sdk/standard/mqtt/test/system/ C→ This test case requires plenty of heap memory for two MQTT connection, so the default configuration needs to be modified to reduce the firmware size and release more memory.
  • Page 14 TypeABR AWS FreeRTOS SDK Getting Started Guide #define testrunnerFULL_OTA_CBOR_ENABLED #define testrunnerFULL_OTA_AGENT_ENABLED #define testrunnerFULL_OTA_PAL_ENABLED #define testrunnerFULL_MQTT_ALPN_ENABLED #define testrunnerFULL_PKCS11_ENABLED #define testrunnerFULL_CRYPTO_ENABLED #define testrunnerFULL_MQTT_STRESS_TEST_ENABLED #define testrunnerFULL_MQTT_AGENT_ENABLED #define testrunnerFULL_TCP_ENABLED #define testrunnerFULL_GGD_ENABLED #define testrunnerFULL_GGD_HELPER_ENABLED #define testrunnerFULL_SHADOW_ENABLED #define testrunnerFULL_MQTTv4_ENABLED #define testrunnerFULL_WIFI_ENABLED #define testrunnerFULL_MEMORYLEAK_ENABLED #define testrunnerFULL_TLS_ENABLED #define testrunnerFULL_HTTPS_CLIENT_ENABLED 2.
  • Page 15: Reference Patches

    5.2 Reference Patches The provided patch files can also be used to complete the above reference solution for code changes. • murata_typeabr_module_board_for_amazon-freertos.patch: This patch file is used for modifying the board file for murata TypeABR module. • murata_typeabr_fixs_LastWillAndTestament_for_amazon-freertos.patch: This patch file is used for modifying the SDK files to pass the LastWillAndTestament test.
  • Page 16: Precondition To Use Our Products

    CHAPTER PRECONDITION TO USE OUR PRODUCTS PLEASE READ THIS NOTICE BEFORE USING OUR PRODUCTS. Please make sure that your product has been evaluated and confirmed from the aspect of the fitness for the speci- fications of our product when our product is mounted to your product. All the items and parameters in this product specification/datasheet/catalog have been prescribed on the premise that our product is used for the purpose, under the condition and in the environment specified in this specification.
  • Page 17 TypeABR AWS FreeRTOS SDK Getting Started Guide intellectual property. Please do not use our products, our technical information and other data provided by us for the purpose of developing of mass-destruction weapons and the purpose of military use. Moreover, you must comply with foreign exchange and foreign trade law, the U.S.

This manual is also suitable for:

Cmwc1zzabr

Table of Contents