Advertisement

Quick Links

FreeRTOS-MAVID (EVB)
Quick Start Guide
Revision: 1.2
LIBRE CONFIDENTIAL
1
21
Libre Wireless Technologies
Page
of

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FreeRTOS-MAVID and is the answer not in the manual?

Questions and answers

Summary of Contents for Libre FreeRTOS-MAVID

  • Page 1 FreeRTOS-MAVID (EVB) Quick Start Guide Revision: 1.2 LIBRE CONFIDENTIAL Libre Wireless Technologies Page...
  • Page 2 Officer of Libre Wireless Technologies and further testing and/or modification will be fully at the risk of the customer. Copies of this document or other Libre Wireless Technologies literature, as well as the Terms of Sale Agreement, may be obtained by visiting Libre Wireless Technologies website.
  • Page 3: Table Of Contents

    1.3. Document Revision History ..........................5 FreeRTOS MAVID (EVB) ......................... 6 MAVID Evaluation Board (EVB) ........................6 EVB Product UI ..............................7 Libre FreeRTOS IoT Application Development ................9 3.1. Hardware Requirement ............................. 9 3.2. Software Requirement ............................9 3.3.
  • Page 4 FreeRTOS-MAVID (EVB) Table of Figures Figure 2.1-1: EVB PCBA Top View ........................6 Figure 2.1-2: EVB PCBA Bottom View ......................7 Figure 3.3-1: EVB PCBA Bottom View ......................10 Figure 3.4.2-1: IAR Project View ........................12 Figure 3.4.5-1: CONFIG_SHADOW_DEMO_ENABLED ................15 Figure 3.4.6-1: JTAG ............................
  • Page 5: Document Information

    FreeRTOS-MAVID (EVB) Document Information 1.1. Abstract This document explains the content of MAVID package for FreeRTOS. 1.2. Document Convention Icon Meaning Description Note Provides information good to know Caution Indicates situation that might result in loss of data or hardware damage 1.3.
  • Page 6: Freertos Mavid (Evb)

    FreeRTOS-MAVID (EVB) FreeRTOS MAVID (EVB) 2.1 MAVID Evaluation Board (EVB) EVB is a MAVID device-based reference design, used for customer evaluation purpose. Figure 2.1-1: EVB PCBA Top View Libre Wireless Technologies Quick Start Guide: Ver. 1.2 Page LIBRE CONFIDENTIAL...
  • Page 7: 2.2 Evb Product Ui

    FreeRTOS-MAVID (EVB) Figure 2.1-2: EVB PCBA Bottom View Refer the sections: UART debugging, Network setup, MAC ID update, and APP usage for more details. 2.2 EVB Product UI The MAVID EVB board has the following Switches and defined functionality as mentioned...
  • Page 8 FreeRTOS-MAVID (EVB) Here are the supported features in Libre’s current EVB Rev 2.0. • Micro USB for charging battery/Micro USB for powering up the EVB • Battery charging circuit • 6 nos. of buttons + 1 reset button - MIC mute/POWER ON-POWER OFF...
  • Page 9: Libre Freertos Iot Application Development

    • Teraterm/Putty/GTK-term or any similar serial port terminal application Download Teraterm from https://tera-term.en.softonic.com/download • Libre software development kit (contains software development SDK and ENV tool to generate custom ENV binary) Libre Wireless Technologies Quick Start Guide: Ver. 1.2 Page...
  • Page 10: Hardware Setup

    FreeRTOS-MAVID (EVB) 3.3. Hardware Setup Follow the below steps to setup the hardware components: Step 1. Connect the USB TTL cable to the device as shown below: Figure 3.3-1: EVB PCBA Bottom View Step 2. Connect the micro USB power cable to the device.
  • Page 11: Uart Debugging

    FreeRTOS-MAVID (EVB) UART debugging 3.3.1. Libre does run command line interpreter (CLI) over UART, it includes the following capabilities: • Does have the boot up logs with appropriate initialization state of each module, that point out the errors or exception with details.
  • Page 12: Launching Demo Project

    FreeRTOS-MAVID (EVB) 3.4.2 Launching demo project Launch the demo project by following the below method: Run FREERTOS_BASE_DIR\projects\libre\mavid\iar\ aws_demos\aws_demos.eww FREERTOS_BASE_DIR is the root directory of the FreeRTOS source code. Figure 3.4.2-1: IAR Project View 3.4.3 Update Credentials • Before compiling the demo application follow the steps below to configure the Wi-Fi and IoT Thing credentials •...
  • Page 13 FreeRTOS-MAVID (EVB) • Confirm that the AWS CLI is successfully installed: • Edit FREERTOS_BASE_DIR\tools\aws_config_quick_start\configure.json to update Wi-Fi credentials and thing name: Refer to FREERTOS_BASE_DIR\tools\aws_config_quick_start\README.md for more details. • In the command terminal navigate to path FREERTOS_BASE_DIR\tools\ aws_config_quick_start\ • From the command shell, run the python script SetupAWS.py with setup option as shown below: •...
  • Page 14: Compiling Mqtt Demo Application

    • In the Menu bar select Project  Make to compile the project. • After successful compilation, the output file aws_demos.bin_JTAG.bin is generated at FREERTOS_BASE_DIR\ projects\libre\mavid\iar\ aws_demos\Debug\Exe \ folder. • Load the binary file aws_demos.bin_JTAG.bin as explained in the section 3.4.6.Loading and Debugging Demo Application...
  • Page 15: Compiling Demo Application For Device Shadow

    Figure 3.4.5-1: CONFIG_SHADOW_DEMO_ENABLED • In the Menu bar select Project  Make to compile the project. • After successful compilation, the output file aws_demos.bin_JTAG.bin is generated at FREERTOS_BASE_DIR\projects\libre\mavid\iar\ aws_demos\Debug\Exe \ folder. • Load the binary file aws_demos.bin_JTAG.bin as explained in the section 3.4.6.Loading and Debugging Demo Application...
  • Page 16: Loading And Debugging Demo Application

    2) Loading ENV binary • Connect the ST-link debugger to the MAVID EVK as shown in Figure 3.4.5-1: JTAG • Run the bat file loadENV.bat located at “FreeRTOS\vendors\libre\mavid\tools\” and provide the path of env.bin as input argument. loadENV.bat D:\freeRTOS\vendors\libre\mavid\tools\ENV_tool E.g.:...
  • Page 17: Figure 3.4.6-2: Mqtt Demo Application Logs

    FreeRTOS-MAVID (EVB) ENV binary needs to be flashed only when there are any changes made to envitem.xml 3) Debugging Application • After the application is programmed, open the project you wish to debug in IAR. Select Project  Attach to Running Target from IAR menu bar. This opens the Debug view.
  • Page 18: Writing Custom Application

    • The values of ENV can be modified and new env can be added to envitem.xml. Refer “LibreWirelessTechNote - MAVID_NV_Items_V0.4” document for more details. • Go to FREERTOS_BASE_DIR\vendors\libre\mavid\tools\ENV_tool\ to generate new env.bin. Libre Wireless Technologies Quick Start Guide: Ver. 1.2...
  • Page 19 • In case a new ENV is added to envitem.xml, replace the env_uid.h at FREERTOS\vendors\libre\mavid\components\Inc with the newly generated env_uid.h. • Load the env.bin on MAVID as explained in Loading ENV binary of the section 3.4.6.Loading and Debugging Demo...
  • Page 20: Led Indication Status

    FreeRTOS-MAVID (EVB) LED Indication Status The MAVID EVB board has the following System and AVS LED as mentioned below: 4.1 System LED State LED Indication Power On RED Solid Power OFF No Indication Libre Wireless Technologies Quick Start Guide: Ver. 1.2...
  • Page 21: Troubleshooting

    FreeRTOS-MAVID (EVB) Troubleshooting For general troubleshooting information about Getting Started with FreeRTOS, Troubleshooting Getting Started. Libre Wireless Technologies Quick Start Guide: Ver. 1.2 Page LIBRE CONFIDENTIAL...

Table of Contents