Getting Started
This page will cover common workflows for using Seb to build embedded firmware projects.Step 1: List Available Boards
The first step in your workflow is to explore the available board configurations in the Seb registry. This helps you identify which boards are supported and choose the right one for your project.- Board name and family
- Package information
- Flash and RAM specifications
- Maximum frequency
- Board descriptions
Step 2: New Project Setup
Once you’ve identified the board you want to use, initialize a new firmware project with the CMake build system. This creates a complete project structure with all necessary configuration files.{ board_name }: The name of the board configuration from the registry (e.g.,stm32f407vg,nrf5340-dk)-o { my_project }: Output directory name for your new project
- Download the board configuration from the registry
- Generate a complete CMake-based project structure
- Set up the ARM GCC toolchain configuration
- Create initial source files and project configuration
- Prepare the project for building and development
Step 3: Add Design Documents
Within thedocuments folder of your created project, upload any relevant bill of materials (BOMs), datasheets, schematics, and other supporting documents. Seb can understand your project context and provide better help through the following commands:
documents/datasheets/ folder.
Step 4: Generate Drivers
After setting up your project, you can add sensor drivers to your firmware. This process involves extracting metadata from datasheets and generating driver code.4.1: Process Sensor Metadata
Process any uploaded and downloaded datasheets and extract structured metadata that will be used for driver generation:documents/datasheets/ folder and extracts:
- Sensor specifications
- Communication interfaces (I2C, SPI, UART)
- Register maps and addresses
- Electrical characteristics
- Timing requirements
4.2: Generate Sensor Drivers
Generate a complete sensor driver using the extracted metadata:- Driver header file (
{ sensor_name }.h) - Driver source file (
{ sensor_name }.c) - Configuration files
- Example usage code
Step 5: Build and Debug
Build your firmware project using CMake. The commands differ slightly depending on your operating system.- Windows (Powershell)
- Linux / macOS
Navigate to the build directory and configure the project:Replace
{ project_dir } with the path to your project directory (e.g., .. if you’re already in the project root).