Skip to content

memfault/platformio-esp32-espidf

Repository files navigation

Platformio project for an ESP32 using ESP-IDF

This is a sample project for integrating Memfault with a PlatformIO project using the ESP-IDF framework.

Setup

  1. Install PlatformIO CLI using the instructions here.

  2. Initialize Memfault submodule:

git submodule update --init
  1. Activate the PlatformIO virtual env
source ~/.platformio/penv/bin/activate
  1. Install Memfault's dependencies
pip install -r src/memfault/memfault-firmware-sdk/requirements.txt
pip install memfault-cli

Testing

  1. Build with the platformio CLI:
pio run
  1. Upload the symbol file to Memfault:
memfault \
--org-token $MEMFAULT_AUTH_TOKEN \
--org $MEMFAULT_ORG_SLUG \
--project $MEMFAULT_PROJECT_SLUG \
upload-mcu-symbols .pio/build/espidf/firmware.elf
  1. Flash the device and start the serial monitor
pio run --target upload --target monitor
  1. Join a wifi network
esp32> join <ssid> <password>
  1. Save wifi settings to NVM so it connects automatically on boot
esp32> settings_set "wifi_ssid" "your network name"
esp32> settings_set "wifi_password" "your-wifi-password"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages