GlossaryBoard support package
Board support package
A board support package, or BSP, is the board-specific software layer that lets an operating system or firmware run on a particular circuit board. It describes and initializes the board's hardware: memory, clocks, pins, power rails and peripherals, so that the same operating system and application code run across different boards.
How it works
A processor family supports many boards, each with different memory, sensors, connectors and pin assignments. The BSP captures those differences. For a microcontroller running an RTOS, it typically includes startup code, clock and memory configuration, pin multiplexing and drivers or driver configuration for the peripherals on that board. Embedded operating system projects document board porting as a defined process: describe the board, configure its pins and peripherals, and build.
For embedded Linux, the BSP usually includes the bootloader configuration, the kernel configuration, device drivers and a devicetree. The devicetree is a data structure that describes the hardware to the kernel: which peripherals exist, at which addresses, on which pins and with which settings. The devicetree specification defines its format.
Board support package vs bootloader
The bootloader is one program that runs at power-up, initializes enough hardware to load the main image, and hands over control. The BSP is the whole collection of board-specific code and configuration, of which the bootloader configuration is one part. A board with a working bootloader but no complete BSP boots, then fails to find its sensors, network or storage.
Why it matters
Every custom board needs a BSP before application software runs on it. BSP work is often the longest part of bringing up a new board: schematic mistakes, wrong pin assignments and undocumented peripheral behavior surface here. A clean BSP also makes later board revisions cheaper, because changes are contained in one layer instead of scattered through the application.
How to get it right
- Start from the processor maker's reference BSP for the nearest evaluation board, and track your changes against it.
- Keep the pin assignments in the schematic and the BSP in sync, ideally generated from one source.
- Put the BSP under the same revision control and review process as the hardware.
- Bring up peripherals one at a time, with test points and logs to confirm each.
- Plan for secure boot, update and recovery in the BSP from the first revision.
Board support packages in robotics and drone hardware
Robot and drone teams usually build custom carrier boards for a compute module and custom flight or motor controllers, each needing its own BSP. Camera interfaces, CAN buses, IMUs and motor driver chips all need correct configuration before higher software works. Board bring-up, manufacturing test firmware and the production image all build on the BSP.