So, uh, here's one.
Got the board out and the ST programmer connected (I think-- the Owl-digital-pinout.pdf seemed kind of different from the actual board, there's an entire second row of pins under where SWDIO et al are, but the 20 pins at the top seemed more or less the same so I'm hoping it was ok).
Tried to build the bootloader (with USE_IWDG). It says files were missing. I realized I probably needed to run STM32CubeMX. I opened MidiBoot/MidiBoot.ioc and hit Generate. Then I tried to build Midiboot. Compile failed, with:
make[1]: Entering directory '/mnt/c/Users/Andi/work/gh/OpenWare/MidiBoot'
./Src/stm32f4xx_it.c:151:6: error: redefinition of 'OTG_HS_IRQHandler'
void OTG_HS_IRQHandler(void)
^~~~~~~~~~~~~~~~~
./Src/stm32f4xx_it.c:121:6: note: previous definition of 'OTG_HS_IRQHandler' was here
void OTG_HS_IRQHandler(void)
^~~~~~~~~~~~~~~~~
/mnt/c/Users/Andi/work/gh/OpenWare/Hardware/common.mk:49: recipe for target 'Build/stm32f4xx_it.o' failed
I check VCS and go figure, STM32CubeMX modified MidiBoot/Src/stm32f4xx_it.c
. Specifically it added a OTG_HS_IRQHandler
, in addition to the one that is already there. There is no cube-update.sh for MidiBoot. Experimentally, I tried VCS reverting stm32f4xx_it.c and compiled again. I got this second failure:
make[1]: Entering directory '/mnt/c/Users/Andi/work/gh/OpenWare/MidiBoot'
In file included from ./Src/usb_device.c:48:0:
./Inc/usb_device.h:33:22: fatal error: usbd_def.h: No such file or directory
^
compilation terminated.
/mnt/c/Users/Andi/work/gh/OpenWare/Hardware/common.mk:49: recipe for target 'Build/usb_device.o' failed
Reminder, this is ddfe79cf55f1
merged with a447765258d9
.
Am I doing something wrong?