Package · Boards
Freenove boards
The board files of the Freenove ESP32-S3 WROOM Board Lite (N16R8 and N16R16), read by the esp32 SDK from boards/esp32/ once the package is installed. No code, no requirements.
boards-freenove is a board package (Composer type bm-boards): a set of board files and nothing else. A project
that requires it can name any of its boards in extra.baremetal.board, as it names a board of the SDK. The esp32
SDK reads the files in boards/esp32/ and checks each one against its chips, exactly as it checks its own boards.
Requirements
None. The package requires neither the SDK nor any driver, and its composer.json has no extra.baremetal.
Whether a board fits the SDK in use is decided when the SDK loads it: a board that names a chip, a PSRAM type or a
block type the SDK does not support stops the build with a message that starts with the package and the file
(php-baremetal/boards-freenove: boards/esp32/<file>.json: ...).
Install
composer require php-baremetal/boards-freenove
phpbm init lists these boards next to the SDK's (the SDK names this package in board-packages of its
sdk.json) and, when you pick one, writes the package into the project's require and proposes the drivers of the
board's blocks. The conductor installs the package into .phpbm/packages/ and writes it into the manifest; the
build compiles nothing of it.
{
"name": "acme/led-demo",
"type": "project",
"repositories": [
{ "type": "composer", "url": "https://repository.php-baremetal.com", "canonical": true }
],
"require": {
"php-baremetal/conductor": "^1.0",
"php-baremetal/boards-freenove": "^1.0",
"php-baremetal/ext-sys": "^1.0",
"php-baremetal/led-ws2812": "^1.0"
},
"config": {
"allow-plugins": { "php-baremetal/conductor": true },
"platform": { "php": "8.5.13" }
},
"extra": {
"baremetal": {
"sdk": "esp32@^2.0",
"board": "freenove-esp32-s3-wroom-lite-n16r8",
"runtime": "init-loop",
"storage": "embedded"
}
}
}
Boards
| Board id | Product | Chip | PSRAM | Flash | Blocks |
|---|---|---|---|---|---|
freenove-esp32-s3-wroom-lite-n16r8 |
Freenove ESP32-S3 WROOM Board Lite (N16R8) | ESP32-S3 | octal | 16 MB | network wifi, led ws2812 |
freenove-esp32-s3-wroom-lite-n16r16 |
Freenove ESP32-S3 WROOM Board Lite (N16R16) | ESP32-S3 | octal | 16 MB | network wifi, led ws2812 |
The two files differ only in the module: ESP32-S3-WROOM-1-N16R8 (8 MB of octal PSRAM) or ESP32-S3-WROOM-1-N16R16V
(16 MB of octal PSRAM, 1.8 V; the firmware reads the PSRAM size and the voltage from the module). Both have
16 MB of flash and the console on the native USB port (usb-jtag).
Catalog
boards/catalog.json gives, for each board, the Freenove documentation page (docs) and a product photo
(photo), both online URLs, grouped by SDK name and keyed by board id. The package registry site uses it to link
and show the boards; the build does not read it, and it sits outside boards/esp32/, so the SDK does not take it
for a board. Freenove publishes one photo with both boards, so the package keeps a crop of each one in assets/
(the black board is the N16R8, the red one the N16R16), © Freenove, under CC BY-NC-SA 3.0; the catalog links them
from this package's repository.
Blocks and their drivers
A board's network block is handled by the SDK itself; the script connects to Wi-Fi with ext-wifi. The led
block is read by a driver package, which the project requires itself: a block without its driver is left alone.
The drivers name the blocks they handle in extra.baremetal.board-blocks.
| Block | Type | Package | Boards |
|---|---|---|---|
network |
wifi |
ext-wifi (to connect from PHP) | ESP32-S3 WROOM Board Lite (N16R8), ESP32-S3 WROOM Board Lite (N16R16) |
led |
ws2812 |
led-ws2812 | ESP32-S3 WROOM Board Lite (N16R8), ESP32-S3 WROOM Board Lite (N16R16) |
Board ids
The id is the file name without .json. If another source installed in the project (the SDK or another board
package) defines the same id, the short id is refused and the message names both sources; the long form picks
this package: "board": "php-baremetal/boards-freenove:freenove-esp32-s3-wroom-lite-n16r8".
A project changes the pins of a block, or adds a block, with board overrides, without editing the file.
Related
- Freenove ESP32-S3 WROOM Board Lite (N16R8) Board
- Supported boards SDK
- Board files SDK
- Board overrides SDK