Giter VIP home page Giter VIP logo

demo_ew's Introduction

Demo_EW

Demo examples for Embedded World:

Prerequisites

Tools:

CMSIS packs: see examples for list of required packs

AWS MQTT Demo

Subdirectory: AWS_MQTT_MutualAuth_Demo

Demo for connecting to AWS cloud. See details in README.md.

Note: Make sure to update the credentials as described.

Demo is available for the following targets:

  • IP-Stack: runs on IMXRT1050-EVKB board and uses FreeRTOS+TCP with Ethernet
  • WiFi:
    • runs on B-U585I-IOT02A board and uses WiFi interface with on-board WiFi module (default)
    • runs on IMXRT1050-EVKB board and uses WiFi interface with ESP8266 WiFi module (alternative A)
    • runs on IMXRT1050-EVKB board and uses WiFi interface with WizFi360 WiFi module (alternative B)
  • AVH: runs on Arm Virtual Hardware Targets (MPS3 platform for Corstone-300)

Required CMSIS packs are listed in the Demo.csolution.yml file.

Target: IP-Stack

Board: IMXRT1050-EVKB
Connectivity: FreeRTOS+TCP with Ethernet

  1. Use csolution to create .cprj project files
    csolution convert -s Demo.csolution.yml -c Demo.Debug+IP-Stack
    csolution convert -s Demo.csolution.yml -c Demo.Release+IP-Stack

  2. Build a specific project

  • use cbuild
    cbuild Demo.Debug+IP-Stack.cprj
    cbuild Demo.Release+IP-Stack.cprj
  • or use MDK and import Demo.<build-type>+IP-Stack.cprj and build with MDK
    Note: due to current importer limitation it is necessary to manually add the following preprocessor define MBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
  1. Run the demo
  • connect the board Debug USB to a PC (provides also power)
  • open terminal on PC and connect to board's serial port (Baud rate: 115200)
  • program the image to the target
    • when using MDK:
      • select CMSIS-DAP Debugger (Options for Target - Debug)
      • use Flash Download to program the image
  • reset the target and observe messages in the terminal

Target: WiFi

Board: B-U585I-IOT02A
Connectivity: WiFi interface with WiFi module

  1. Use csolution to create .cprj project files
    csolution convert -s Demo.csolution.yml -c Demo.Debug+WiFi
    csolution convert -s Demo.csolution.yml -c Demo.Release+WiFi

  2. Build a specific project

  • use cbuild
    cbuild Demo.Debug+WiFi.cprj
    cbuild Demo.Release+WiFi.cprj
  • or use MDK and import Demo.<build-type>+WiFi.cprj and build with MDK
    Note: due to current importer limitation it is necessary to manually add the following preprocessor define MBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
  1. Run the demo
  • connect the board ST-Link USB to a PC (provides also power)
  • open terminal on PC and connect to board's serial port (Baud rate: 115200)
  • program the image to the target
    • when using MDK:
      • use Flash Download to program the image
  • reset the target and observe messages in the terminal

Demo can run also on IMXRT1050-EVKB bard with external WiFi module (ESP8266 or WizFi360). Modify the following project files:

  • Demo.csolution.yml:
    • change the target type WiFi to use device: MIMXRT1052DVL6B
  • Demo.cproject.yml:
    • include IMXRT1050-EVKB Board layer for WiFi target
    • exclude B-U585I-IOT02A Board layer for WiFi target
  • Board/IMXRT1050-EVKB/Board.clayer.yml:
    • enable external WiFi module:
      - component: Keil::CMSIS Driver:WiFi:ESP8266&UART or
      - component: Keil::CMSIS Driver:WiFi:WizFi360&UART

Target: AVH

Arm Virtual Hardware: MPS3 platform for Corstone-300
Connectivity: Socket interface with VSocket

  1. Use csolution to create .cprj project files
    csolution convert -s Demo.csolution.yml -c Demo.Debug+AVH
    csolution convert -s Demo.csolution.yml -c Demo.Release+AVH

  2. Build a specific project

  • use cbuild
    cbuild Demo.Debug+AVH.cprj
    cbuild Demo.Release+AVH.cprj
  • or use MDK and import Demo.<build-type>+AVH.cprj and build with MDK
    Note: due to current importer limitation it is necessary to manually add the following preprocessor define MBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\"
  1. Run the demo
  • within uVision (MDK):
    • select Models ARMv8-M Debugger (Options for Target - Debug)
    • click debugger settings and enter:
      • Command: $KARM\VHT\VHT_MPS3_Corstone_SSE-300.exe
  • when running standalone (via command line) and VHT executable in path):
    VHT_MPS3_Corstone_SSE-300 -C mps3_board.visualisation.disable-visualisation=1 -C mps3_board.telnetterminal0.start_telnet=0 -C mps3_board.uart0.out_file=- -a <image>

AWS MQTT OTA with TF-M Demo

Subdirectory: AWS_MQTT_OTA_TFM

Demo for secure Over-The-Air firmware update using Amazon AWS for STM32U5. See details in README.md.

Blinky project

Subdirectory: Blinky

Simple project blinking LEDs. See details in README.md.

Demo is available for the following targets:

  • B-U585I-IOT02A: runs on B-U585I-IOT02A board
  • AVH_MPS3_Corstone-300: runs on Arm Virtual Hardware Targets (MPS3 platform for Corstone-300)

Required CMSIS packs are listed in the Blinky.csolution.yml file.

Target: B-U585I-IOT02A

Board: B-U585I-IOT02A

  1. Use csolution to create .cprj project files
    csolution convert -s Blinky.csolution.yml -c Blinky.Debug+B-U585I-IOT02A
    csolution convert -s Blinky.csolution.yml -c Blinky.Release+B-U585I-IOT02A

  2. Build a specific project

  • use cbuild
    cbuild Blinky.Debug+B-U585I-IOT02A.cprj
    cbuild Blinky.Release+B-U585I-IOT02A.cprj
  • or use MDK and import Blinky.<build-type>+B-U585I-IOT02A.cprj and build with MDK
  1. Run the demo
  • connect the board Debug USB to a PC (provides also power)
  • program the image to the target
  • run the program

Target: AVH_MPS3_Corstone-300

Arm Virtual Hardware: MPS3 platform for Corstone-300

  1. Use csolution to create .cprj project files
    csolution convert -s Blinky.csolution.yml -c Demo.Debug+AVH_MPS3_Corstone-300
    csolution convert -s Blinky.csolution.yml -c Demo.Release+AVH_MPS3_Corstone-300

  2. Build a specific project

  • use cbuild
    cbuild Blinky.Debug+AVH_MPS3_Corstone-300.cprj
    cbuild Blinky.Release+AVH_MPS3_Corstone-300.cprj
  • or use MDK and import Blinky.<build-type>+AVH_MPS3_Corstone-300.cprj and build with MDK
  1. Run the demo
  • within uVision (MDK):
    • select Models ARMv8-M Debugger (Options for Target - Debug)
    • click debugger settings and enter:
      • Command: $KARM\VHT\VHT_MPS3_Corstone_SSE-300.exe
  • when running standalone (via command line) and VHT executable in path):
    VHT_MPS3_Corstone_SSE-300 -a <image>

Edge Impulse example

Subdirectory: EdgeImpulse

Machine learning demo. See details in README.md.

demo_ew's People

Contributors

robertrostohar avatar brondani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.