How is it done, in details?
Same as over USB.
What would you like to know?
Do I need to get to a bootloader mode? How?
Read the source code of the VESC-Tool, it is pretty self explanatory.
Any more specific advice? Unfortunately I do not have that deep of knowledge of embedded programming.