ESP_ERROR_CHECK failed, expression: esp_intr_alloc Example TERMINAL output: In this example, the installation of the TWAI driver failed because the system ran out of CPU interrupt inputs. This can happen when several drivers or subsystems are initialized. Something along the lines of this suggestion might help. See our page on this issue here. See the Espressif […]
All posts by
REQUIRES list
General REQUIRES page see here. ESP-IDF specific REQUIRES list If you don’t have a REQUIRES list in CMakeLists.txt that is declaring dependencies on certain special components, you typically don’t have to add basic components as REQUIRES also, due to the implicit dependency behaviour of main component (see here). If you do have a REQUIRES section, you […]
FAT project settings
Configure project Menu > View > Command Palette > Type: “ESP-IDF: SDK Configuration editor” (or use CTRL+E then G)Wait for it to load Scroll down to the “FAT Filesystem support” section
USB Memory stick
See here.
.USB memory stick general
Documentation Espressif USB Host USB Host MSC (Mass Storage Class) Driver USB Mass Storage Class example Espressif sample project ESP-IDF sample project > USB > host > msc You can use this to prove your hardware works with the USB memory stick. Adding USB MSC to an existing project Adding the component See https://components.espressif.com/components/espressif/usb_host_msc and […]
SD Card
See here.
Encryption libraries
ESP-IDF comes with the mbedtls library. Getting started with Mbed TLS. Apparently, you can also swap in wolfSSL instead – see here.
Long file names
There is a “ESP-IDF: SDK Configuration editor” setting to enable Long filename support. Open menuconfig (see here for how to) Component config > FAT Filesystem support > Long filename support Choosing heap or stack to store long filenames? Both are stored in RAM so arguably it doesn’t matter too much. A general guide though is […]
File access functions
Path to USB drive Everything else… See here.
.SD/MMC Card general
Documentation SD/SDIO/MMC Driver FAT Filesystem Support FatFs library API Support Good, startoff with the Espressif sample project as a way to get up and running writing and reading a card simply. Supports 1bit and 4bit SD card interfaces. Raw Access The API provides functions that can read and write sectors directly if you don’t want […]
