This repository contains the starting code for any STM32 Nucleo F767ZI based instruments and allows them to connect to the MSM Max patch using OSC over UDP.
For the latest version of the MSM patch visit: https://github.com/MPRlab/MPR-Lab-Robot-Interface
This has been tested with version 12.6.2 (coming soon).
-
Ubuntu 16.04
-
Download the GNU ARM Embedded Toolchain
(Used version 7-2018-q2-update linux 64-bit)
-
Extract the files into /opt
cd /opt sudo tar -xf ~/Downloads/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2
-
Make symlinks
sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-cpp /usr/bin/arm-none-eabi-cpp sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-g++ /usr/bin/arm-none-eabi-g++ sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-gcc /usr/bin/arm-none-eabi-gcc sudo ln -s /opt/gcc-arm-none-eabi-7-2018-q2-update/bin/arm-none-eabi-objcopy /usr/bin/arm-none-eabi-objcopy
-
Clone this repository to any location
git clone https://github.com/MPRlab/OSC-Client.git cd OSC-Client/
-
Edit the main.cpp file
-
Add any new .cpp files to the Makefile
In the "Objects and Paths" section add a new "MYCPP+=_______" with the name of the file followed by ".o"
-
Compile the code
make
-
Program the Nucleo
Copy the
BUILD/osc.bin
file to the Nucleo using the file explorer ormv
-
- Currently, if the Max patch is restarted, the instrument will need to be reset in order to register it with the controller again. There should be a way to have the controller broadcast a message asking for all instruments to re-connect.