This project uses the arduino-cli
compiler to build & flash new firmware. Windows users also need Arduino IDE (tested with v1.8.15).
The script will verify if all needed libraries and the samd core is installed and install them if needed. If you prefer to do this step manually, follow the step in the next chapter.
For building the project:
- For audio support, use:
./arduino-build.sh --build
- For IMU sensor support, use:
./arduino-build.sh --build --with-imu
For flashing use:
./arduino-build.sh --flash
You can also do both by using:
./arduino-build.sh --all [--with-imu]
- Run
update_libraries_windows.bat
script to install Arduino libraries.
For building the project:
- For audio support, use:
./arduino-win-build.bat --build
- For IMU sensor support, use:
./arduino-win-build.bat --build --with-imu
For flashing use, put the board in boot mode (double click on the reset button when connecting the board to USB, while the orange LED is blinking. In boot mode you should see the red LED fading on and off):
./arduino-win-build.bat --flash
You can also do both by using:
./arduino-win-build.bat --all [--with-imu]
-
Install Board package SAMD v1.8.9
-
Install following libraries using Arduino Library manager (use exact versions):
- [email protected]
- Adafruit ZeroTimer [email protected]
- Adafruit [email protected]
- Adafruit GFX [email protected]
- Adafruit [email protected]
- nicohood/[email protected]
- [email protected]
-
Install the following libraries as a Zip library:
- lib/Adafruit_ASFcore
- lib/PMIC_SGM41512
- lib/AudioUSB
- lib/NDP
- lib/NDP_utils
- lib/SerialFlash
- lib/syntiant_ilib
-
Patch the Arduino USBCore driver: copy
lib/Arduino USBCore driver/USBCore.cpp
in SAMD package folder (ie: /Users/[USER]/Library/Arduino15/packages/arduino/hardware/samd/1.8.9/cores/arduino/USB/)