I’m setting up my toolchain for developing ArduPilot code in Windows 10 for deployment onto STM32 FCs over USB.
The problem I’m experiencing is when uploading to the STM32 FC. So, I’ll do something like this:
./waf build --target examples/INS_generic --upload-port /dev/ttyS10 --upload
The code will upload fine providing I power cycle the FC first (that’s the first problem). But the really big problem is that afterwards, Windows repeatedly loses/regains the USB connection to the FC every few seconds (with accompanying annoying chime sounds). I have tested it out on another Windows computer, and the same thing happens. Swapped cables, etc.
I have tried dual-booting the same Windows computer into Ubuntu Linux and the problem appears to be resolved. However, I really want to get this working under Windows (for various reasons I won’t trouble you with).
Has anyone else experienced this problem?
The second thing I wanted to ask is whether anyone has any tips for speeding up the uploading/deployment process.