Arduino driver for communicating with Espressif's esp-hosted-fg firmware.
The library is meant to serve as low level driver for a LwIP network interface implementation.
The library was originally written for Arduino Portenta C33 with Arduino Renesas Core.
Pins are configured with defines. To add the defines, modify boards.txt or create boards.local.txt next to boards.txt and add .build.extra_flags=. For boards with defines for the WiFiNINA library it is enough to add -DESPHOSTSPI
.
Complete settings require to specify pins. Example:
rpipico.build.extra_flags=-DESPHOST_RESET=D5 -DESPHOST_HANDSHAKE=D7 -DESPHOST_DATA_READY=D6 -DESPHOST_CS=D10 -DESPHOSTSPI=SPI
Default SPI frequency set in the library is 10 MHz. It is the highest SPI speed for classic ESP32. Firmware for C and S series ESP32 are build with higher SPI frequency. To specify the SPI frequency to be used by the ESPHost library, add -DESPHOSTSPI_MHZ=30
to <board>.build.extra_flags
.
- the released fg fw for classic ESP32 uses SPI on pins [12, 13, 14, 15] even the doc says it is [23, 19, 18, 5]
- firmware builds for specific boards are in extras/firmware