Hello, I have what I think is the first generation of Magus (from 2019?), there was a long thread before where I received some help on building and uploading OpenWare for the magus. I wrote this guide summarizing what I found.
Today I checked out the v22.4.0 tag and attempted to do a build. (Because I installed the special “watchdog” bootloader at some point, afaik I cannot install the public releases from the github page; also because of this I specifically added
#define USE_IWDG to the end of Magus/Inc/hardware.h).
I got an error:
Andi@Alita:/mnt/c/Users/Andi/work/gh/OpenWare$ make magus TOOLROOT= make: Entering directory '/mnt/c/Users/Andi/work/gh/OpenWare/Magus' make: *** No rule to make target 'Inc/usb_device.h', needed by 'Build/main.o'. Stop. make: Leaving directory '/mnt/c/Users/Andi/work/gh/OpenWare/Magus' Makefile:63: recipe for target 'magus' failed make: *** [magus] Error 2
How should I proceed?
I see there is a Inc/usb_device.h in the Magus3/ directory, but I usually build out of Magus/. I assume Magus3 refers to a new hardware revision and I shouldn’t use it?
- How do I get the Inc/usb_device.h? Should I copy the one from Magus3/, or from a previous git revision? Do I have to run STM32CUBE?
- Used to I sometimes needed to run the Magus/cube-update.sh script before building. Is this ever still needed?
- The last time I built Magus there was a problem where the LEDs were causing signal noise. Should I assume this is fixed? In an emergency, is there a way to disable the LEDs? Is setting LEDS_BRIGHTNESS to 0 in Magus/Inc/hardware.h enough? (The default hardware.h sets “LEDS_BRIGTHNESS” to 2, but this is a typo and will do nothing.)
- (Not important) I see now instead of MidiBoot there are three directories, MidiBoot1, MidiBoot2, and MidiBoot3. Should I be aware of the differences? Is MidiBoot1 the one I have?