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-P4

Waveshare ESP32-P4-ETH

ESP32-P4 with on-chip Ethernet (IP101 PHY) and a microSD slot on SDMMC.

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

Property Value
Chip ESP32-P4 (esp32p4)
PSRAM hex
Flash 32 MB
Revision v1
Console uart

Blocks

Block Type Keys Handled by Notes
microsd sdio pwr_en 45 the SDK The microsd storage ("storage": "microsd").
network emac rst 51 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-p4-eth",
  "runtime": "init-loop",
  "storage": "microsd"
}

Notes

  • The microSD slot is SDMMC slot 0 in 4-bit mode on its default pins (clk 43, cmd 44, d0 39, d1 40, d2 41, d3 42), with the card power switch on GPIO 45 (pwr_en).
  • The Ethernet PHY is an IP101, reset on GPIO 51.
  • The ESP32-P4 has no radio: ext-wifi is refused on this board.

Related