Vittil

Quickstart

Add Vittil to your ESP-IDF project and see its first crash on the Issues page.

  1. Add the SDK to your project.
    Terminal
    idf.py add-dependency "vittil-io/vittil^0.1.5"
  2. Add these two lines to the end of sdkconfig.
    Your project key is on Settings.
    sdkconfig
    CONFIG_VITTIL_PROJECT_KEY="your project key"
    CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
  3. Call vittil_start() first in app_main.
    main.c
    #include "vittil.h"
    
    void app_main(void)
    {
        vittil_start();
        /* your code */
    }
  4. Build and flash.
    Your device is Live on the Devices page.
    Terminal
    idf.py build flash monitor
  5. To test, call abort() once.
    After the reboot, the crash is on the Issues page, decoded.

Example

  • See a decoded crash without changing your own code.
  • The example is a complete ESP-IDF project that connects to Wi-Fi, starts Vittil and crashes when you press the BOOT button.
  • You need an Espressif board, ESP-IDF 5.5 or later and a 2.4 GHz Wi-Fi network.
  1. Get the example.
    Terminal
    git clone https://github.com/vittil-io/vittil.git
    cd vittil/examples/quickstart
  2. Enter your Wi-Fi name and password in sdkconfig.defaults.
    Your project key is on Settings.
    sdkconfig.defaults
    CONFIG_VITTIL_PROJECT_KEY="your project key"
    CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
    
    CONFIG_EXAMPLE_WIFI_SSID="your network"
    CONFIG_EXAMPLE_WIFI_PASSWORD="your password"
  3. If your board is not an ESP32, set its chip, for example esp32c3.
    Replace esp32c3 with your board's chip, such as esp32s3 or esp32c6.
    Terminal
    idf.py set-target esp32c3
  4. Connect the board by USB, then build and flash.
    Once the device connects to Wi-Fi, it is Live on the Devices page.
    Terminal
    idf.py build flash monitor
  5. Press the BOOT button.
    The device crashes and reboots. The crash is on the Issues page, decoded.

ESPHome

  1. Add these lines to your device's yaml.
    your-device.yaml
    external_components:
      - source: github://vittil-io/vittil
        components: [vittil]
    
    vittil:
      project_key: !secret vittil_project_key
  2. Add your project key to secrets.yaml.
    Your project key is on Settings.
    secrets.yaml
    vittil_project_key: "your project key"
  3. Build and flash.
    Your device is Live on the Devices page.
    Terminal
    esphome run your-device.yaml