Building firmware¶
To build firmware for a NeedForHeat measurement device, first open the root folder of the firmware directory in Visual Studio Code.
Building firmware¶
- Click the PlatformIO Icon (the little alien in the left of the screen).
- Unfold
M5STACK_COREINK
when building for M5Stack CoreInk, for other platforms unfoldESP32DEV
.Do not use the 'ESP32DEV' environment for M5Stack CoreInk board! It does work, but some features specific to the M5Stack CoreInk will not be included in the firmware, which cause problems during run-time.
- Click
Upload and Monitor
.The first time might take a while because PlatformIO needs to install and build the ESP-IDF before it can upload the firmwware.
- When it is done uploading, press
CTRL+T
and thenB
, then type115200
so that it sets the right baud rate and you see text not gibberish. - To provision the device, use the NeedForHeat app or another app that supports Espressif Unified Provisioning.