/modular-psu-firmware

Firmware for EEZ Bench Box 3 (BB3)

Primary LanguageC++GNU General Public License v3.0GPL-3.0

GitHub release license liberapay

Ownership and License

The contributors are listed in CONTRIB.TXT. This project uses the GPL v3 license, see LICENSE.TXT. EEZ psu-firmware uses the C4.1 (Collective Code Construction Contract) process for contributions. To report an issue, use the EEZ modular-psu-firmware issue tracker.

Introduction

Firmare for STM32F7 MCU used in EEZ BB3 Test & Measurement chassis. Currently supported modules:

  • DCP405 0 - 40 V / 5 A programmable power source
  • DCM220 dual 1 - 20 V / 4 A auxiliary power source
  • DCM224 dual 1 - 24 V / 4.9 A auxiliary power source

Under development:

  • MIO168 mixed I/O module
  • PREL6 6 power relays module
  • SMX46 4 x 6 programmable switch matrix
  • MUX14D dual 7:1 reed relay 2-wire multiplexer

For EEZ H24005 firmware visit psu-firmware repository.

Build

Firmware Simulator

Linux

sudo apt-get update
sudo apt-get install -y git libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cmake build-essential libbsd-dev
git clone https://github.com/eez-open/modular-psu-firmware
mkdir -p modular-psu-firmware/build/linux
cd modular-psu-firmware/build/linux
cmake ../..
make

Start simulator with:

./modular-psu-firmware

Emscripten

Download and install Emscripten

source /path/to/emsdk/emsdk_env.sh
export EMSCRIPTEN=/path/to/emsdk/upstream/emscripten
mkdir -p /path/to/modular-psu-firmware/build/emscripten
cd /path/to/modular-psu-firmware/build/emscripten
cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../..
make

Windows

Install Visual Studio Community 2017 and CMake.

Use git to clone https://github.com/eez-open/modular-psu-firmware.

Execute cmake.bat.

Visual Studio solution is created in \path\to\modular-psu-firmware\build\win32.

STM32 firmware

Import project from /path/to/modular-psu-firmware/src/third_party/stm32_cubeide into STM32CubeIDE and build it.