Board definition to run Umfeld as a board from Arduino IDE or CLI.
- install Arduino IDE and/or
arduino-cli - install Umfeld
- navigate to the Arduino folder ( the sketch folder that also contains libraries )
- on macOS the folder is usually located at
$HOME/Documents/Arduino - on Linux the folder is usually located at
$HOME/Arduino - on Window the folder is usually located at
%HOMEPATH%/Documents/Arduino
- on macOS the folder is usually located at
- create a
hardwarefolder ( if it does not exist already )├── hardware └── libraries
- download
umfeld-arduinoas a ZIP and unpack it inhardwarefolder - or clone it into
hardwarefolder. ├── hardware │ └── umfeld-arduino ( <<< this repository ) │ ├── LICENSE │ ├── README.md │ └── umfeld └── libraries
- check if things are working in Arduino IDE
- open a sketch ( e.g
minimalfromumfeld-arduino/umfeld/examplesfolder ) - select Umfeld board from
Tools > Board:… > Umfeld (in Sketchbook) > Umfeld Application - run ( i.e upload ) sketch by clicking
Uploador pressingCMD+U
- open a sketch ( e.g
- check if things are working in
arduino-cli- open console ( assuming
arduino-cliis installed ) cd $HOME/Documents/Arduino/hardware/navigate to hardware folder e.g on macOSarduino-cli compile -u -b umfeld-arduino:umfeld:UMFELD ./umfeld-arduino/umfeld/examples/umfeld/minimalbuild (-b) run ( i.e upload-u)minimalexample
- open console ( assuming
either way you should see something like this:
TL;DR if you want to use Arudino IDE include MSYS UCRT64 into PATH.
Umfeld on Windows is a bit bumpy; it requires the MSYS UCRT64 environment to work properly. so, if you plan to use the Arduino IDE to build and run sketches, you need to make the Arduino IDE ( or the entire system ) aware of MSYS UCRT64. the Windows environment variable PATH needs to contain the MSYS UCRT64 when Arduino IDE runs. without this Arduino IDE will not be able to access the compiler ( and other tools ). there are multiple ways to achieve this:
- press
WIN+R, typesysdm.cpl, press enter - go to
Advanced > Environment Variables - in the bottom section (System variables), find
Path, clickEdit - add a new entry, paste in:
C:\msys64\ucrt64\bin - click
OK + OK + OK - restart Arduino IDE ( maybe even log out/in or reboot).
caveat: this makes all programs use UCRT64’s g++, ld.exe, etc. If you also have MinGW, LLVM/Clang, or other toolchains on PATH, order matters. Windows uses the first matching executable.
create a .bat that sets PATH only for the IDE process:
arduino-ide-launch.bat
@echo off
set "PATH=C:\msys64\ucrt64\bin;%PATH%"
start "" "%LOCALAPPDATA%\Programs\Arduino IDE\Arduino IDE.exe"double-click .bat to start Arduino IDE.
Windows shortcuts can store environment overrides. Create a shortcut to Arduino IDE.exe, set Target like:
cmd /C "set PATH=C:\msys64\ucrt64\bin;%PATH% && start "" "C:\Program Files\Arduino IDE\Arduino IDE.exe""open a console and execute the following commands:
mkdir -p $HOME/Documents/Arduino/hardware
cd $HOME/Documents/Arduino/hardware/
git clone https://github.com/dennisppaul/umfeld-arduino
# with `arduino-cli`
arduino-cli compile -u -b umfeld-arduino:umfeld:UMFELD ./umfeld-arduino/umfeld/examples/umfeld/minimal
# or *Arduino IDE*
open umfeld-arduino/umfeld/examples/umfeld/minimal/minimal.inoon Ubuntu 22.04.3 the standard installation instructions failed, but the following steps worked:
cd $HOME
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
export PATH="$HOME/bin:$PATH" # temporary add and should be added to startup file
arduino-cli --version 
