Even with a stable tool like v5.0.1, errors occur. Here are the most frequent ones.
You must install the specific USB VCOM or ADB drivers for your chipset. Without these, the tool won't "see" your phone. flashtool-v5.0.1
scatter file. This file acts as a map for the tool to know where each partition should be written. 3. Choosing the Flashing Mode Even with a stable tool like v5