Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 3.48 KB

MCU_based_readme.md

File metadata and controls

69 lines (51 loc) · 3.48 KB

Getting Started with MCU based host

  • Directory structure for microprocessor based host is explained here
  • Below diagram shows hardware and software block diagram for a typical MCU based system built with ESP-Hosted.

ESP-Hosted Block Diagram

1. Development Environment Setup

1.1 Preconditions

1.1.1 STM32CubeIDE installation

We recommend the latest version of STM32CubeIDE from STMicroelectronics on PC. User can download IDE from Here.

1.1.2 Tools for testing

  • Arping: Arping software is needed for testing the project. Arping is a software tool which probes hosts on the network link by sending Link Layer frames using the ARP request to host identified by its MAC address. More details could be found on this link.

    To install arping on ubuntu based system, please use

     $ sudo apt install arping
    

    For installation on Windows hosts, check this link

    arping can easily be installed on other architectures.

  • Serial port communication program: For Linux and Mac development hosts, minicom is needed. For Windows based hosts Tera Term is needed.

1.1.3 Things worth noting

  • Porting solution to Non-STM32 MCUs ESP-Hosted solution using one ESP chipset and host and other as slave can be found at ESP as Host This solution can be checked for easy porting to non-STM32 based MCUs. Port layer is much simplified here. Formal support is coming soon in upcoming releases.

  • Network stack integration Although currently network stack is kept open to port for user, in the upcoming releaes, we plan to showcase lwip as example network stack. Sample example of porting done by Dror Gluska can be referred at https:/drorgl/stm32-lwip-esp-hosted

  • Clock considerations for STM32 For STM32 based hosts, the default clocks are intentionally kept smaller for simplicity. Once base solution is working, It is recommended to increase/tune the SPI clock using ioc in STM32CubeIDE or STM32CubeMX.

1.1.4 ESP-Hosted Code Repository

Clone ESP-Hosted repository on machine, where STM32CubeIDE used to connect/flash to host.

$ git clone --recurse-submodules <url_of_esp_hosted_repository>
$ cd esp-hosted
$ git submodule update --init --recursive

2. Setup

Prepare connections based on interface requirements and setup ESP peripheral as below.

3. ESP-Hosted Usage Guide

Following guide explains how to use ESP-Hosted soultion with MCU based platform.