fossasia/pslab-bootloader
fossasia/pslab-bootloader has 1,477 GitHub stars and 12 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-08 05:13 UTC. Last push 2026-08-16.
PSLab Bootloader https://pslab.io
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalPSLab Bootloader
This repository contains the bootloader of the Pocket Science Lab (PSLab) open hardware platform.
The bootloader makes it possible to flash new firmware to the device over a USB connection, whereas without it a special programming tool is required.
Pocket Science Lab
The PSLab provides an array of test and measurement instruments for doing science and engineering experiments. Its built-in instruments include an oscilloscope, a waveform generator, a frequency counter, programmable voltage and current sources, and a logic analyzer. The PSLab also has UART, I2C, and SPI buses, via which external devices can be connected and controlled.
The PSLab is a fully open device, and FOSSASIA provides a complete hardware and software stack under open source licenses:
Buy
You can get a Pocket Science Lab device from the FOSSASIA shop
More resellers are listed on the PSLab website
Get in touch
The PSLab chat channel is on Gitter
Please also join us on the PSLab Mailing List
Dependencies
The following tools are required to build the bootloader:
- xc16 compiler
- cmake
Building
This project is built with CMake. After cloning this repository, you must first initialize and update the toolchain submodule:
git submodule init
git submodule update
This will populate the external/cmake-microchip directory, after which the
bootloader can be built:
mkdir build
cd build
cmake ..
make
This will create a build artifact in the build directory:
pslab-bootloader.hex.
Creating a combined HEX file
It is possible to create a HEX file containing both the bootloader and the firmware. To do this, follow these steps:
Build the bootloader
Build the firmware
Move firmware.hex into the
build/directory of the bootloader repositoryRun
combine_hex.sh. Thehexmateprogram, distributed as part of MPLAB-X, needs to be in your $PATH. Alternatively, modifycombine_hex.shto include the full pathname tohexmate.
Flashing
Flashing the bootloader requires a programmer such as the PICkit3.
Flashing with a programmer requires the mdb.sh script, which is distributed as
part of Microchip's MPLAB-X software suite. On Linux, the default installation
path for mdb.sh is /opt/microchip/mplabx/<version>/mplab_platform/bin/mdb.sh.
This script is used to run the file flash.mdbscript, located in the repository
root. Before following the below steps, you may need to modify flash.mdbscript
depending on which programmer you are using and the location of the firmware
HEX.
- Disconnect the device from any power source
- Connect the programmer to the device's ICSP header
- Power on the device via USB
- Run
mdb.sh flash.mdbscript - Disconnect the programmer
Repository structure
📦pslab-bootloader
┣ 📂src # PSLab bootloader source code
┃ ┣ 📂mcc_generated_files # Source C files
┃ ┣ 📜 ...
┃ ┣ 📜main.c # Entry point to PSLab Bootloader
┣ 📂external
┃ ┣ 📂cmake-microchip # Toolchain submodule
┣ 📜CMakeLists.txt
┣ 📜flash.mdbscript
┣ 📜LICENSE
┗ 📜README.md
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,910 starspublic-apis/public-apis
A collective list of free APIs
497,158 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
442,262 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,175 stars