Coder Social home page Coder Social logo

mcuxpresso-rt1060-example's Introduction

MIMXRT1060-EVKB Memfault Network Example

Example application for MCUXpresso, based on the lwip_httpscli_mbedTLS_freertos sample from the SDK_2.10.1_MIMXRT1060-EVKB from NXP.

See information about the base example project in doc/readme.txt.

This project adds the Memfault SDK as a Git submodule, and enables the Memfault demo console commands for testing Memfault end-to-end.

You can find some information about how this project was set up here:

https://memfault.notion.site/NXP-RT1060-MCUXpresso-IDE-Sample-Project-812cc47b74bb4b1b9c2345009cc47da3

Instructions

  1. clone this repo, with submodules:

    ❯ git clone --recurse-submodules https://github.com/memfault/mcuxpresso-rt1060-example.git
  2. import the project into MCUXpresso

  3. configure the Memfault project key in lwip_httpscli_mbedTLS/httpsclient.c

  4. build + flash to the board. connect an Ethernet cable with internet access.

  5. open a serial terminal to the CMSIS-DAP UART port on the board to access the serial console:

    # example, using pyserial-miniterm
    ❯ pyserial-miniterm --raw /dev/ttyACM0 115200

The board will automatically attempt to bring up the network interface on boot. If it fails, posting data from the board will not work, but the CLI will still be available for manually uploading chunk data.

A periodic timer runs that will attempt to upload any data generated by the Memfault library (core dumps, metrics, etc). A few example metrics are provided by default, see source/memfault_metrics_heartbeat_config.def.

The serial console provides some test commands:

  • post_chunks will attempt to connect and upload Memfault data. Be sure to upload a symbol file to see decoded data on the Memfault web app (upload the .axf file, either via the web app or using the Memfault CLI tool)
  • crash [optional crash type number 0-4] will trigger a crash and a coredump, which will be uploaded when the device reboots and reconnects

Note: be sure to detach the debugger before running the crash/reboot commands. Depending on configuration, that can prevent the board from correctly resetting.

mcuxpresso-rt1060-example's People

Contributors

noahp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.