Prerequisites
Before you begin, make sure you have the following:- A Pocketbyte DevKit
- A USB-C cable
- A Windows, macOS, or Linux computer
Steps
1
Install ESP-IDF
If you haven’t already, install ESP-IDF v5.x by following the official Espressif get-started guide for your operating system. After installation, source the environment script so that Verify the installation by checking the version:You should see output similar to
idf.py is available in your shell:ESP-IDF v5.x.x. If you see an error, make sure the environment is sourced correctly before continuing.If you are on Windows, you can directly proceed with this step using WSL 2. If you do not want to use WSL2, your best option is to use the VSCode extension.
2
Create a new ESP-IDF project
Create a new ESP-IDF project using the Set the build target to the ESP32-S3 so that the toolchain and configuration defaults match your Pocketbyte hardware:
idf.py create-project command. This sets up the standard directory structure including main/, CMakeLists.txt, and the required idf_component.yml manifest.3
Add the Pocketbyte component
From inside your project directory, add the Pocketbyte library as a managed component. The ESP-IDF component manager will fetch the latest compatible version and add it to your project’s dependency manifest automatically.You’ll see the component listed in
main/idf_component.yml after this command completes. The library source is downloaded automatically during the next build.4
Write a minimal main.c
Open
main/main.c and replace its contents with the following minimal program. This tests to see if the library can be linked properly and if the code can execute without any runtime errors.5
Build and flash to your device
Connect your Pocketbyte to your computer via USB. Build the project and flash it to the device.The device will reset after flashing and your app will start running immediately.
6
Build and flash to your device
Connect your Pocketbyte to your computer via USB. Build the project and flash it to the device.The device will reset after flashing and your app will start running immediately.
