Hi Mark,
If the motor cutting out is accompanied by the 5 flash error code, it may be due to a faulty Hall Sensor within the motor.
Have you tried plugging in the other set of Hall Sensor set to see if it still cuts out and gives the same error code?
If the motor still cuts out with the other set of Hall Sensors plugged in, then it is more likely to be a problem with the +5V output from the controller that supplies the power to the Hall Sensors.
If the supply voltage going to the Hall Sensors is too low, the output signal voltages coming from them will be incorrect, hence the 5 flash error code indicated by the controller.
I suggest that you try to measure the voltage between the Black Hall Sensor Ground wire and the Red +5v supply wire going to the Hall Sensors, to make sure that the voltage is higher than 3.5V.
If the voltage reading is less than 3.2V, this could be due to a weak or faulty +5V regulator inside the controller, or perhaps something on the +5V supply circuit is overloading the +5V supply causing it to drop too low.
With regards to the programming of the controller, make sure that the controller has been disconnected from the battery for several minutes before connecting the USB programming cable to ensure the controller is completely discharged to allow it to connect to the programming software.
Also make sure you are clicking on the correct icon to
save any newly altered parameters to the controller
(Download) as the functions of the icons are not what you might expect:
The
Upload icon only
reads the parameter from the controller, overwriting any changes that you may have manually entered into the programming software with the values already stored in the controller.
Alan