How to cheaply program a BMD-340 module using an st link V2

How to cheaply program a BMD-340 module using an st link V2

Trying to build a project without having to spend hundreds of dollars on gear that I wouldn’t need long term (namely for a j-link programmer) I had to figure out how to program my BMD-340 modules using what I had: an st link V2.