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

ESP32-P4 with an ESP32-C6 companion for Wi-Fi and a microSD slot on SDMMC.

Board id waveshare-esp32-p4-wifi6, file boards/esp32/waveshare-esp32-p4-wifi6.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 default pins the SDK The microsd storage ("storage": "microsd").
network wifi-c6 none the SDK + ext-wifi The script connects with ext-wifi.

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
composer require php-baremetal/ext-wifi   # the blocks you use
json composer.json, extra.baremetal
{
  "sdk": "esp32@^2.0",
  "board": "waveshare-esp32-p4-wifi6",
  "runtime": "init-loop",
  "storage": "microsd"
}

Install only the drivers of the blocks the program uses: a block without its driver is left alone.

Notes

  • The ESP32-C6 companion is reached over SDIO; the firmware starts the link whenever ext-wifi is installed.
  • The microSD slot is SDMMC slot 0 in 4-bit mode on its default pins.

Related