Flash firmware to flight controller

just so people know i ended up flashing ardusub to the flight controller using STM32CubeProgrammer there is good documentation on how to do this at the link Flashing BF/INAV/Ardu firmware with STM32CubeProgrammer – Matek Systems