ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
318 stars 22 forks source link

Add support for bootloader targets debugging #637

Closed ohmtech-rdi closed 11 months ago

ohmtech-rdi commented 11 months ago

This PR adds support for STLink debugging when using SRAM or QSPI targets.

This is done by flashing the firmware ourselves, as the OpenOCD "load" command will fail for SRAM and QSPI.

[!IMPORTANT]
To use, please note that you need the Daisy module to be connected both using JTAG and USB, because the firmware in that case will get uploaded using DFU. Also, the daisy module must be flashed with bootloader priori to debugging, using erbb install bootloader.