Skip to content
php-baremetal REGISTRY
Publish a package

php-baremetal/boards-waveshare

bm-boards MIT

Board files of the Waveshare for php-baremetal: chip, memory, console and the on-board peripherals with their pins.

needs no platform HAL

boards-waveshare · ESP32-S3

Waveshare ESP32-S3-ETH

ESP32-S3 with a W5500 Ethernet controller on SPI and a microSD slot on SPI.

Board id waveshare-esp32-s3-eth, file boards/esp32/waveshare-esp32-s3-eth.json.

Property Value
Chip ESP32-S3 (esp32s3)
PSRAM octal
Flash 16 MB
Console usb-jtag

Blocks

Block Type Keys Handled by Notes
microsd spi cs 4, sclk 7, mosi 6, miso 5 the SDK The microsd storage ("storage": "microsd").
network w5500 cs 14, int 10, rst 9, sclk 13, mosi 11, miso 12 the SDK Brought up before PHP starts when the network is on.

Pins are GPIO numbers, or pins of the board's expander (exio1). The keys are described in Board files; a project changes them with board overrides.

Use it in a project

bash in the project folder
composer require php-baremetal/boards-waveshare
json composer.json, extra.baremetal
{
  "sdk": "esp32@^2.0",
  "board": "waveshare-esp32-s3-eth",
  "runtime": "init-loop",
  "storage": "embedded"
}

Notes

  • The microSD card takes the SPI3 host and the W5500 SPI2 (20 MHz): with both in use, ext-spi has no host left.
  • The firmware forbids light sleep while the W5500 runs (power-save on): the controller signals a packet with an edge that light sleep would miss.
  • ESP32-S3 has a radio too: with ext-wifi, Wi-Fi runs next to Ethernet.

Related