|
| 1 | +:orphan: |
| 2 | + |
| 3 | +.. espressif-board-variants |
| 4 | +
|
| 5 | +Board variants using Snippets |
| 6 | +============================= |
| 7 | + |
| 8 | +ESP32 boards can be assembled with different modules using multiple combinations of SPI flash sizes, PSRAM sizes and PSRAM modes. |
| 9 | +The snippets under ``snippets/espressif`` provide a modular way to apply these variations at build time without duplicating board definitions. |
| 10 | + |
| 11 | +The following snippet-based variants are supported: |
| 12 | + |
| 13 | +=============== ======================== |
| 14 | +Snippet name Description |
| 15 | +=============== ======================== |
| 16 | +*Flash memory size* |
| 17 | +----------------------------------------- |
| 18 | +``flash-4M`` Board with 4MB of flash |
| 19 | +``flash-8M`` Board with 8MB of flash |
| 20 | +``flash-16M`` Board with 16MB of flash |
| 21 | +``flash-32M`` Board with 32MB of flash |
| 22 | +--------------- ------------------------ |
| 23 | +*PSRAM memory size* |
| 24 | +----------------------------------------- |
| 25 | +``psram-2M`` Board with 2MB of PSRAM |
| 26 | +``psram-4M`` Board with 4MB of PSRAM |
| 27 | +``psram-8M`` Board with 8MB of PSRAM |
| 28 | +--------------- ------------------------ |
| 29 | +*PSRAM utilization* |
| 30 | +----------------------------------------- |
| 31 | +``psram-reloc`` Relocate flash to PSRAM |
| 32 | +``psram-wifi`` Wi-Fi buffers in PSRAM |
| 33 | +=============== ======================== |
| 34 | + |
| 35 | +To apply a board variant, use the ``-S`` flag with west build: |
| 36 | + |
| 37 | +.. zephyr-app-commands:: |
| 38 | + :tool: west |
| 39 | + :zephyr-app: samples/hello_world |
| 40 | + :board: <esp_board_name_qualifier> |
| 41 | + :goals: build |
| 42 | + :west-args: -S flash-32M -S psram-4M |
| 43 | + :compact: |
| 44 | + |
| 45 | +**Note:** These snippets are applicable to boards with compatible hardware support for the selected flash/PSRAM configuration. |
0 commit comments