I am busy trying to write some firmware for a system with a whole lot of digitally controlled hydraulic components, and it's a complex system so there is a lot of tweaking of the algorithm and debugging.
I having a problem in that whenever I compile code and upload it to the board via ST-Link, all the pins float/go high, which causes the whole system to go haywire (pumps turning on and valves opening - erratically), and I am also wasting a lot of water/other fluids.
I am using the System Workbenh IDE. Is there any setting I can flick to set all pins low during firmware upload?
I'm sick of forgetting to flick the power switch to all of the hydraulics before uploading.