Introducing a new way to review your PRs.

Read the announcement

hathach / tinyusb

An open source cross-platform USB stack for embedded system

View on GitHub

18 documents · Updated Nov 23, 2026

docs / board-support-and-targets

Board support and build targets

The board support package (BSP) gives each supported board a common startup path and a small board API for TinyUSB examples. Family rules combine board data with MCU support, USB controller support, and example filters to produce device, host, dual-role, and Type-C build targets. See Platform integration for the wider platform model.

BSP structure

Family and board layers

The BSP uses a two-level model. A family groups boards that share an MCU line or vendor software. A board adds the hardware facts that the family cannot infer, such as pins, clocks, memory choices, and flash settings. Common family work stays in hw/bsp/<family>/, while board choices stay in hw/bsp/<family>/boards/<board>/.

The family layer normally provides:

  • MCU software and include paths.
  • Startup and linker selection rules.
  • USB port and speed defaults.
  • Shared board-target and example setup.

The board layer normally provides:

  • The MCU variant and board-specific definitions.
  • Clock and peripheral wiring.
  • LED, button, UART, and VBUS behavior.
  • Linker memory and flash-tool settings.

This split lets several boards share MCU and USB support without moving board wiring into examples. The CH32V4X7 family follows the same boundary. Its family files select the WCH SDK, RISC-V toolchain, startup and linker inputs, and high-speed USB controller. The ch32v407_r0 board files add the board identity and map the common LED, button, and UART contract to the evaluation board.

The changed CH32V30X family follows the same boundary while allowing its device speed and host controller to select USBFS or USBHS. Its family files select the CH32V307 WCH SDK, RISC-V toolchain, startup image, linker image, and both WCH controller paths. The board hook supplies the board-specific values.

Board hooks can also add limits or target-specific build choices that the family cannot infer. For example, nanoch32v305 sets its flash and RAM sizes and disables the high-throughput lwIP mode, while the STM32H503 and LPCXpresso55S69 definitions select MCU, clock, core, USB-port, and debug-tool settings for their boards.

The NXP LPC families use the same split across two SDK styles. LPC11, LPC13, and LPC15 use LPCOpen support. LPC51, LPC54, and LPC55 use MCUXpresso support. The family files provide shared MCU, startup, linker, USB port, speed, and controller rules. Board hooks select the MCU variant and physical board settings. LPC54 and LPC55 also place high-speed USB data in the memory region required by that controller.

The Renesas Synergy family applies the same split to the S124 Development Kit. The family owns the SSP and CMSIS boundary, USB port and speed defaults, startup inputs, and common image rules. The board owns the S124 variant, linker image, J-Link identity, SSP libraries, and the small-RAM example limits.

The Renesas RA family uses the same model for its FSP-based boards. The family owns the common RA startup, clock, I/O, linker, and RUSB2 support. The board supplies the MCU variant, generated board data, memory map, and physical wiring.

References: hw/…/family_support.cmake• L118-131 hw/…/family.cmake• L3-15 hw/…/family.mk• L4-13 hw/…/board.h• L8-38 hw/…/family.cmake• L3-15 hw/…/family.cmake• L51-75 hw/…/family.mk• L10-24 hw/…/family.mk• L63-80 hw/…/board.cmake• L1-8 hw/…/board.mk• L1-5 hw/…/family.cmake• L6-35 hw/…/family.cmake• L3-33 hw/…/family.cmake• L3-35 hw/…/family.cmake• L3-14 hw/…/family.cmake• L3-14 hw/…/family.cmake• L3-14 hw/…/board.cmake• L1-16 hw/…/board.cmake• L1-13 hw/…/board.mk• L1-10 hw/…/family.cmake• L7-16 hw/…/family.cmake• L3-18 hw/…/board.cmake• L1-14 hw/…/family.cmake• L11-29 hw/…/board.cmake• L1-20 hw/…/board.mk• L1-19

MCU dependency boundary

Each family connects the examples to the MCU package that supplies device headers, startup code, system code, peripheral support, and linker support. The family selects the parts that match the board and exposes them through the family build target. A board choice must therefore agree with the MCU target before the USB controller and example can run.

The CH32V4X7 family uses the WCH CH32V407/CH32V467 evaluation package. It supplies the RISC-V core support, GPIO, reset and clock control, USART support, system-clock code, startup code, and linker image. The family also selects the WCH high-speed USB controller path and starts with USBHS1 as the default device port. The BSP-owned configuration and system headers provide the small interface needed by the selected SDK sources.

The changed CH32V30X family uses the CH32V307 WCH package. It connects the RISC-V core, GPIO, reset and clock control, USART, system-clock code, startup image, linker image, and WCH USBFS and USBHS controller paths. Its device speed and host controller defaults select complementary controller support for dual-role builds.

Other families apply the same rule to their vendor packages. For example, Espressif uses ESP-IDF, RP2040 uses the Pico SDK, Renesas RA uses the Flexible Software Package, and STM32 families use STM32 support. The vendor package is the MCU boundary; the portable USB controller is the TinyUSB boundary beside it.

The changed LPC family definitions keep this boundary aligned with their SDKs. LPC11, LPC13, and LPC15 use LPCOpen device support and the IP3511 device controller. LPC51, LPC54, and LPC55 use MCUXpresso device support. LPC54 and LPC55 select IP3511 for device support and choose OHCI or IP3516 for host support according to the host port.

The i.MX RT family uses the NXP MCUXpresso core and device packages. Its family rules select the MCU family, variant, core, startup image, FlexSPI linker image, and high-speed ChipIdea/EHCI USB path as one dependency set. The shared mpu_rt106x.h support also connects the linker-defined non-cacheable area and the external flash map to the Cortex-M7 memory setup, so USB buffers and execute-in-place code use suitable memory attributes.

The WCH family definitions make the same dependency boundary explicit across several MCU lines. CH32F20X uses an Arm Cortex-M3 and the USBHS device path. CH32V103 uses a RISC-V core and USBFS device support. CH32V20X maps separate device and host ports to FSDEV or USBFS. CH32V307 can select USBFS or USBHS for host and device roles, while CH583 uses the WCH USBFS path and its vendor library. CMake and Make carry these choices as matching family contracts.

The Synergy family uses the Renesas SSP and CMSIS packages as its MCU boundary. It checks that the SSP contains the required BSP and S124 startup files before configure continues, then adds the variant-specific startup, system, clock, I/O, and generated board data. TinyUSB uses the Renesas RUSB2 controller beside that vendor support.

The RA family uses the Renesas FSP and the board's MCU variant. It takes the board memory map into account when it prepares the linker inputs, then adds the RUSB2 device and host paths beside the FSP startup and system support.

The STM32H7RS family uses the STM32 CMSIS device package and HAL support. It selects the DWC2 controller for device and host roles. When the board enables XSPI boot, the startup, linker image, reset path, and external flash flow become one dependency set.

References: hw/…/family.cmake• L3-32 hw/…/family.cmake• L37-64 hw/…/family.mk• L4-49 hw/…/ch32v4x7_conf.h• L8-18 hw/…/system_ch32v4x7.h• L8-25 hw/…/family.cmake• L3-15 hw/…/family.cmake• L131-145 hw/…/family.mk• L40-80 hw/…/family.json• L560-576 hw/…/family.cmake• L7-21 hw/…/family.cmake• L45-68 hw/…/family.cmake• L143-169 hw/…/family.mk• L2-10 hw/…/family.mk• L34-60 hw/…/family.mk• L65-90 hw/…/mpu_rt106x.h• L27-44 hw/…/mpu_rt106x.h• L158-196 hw/…/family.cmake• L3-15 hw/…/family.mk• L2-20 hw/…/family.cmake• L4-16 hw/…/family.mk• L10-24 hw/…/family.cmake• L4-24 hw/…/family.mk• L10-38 hw/…/family.cmake• L3-14 hw/…/family.mk• L10-27 hw/…/family.cmake• L56-72 hw/…/family.cmake• L67-75 hw/…/family.cmake• L69-77 hw/…/family.cmake• L40-69 hw/…/family.cmake• L62-109 hw/…/family.cmake• L64-119 hw/…/family.cmake• L64-105 hw/…/family.cmake• L71-127 hw/…/family.cmake• L11-29 hw/…/family.cmake• L60-108 hw/…/family.cmake• L123-167 hw/…/family.mk• L1-16 hw/…/family.mk• L49-79

Board metadata and APIs

Board metadata

Board metadata describes how a board is built and which example roles its default build supports. The catalog in hw/…/family.json records the MCU selection, compile definitions, portable USB sources, options, and roles so tools can inspect support without rebuilding every relationship.

The metadata model separates these concerns:

MetadataPurpose
Family and board nameSelect the BSP path and the public BOARD value.
MCU and family MCU listConnect the board to TinyUSB MCU settings and example filters.
Defines and optionsCapture board or controller choices that affect the target.
Portable sourcesShow the USB controller sources used by the default configure.
RolesShow whether device, host, or dual example groups build for the board.

The catalog is a build and support view, not a complete description of board wiring. hw/…/BoardPresets.json maps board names to reusable CMake configure and build presets. The example preset file includes this catalog of presets, so one board name can select a complete example build without duplicating the board list in each example group.

The CH32V4X7 entry identifies ch32v407_r0 under the ch32v4x7 family. It maps the board to OPT_MCU_CH32V4X7, records the WCH high-speed device source, and advertises the device role. Matching configure and build presets make ch32v407_r0 available through the standard CMake example flow.

The metadata must agree with family defaults when a board offers more than one USB mode. A role or controller entry describes the supported build path. It does not replace the board hook that selects the MCU variant, port, speed, memory layout, or flash method.

References: hw/…/family.json• L560-576 hw/…/BoardPresets.json• L154-160 hw/…/BoardPresets.json• L1186-1194 tools/family_json.py• L2-25 examples/CMakePresets.json• L1-6

Startup and board API

The startup path turns a reset MCU into a running example. It establishes the reset entry point, memory and clock state, interrupt entry points, and board initialization needed by USB and basic board I/O. The family chooses the common startup and linker inputs. The board supplies values and actions that differ between physical boards.

The shared board API gives examples one stable surface for basic board behavior:

  • board_init() starts the clock, board peripherals, and USB-related hardware.
  • board_init_after_tusb() provides an optional step after TinyUSB setup.
  • board_led_write() and board_button_read() expose one status output and input.
  • board_uart_read() and board_uart_write() support console I/O.
  • board_get_unique_id() supplies a source for a USB serial number.
  • board_reset_to_bootloader() provides an optional bootloader handoff.

The changed family definitions continue to connect this API to the selected MCU package and USB controller. The selected board must provide enough clock, power, pin, and memory information for those shared operations to work before an example exercises a USB class.

References: hw/…/board_api.h• L66-106 hw/…/board_api.h• L111-163 hw/…/family.c• L28-43 hw/…/family.c• L68-136 hw/…/family.c• L138-172 hw/…/family.cmake• L122-145 hw/…/family.cmake• L117-131 hw/…/family.cmake• L113-128 hw/…/family.cmake• L117-137

Board hardware definition

The board definition maps the shared API to real hardware. It identifies the LED, button, UART, USB port, and power controls, then gives family code enough information to configure those resources. It also carries board identity data used by build and support tools.

The CH32V407 evaluation board maps its status LED to PC0 and its active-low user button to PC1. Its console uses USART1 on PA9 and PA10 through the WCH-Link virtual COM port. The board header records these facts, while the family code applies them during startup. The board's empty CMake and Make hooks show that this board needs no extra update step beyond the shared family rules.

The STM32 H7S3L8 Nucleo definition shows how a board can add USB power control to the common contract. It maps the LED, button, and UART to board pins, declares the VBUS sensing arrangement, and connects the TCPP0203 power device through I2C. Its build definition selects the H7S3 MCU variant, USB roles, J-Link identity, and optional external-flash boot path.

The same contract supports boards with different physical wiring. This keeps example code independent from pin names while allowing each family to handle its own clock, USB, console, and power requirements.

The STM32U5 Nucleo definitions show that the board contract can include board-specific clock, power, and VBUS sensing behavior when the USB hardware needs it. The U575 and U5A5 variants share the same kind of status and console surface, but map their buttons, UARTs, and USB paths to different physical resources.

The S124 Development Kit definition exposes three LEDs and two active-low buttons through the shared board surface. Its board build rules also reserve scarce RAM by keeping the mass-storage and video example data in flash. The family supplies the SSP-generated pin and board data that connects these declarations to the startup path.

References: hw/…/board.h• L8-38 hw/…/board.cmake• L1-2 hw/…/board.mk• L1 hw/…/family.c• L80-110 hw/…/board.h• L27-96 hw/…/board.h• L101-184 hw/…/board.h• L187-269 hw/…/board.cmake• L1-27 hw/…/board.mk• L1-26 hw/…/board.h• L27-65 hw/…/board.h• L65-116 hw/…/board.h• L194-247 hw/…/board.h• L27-69 hw/…/board.h• L138-151 hw/…/board.h• L229-290 hw/…/board.h• L28-48 hw/…/board.cmake• L9-19 hw/…/board.mk• L5-18 hw/…/family.cmake• L60-108

Example target selection

Board resolution

The build starts with one board name. CMake resolves that name under hw/bsp/*/boards, derives the family from its path, and loads the family rules. Make performs the same family lookup with shared rules. An unknown or missing board stops configure instead of silently selecting a close match.

The family then combines the selected board with its MCU package, startup path, linker image, USB controller, board API, and example source. The CH32V4X7 path loads the board hook first, selects the CH32V4X7 MCU target and RISC-V toolchain, and then adds the WCH startup, system, peripheral, and high-speed USB inputs. The resulting target also exposes WCH-Link-RS flashing support.

The changed family rules apply the same assembly to CH32V30X, the LPC families, RA, and STM32H7RS. Their port, speed, memory, boot, and flash options refine the selected image without changing the board resolution step.

This diagram shows how one BOARD value becomes a filtered example target and a board-specific image.

flowchart TD
    A[BOARD name] --> B[Resolve family and board path]
    B --> C[Load family and board rules]
    C --> D[Load MCU dependencies and board metadata]
    D --> E[Select TinyUSB MCU and controller support]
    E --> F[Filter device, host, dual, and Type-C examples]
    F --> G[Link startup, board API, application, and runtime]
    G --> H[Produce firmware and optional flash targets]

References: hw/…/family_support.cmake• L4-5 hw/…/family_support.cmake• L14-46 hw/…/family_support.mk• L64-89 hw/…/family.cmake• L8-15 hw/…/family.cmake• L70-103 hw/…/family.mk• L9-23 hw/…/family.mk• L32-51 hw/…/family.cmake• L7-15 hw/…/family.cmake• L122-169 hw/…/family.cmake• L17-37 hw/…/family.cmake• L16-38 hw/…/family.cmake• L18-38 hw/…/family.cmake• L20-40

Example role filtering

The example tree is grouped by the role it demonstrates: device, host, dual USB, and Type-C. Family support filters each group using the board, family, family MCU names, and the example include or skip rules. The result is a target set that matches known USB support instead of attempting every example on every MCU.

The CH32V407 metadata advertises the device role because its default portable source is a device controller. It is therefore available to device examples, but not presented as a general host or dual-role board. The changed CH32V30X family can select host and device controller paths through its port and speed settings, but the advertised roles must still match the board metadata and controller sources.

A role is a build statement. It does not prove that every run-time cable, power, or class scenario works on the physical board.

The board test is a useful first target because it checks LED, button, and UART bring-up before USB class behavior is tested. See Application examples for the user-facing map of these scenarios.

References: hw/…/family_support.cmake• L169-224 examples/CMakeLists.txt• L7-16 examples/…/CMakeLists.txt• L7-47 hw/…/family.json• L560-576 examples/…/README.md• L1-11 hw/…/family.cmake• L17-49 hw/…/family.mk• L17-57

CMake and Make targets

The repository supports two build paths that consume the same family and board idea. CMake builds from the example group and uses a shared board target. Make starts from an individual example directory and includes the family and board definitions directly. Both paths add the selected board definition and the family source set.

The i.MX RT family keeps the two paths aligned around the same NXP SDK, startup and linker choices, USB controller, external-flash boot support, and device or host port settings. CMake groups board clock and pin setup into a board target, while Make adds the matching board and SDK sources directly. The family can then produce a normal firmware image or a UF2 image for the i.MX RT boot layout.

The changed families follow the same two-path model. Their CMake and Make rules carry matching MCU packages, startup inputs, linker images, USB controller paths, port and speed defaults, and flash actions. LPC54 and LPC55 also carry the high-speed USB memory placement into both paths. STM32H7RS carries the internal-flash or XSPI boot choice into both paths.

The normal target flow is:

  1. Select BOARD and, if needed, RTOS, toolchain, logging, trace, port, speed, or boot options.
  2. Resolve the family and load its board settings.
  3. Add MCU dependencies, startup inputs, linker settings, TinyUSB, and the board API.
  4. Add the application example that passed the family filter.
  5. Produce the firmware image and family-specific flash or conversion targets.

For CH32V4X7, CMake and Make use the same WCH SDK sources, RISC-V target, linker image, startup source, device controller, and board API. CMake creates binary and hexadecimal outputs and a WCH-Link-RS flash target. Make exposes the matching flash rule. Both paths default to USBHS1 and allow the device port to be changed through the family setting.

For CH32V30X, both paths select the CH32V307 WCH package and carry USBFS and USBHS controller choices into the image. The LPC family paths likewise match their LPCOpen or MCUXpresso source sets. RA adds the board memory map and RUSB2 support to both CMake targets and optional Make flows. STM32H7RS uses the selected linker image and adds the XSPI boot reset path when external boot is enabled.

The Synergy target follows the same two-path model. CMake and Make both require GCC, validate the licensed SSP, use the S124 linker and startup set, add the RUSB2 device and host paths, and create binary and hexadecimal images. They also expose J-Link flashing. The board's 16 KB RAM limit is reflected in both paths through read-only mass-storage and video example data.

See USB controller drivers for the controller layer beside the BSP. See OSAL and runtime services for the runtime layer that a selected example may use.

References: hw/…/family_support.cmake• L341-425 hw/…/family_support.cmake• L463-549 hw/…/family_support.mk• L59-107 hw/…/family_rules.mk• L8-18 hw/…/family.cmake• L70-103 hw/…/family.mk• L15-54 hw/…/family.cmake• L122-169 hw/…/family.mk• L51-88 hw/…/family.cmake• L56-97 hw/…/family.mk• L1-43 hw/…/family.cmake• L67-92 hw/…/family.mk• L1-34 hw/…/family.cmake• L69-94 hw/…/family.mk• L1-33 hw/…/family.cmake• L77-121 hw/…/family.mk• L1-43 hw/…/family.cmake• L117-175 hw/…/family.mk• L12-51 hw/…/family.cmake• L127-190 hw/…/family.mk• L11-80 hw/…/family.cmake• L73-87 hw/…/family.cmake• L143-195 hw/…/family.mk• L44-60 hw/…/family.mk• L65-121 hw/…/BoardPresets.json• L158-160 hw/…/BoardPresets.json• L1191-1194 hw/…/family.cmake• L113-160 hw/…/family.cmake• L117-181 hw/…/family.mk• L92-103 hw/…/board.cmake• L1-27 hw/…/board.mk• L1-26 hw/…/family.cmake• L7-9 hw/…/family.cmake• L18-29 hw/…/family.cmake• L123-167 hw/…/family.mk• L1-16 hw/…/family.mk• L49-79 hw/…/board.cmake• L1-20 hw/…/board.mk• L1-19

Change checklist

When these files or sections are changed, remember to consider these:

  • A new or renamed board must have matching family, board, metadata, and preset names wherever the build paths support it.
  • A changed MCU target must keep the vendor target, USB port, speed, startup, linker, and controller choices aligned.
  • A changed board API must preserve the USB serial-number path and the standard-I/O path used by examples.
  • A changed board role must agree with its portable controller sources and any example skip rules.
  • A changed USB port or speed must stay consistent between family settings, board wiring, and controller support.
  • A CH32V4X7 change must keep the WCH SDK, RISC-V toolchain, system-clock source, startup file, linker image, USBHS port, and WCH-Link-RS flash path aligned in CMake and Make.
  • A CH32V30X change must keep the WCH SDK, RISC-V toolchain, USBFS or USBHS selection, host defaults, startup image, linker image, and flash path aligned in CMake and Make.
  • A CH32V4X7 board pin change must keep the board header, family initialization, and physical evaluation-board wiring aligned.
  • A changed SDK configuration or system header must still provide the declarations and peripheral modules used by the family sources.
  • An LPC11, LPC13, or LPC15 variant change must keep the LPCOpen device sources, startup path, linker image, and IP3511 device support aligned.
  • An LPC51, LPC54, or LPC55 variant change must keep the MCUXpresso device package, driver variant, startup path, linker image, and board settings aligned.
  • An LPC54 or LPC55 port change must stay aligned with port speed, controller choice, USB memory placement, and both build systems.
  • An i.MX RT MCU, core, XIP image, or linker-memory change must stay aligned between the MCUXpresso device package, startup path, linker output, MPU map, and non-cacheable USB memory.
  • An i.MX RT device or host port change must stay aligned between CMake and Make defaults and the controller that serves that port.
  • A board-specific memory size or compile definition must stay aligned between its CMake and Make hooks so the image and supported example behavior match.
  • A board-specific clock, power, or VBUS change must preserve the board API assumptions used by the USB controller and startup code.
  • A Synergy SSP path or MCU variant change must stay aligned with the SSP validation checks, startup and system files, generated board data, linker image, and both build systems.
  • A Synergy RAM or example-storage change must be mirrored in the board CMake and Make hooks so CMake and Make expose the same image limits.
  • An RA variant or board memory-map change must keep the GNU linker image, IAR definitions, FSP variant support, and RUSB2 setup aligned.
  • An STM32H7RS XSPI boot change must keep the linker image, reset path, image format, external loader, and flash targets aligned in CMake and Make.
  • An STM32H7S3 board pin or power change must keep the TCPP0203 source, I2C wiring, VBUS control, UART, and USB role settings aligned.

Important failure modes

TriggerConsequenceGuard
BOARD is missing or does not name a board directoryConfigure stops before an example target is created.Use an exact board name from the BSP path or board presets.
Family metadata names the wrong MCU, portable source, or roleExample filters or linked images target hardware that does not match the board.Keep family.json aligned with the family and board build rules.
Board and family names differ between presets and BSP pathsCMake cannot resolve the requested target.Keep configure presets, build presets, and board directories in sync.
MCU target, startup, linker, or USB port does not match the boardThe image can fail to link, fail at startup, or use the wrong USB controller.Treat the board definition, family rules, and vendor package as one contract.
CH32V4X7 SDK configuration omits a used peripheral moduleThe family cannot compile its GPIO, clock, USART, or system support.Keep ch32v4x7_conf.h aligned with the SDK sources used by the family.
CH32V4X7 USBHS PLL does not lock or its clock is skippedUSB initialization can stop or touch an unclocked controller.Keep the PLL setup and failure stop in the family startup path.
CH32V30X host IP and device speed select incompatible USB pathsThe target can build with the wrong controller or offer the wrong speed.Keep WCH_HOST_USBIP, SPEED, and the CMake and Make defaults equivalent.
CH32V407 LED, button, or UART pins do not match the boardBoard bring-up or console output fails even when the image builds.Keep board.h, family initialization, and the physical board wiring aligned.
CH32V4X7 CMake and Make rules select different SDK or linker inputsThe two build paths produce different or non-starting images.Keep their toolchain, startup, linker, controller, and flash contracts identical.
CH32V30X CMake and Make rules select different USB defaults or source setsThe same board name produces different device or host behavior.Keep controller, port, speed, and source choices equivalent in both paths.
A device-only board is advertised as host or dual roleUnsupported example targets are offered to users.Keep the role list tied to the controller sources and real board capability.
An LPCOpen family uses the wrong MCU driver or startup imageThe image can fail to compile, link, or start on the selected LPC board.Keep the LPC variant, driver sources, startup, linker, and board hook aligned.
An LPC54 or LPC55 high-speed controller receives data outside its required memoryUSB transfers can fail even when the image starts.Keep the port selection and USB memory section definitions together.
An i.MX RT linker image, XIP boot path, or MPU map does not match the selected variantThe image can fail to boot, execute from the wrong flash map, or access USB buffers with unsafe cache settings.Treat the variant, linker, XIP, startup, and non-cacheable memory definitions as one contract.
CMake and Make select different i.MX RT port or SDK inputsThe same board name produces different USB behavior or images in the two build systems.Keep family defaults and source sets equivalent across both paths.
A board memory limit or compile definition exists in only one build pathOne build can link or expose an example that the other build cannot support.Mirror board-specific settings in board.cmake and board.mk.
STM32U5 VBUS sensing or USB register mapping does not match the board variantUSB attach state can be wrong or a running transfer can stall.Keep the board's sensing path and USB instance aligned with its physical wiring.
The Synergy SSP is missing or incompleteConfigure stops before the S124 target can be built.Install the licensed SSP and point RENESAS_SSP_PATH at its root with the required inc/ and src/ trees.
Synergy is built with ClangThe family rejects the build because the SSP target supports GCC only.Select the GCC toolchain for Synergy targets.
Synergy board variant, linker script, or SSP libraries differ between board hooksThe image can link for the wrong memory map or fail to start on the S124 kit.Keep MCU_VARIANT, linker, startup, and SSP library choices aligned in CMake and Make.
S124 example data is placed in RAMThe image can exceed the board's 16 KB RAM budget.Keep mass-storage and video example data read-only in flash.
RA board memory definitions do not match the linker imageThe image can link for the wrong memory map or fail to start.Keep the board memory map, GNU linker, and IAR definitions aligned.
STM32H7RS XSPI boot is enabled without the matching linker and loaderThe image can fail to boot or flash to the external memory.Keep XSPI_BOOT, linker choice, reset path, image format, and external loader aligned.
STM32H7S3 TCPP0203 wiring or power setup does not match the boardUSB VBUS control or attach behavior can fail.Keep the board pins, I2C power device, interrupt path, and USB role settings aligned.

Key files

FileWhy to read it
hw/…/board_api.hDefines the board-facing contract used by examples and shared runtime code.
hw/…/board.cShows common board fallbacks and runtime hooks.
hw/bsp/family_support.cmakeExplains board resolution, shared board targets, example filtering, and metadata capture.
hw/bsp/family_support.mkShows the Make path for resolving a board and assembling family and board inputs.
hw/…/family.jsonRecords the MCU, controller, option, and example-role metadata for supported boards.
hw/…/BoardPresets.jsonMaps supported board names to reusable CMake configure and build presets.
hw/bsp/ch32v4x7/family.cmakeShows WCH SDK integration, RISC-V setup, startup and linker inputs, USB support, and flashing for CMake.
hw/bsp/ch32v4x7/family.mkShows the matching Make-side SDK, controller, startup, linker, and flash setup.
hw/…/family.cShows CH32V4X7 startup, USB interrupts, clock setup, board I/O, console, time, and unique-ID behavior.
hw/…/board.hRecords the CH32V407 evaluation-board LED, button, and UART wiring.
hw/…/ch32v4x7_conf.hDefines the WCH peripheral modules used by this BSP.
hw/…/system_ch32v4x7.hDefines the system-clock interface expected by the selected WCH system source.
hw/bsp/ch32v30x/family.cmakeShows WCH CH32V307 USBFS and USBHS selection, RISC-V setup, startup, linker, and flashing for CMake.
hw/bsp/ch32v30x/family.mkShows the matching Make-side CH32V307 controller, startup, linker, and flash setup.
hw/bsp/lpc11/family.cmakeShows LPCOpen support and the Cortex-M0+ family target.
hw/bsp/lpc11/family.mkShows the matching LPC11 Make source and linker inputs.
hw/bsp/lpc13/family.cmakeShows LPCOpen support and the Cortex-M3 family target.
hw/bsp/lpc13/family.mkShows the matching LPC13 Make source and linker inputs.
hw/bsp/lpc15/family.cmakeShows LPCOpen support and shared LPC15 USB device setup.
hw/bsp/lpc15/family.mkShows the matching LPC15 Make source and linker inputs.
hw/bsp/lpc51/family.cmakeShows variant-based MCUXpresso startup and linker selection.
hw/bsp/lpc51/family.mkShows the matching LPC51 Make-side device and startup inputs.
hw/bsp/lpc54/family.cmakeShows USB port speed, memory placement, and host controller selection.
hw/bsp/lpc54/family.mkShows the matching LPC54 Make-side USB and memory choices.
hw/bsp/lpc55/family.cmakeShows the LPC55 device and host port choices.
hw/bsp/lpc55/family.mkShows the matching LPC55 Make-side controller, memory, and startup choices.
hw/bsp/imxrt/family.cmakeShows the NXP family dependency set, board target, port defaults, startup, linker, XIP, and flash flow.
hw/bsp/imxrt/family.mkShows the matching Make-side NXP sources, memory sections, startup, linker, and UF2 flow.
hw/…/mpu_rt106x.hShows the shared memory rules for i.MX RT106x flash, cache, and non-cacheable USB data.
hw/bsp/ra/family.cmakeShows Renesas FSP integration, board memory handling, RUSB2 support, and flashing.
hw/bsp/stm32h5/boards/stm32h503nucleo/board.cmakeIllustrates board-level MCU, clock, and example capability definitions in CMake.
hw/bsp/stm32h5/boards/stm32h503nucleo/board.mkShows the matching STM32H5 Make definitions and flash-tool identity.
hw/bsp/stm32h7rs/family.cmakeShows STM32H7RS startup, DWC2 support, XSPI boot, image creation, and flashing.
hw/bsp/stm32h7rs/family.mkShows the matching STM32H7RS Make-side startup, linker, and boot image rules.
hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/board.cmakeSelects the H7S3 MCU, USB roles, external boot option, and power-control support.
hw/…/board.hRecords the H7S3 Nucleo LED, button, UART, VBUS, clock, and TCPP0203 contract.
hw/bsp/stm32h7rs/boards/stm32h7s3nucleo/board.mkMirrors the H7S3 board variant, external loader, flash, and power-device sources for Make.
hw/…/board.hShows a board-specific clock, VBUS sensing, and USB-state contract.
hw/…/board.hShows how a related board maps the same USB support to a different MCU and physical USB path.
hw/bsp/synergy/family.cmakeShows SSP validation, MCU support, USB port and speed selection, startup, image creation, and J-Link flow.
hw/bsp/synergy/family.mkShows the matching Make-side SSP sources, port defaults, linker inputs, and image rules.
hw/…/board.hRecords the S124 Development Kit LEDs, buttons, and board identity.
hw/bsp/synergy/boards/dk_s124/board.cmakeSelects the S124 MCU, linker image, SSP libraries, and RAM-saving example definitions for CMake.
hw/bsp/synergy/boards/dk_s124/board.mkMirrors the S124 MCU, linker, SSP libraries, J-Link identity, and RAM-saving definitions for Make.
examples/…/README.mdDescribes the smallest board bring-up target before USB class behavior is tested.