https://github.com/memfault/platformio-esp32-espidf
https://github.com/memfault/platformio-esp32-espidf
esp32 memfault platformio sample
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/memfault/platformio-esp32-espidf
- Owner: memfault
- Created: 2024-02-12T23:01:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-17T14:11:03.000Z (8 months ago)
- Last Synced: 2025-11-17T16:10:12.227Z (8 months ago)
- Topics: esp32, memfault, platformio, sample
- Language: C
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://docs.platformio.org/en/latest//core/installation.html#super-quick-mac-linux).
2. Initialize Memfault submodule:
```bash
git submodule update --init
```
3. Activate the PlatformIO virtual env
```bash
source ~/.platformio/penv/bin/activate
```
4. Install Memfault's dependencies
```bash
pip install -r third-party/memfault-firmware-sdk/requirements.txt
pip install memfault-cli
```
## Testing
1. Build with the platformio CLI:
```bash
pio run
```
2. Upload the symbol file to Memfault:
```bash
memfault \
--org-token $MEMFAULT_AUTH_TOKEN \
--org $MEMFAULT_ORG_SLUG \
--project $MEMFAULT_PROJECT_SLUG \
upload-mcu-symbols .pio/build/espidf/firmware.elf
```
3. Flash the device and start the serial monitor
```bash
pio run --target upload --target monitor
```
4. Join a wifi network
```plaintext
esp32> join
```
5. Save wifi settings to NVM so it connects automatically on boot
```plaintext
esp32> settings_set "wifi_ssid" "your network name"
esp32> settings_set "wifi_password" "your-wifi-password"
```