Quickstart
Add Vittil to your ESP-IDF project and see its first crash on the Issues page.
- Add the SDK to your project.Terminal
idf.py add-dependency "vittil-io/vittil^0.1.5"
- Add these two lines to the end of
sdkconfig.Your project key is on Settings.sdkconfigCONFIG_VITTIL_PROJECT_KEY="your project key" CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
- Call
vittil_start()first inapp_main.main.c#include "vittil.h" void app_main(void) { vittil_start(); /* your code */ } - Build and flash.Your device is Live on the Devices page.Terminal
idf.py build flash monitor
- 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.
- Get the example.Terminal
git clone https://github.com/vittil-io/vittil.git cd vittil/examples/quickstart
- Enter your Wi-Fi name and password in
sdkconfig.defaults.Your project key is on Settings.sdkconfig.defaultsCONFIG_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"
- If your board is not an ESP32, set its chip, for example
esp32c3.Replaceesp32c3with your board's chip, such asesp32s3oresp32c6.Terminalidf.py set-target esp32c3
- 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
- Press the BOOT button.The device crashes and reboots. The crash is on the Issues page, decoded.
ESPHome
- 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 - Add your project key to
secrets.yaml.Your project key is on Settings.secrets.yamlvittil_project_key: "your project key"
- Build and flash.Your device is Live on the Devices page.Terminal
esphome run your-device.yaml