Important Security Warning: Because this tool is often used to fix "bricked" electronics, it is a high-value target for malware distributors. Fake download links often contain trojans or ransomware.
If you already have v5.0.6 or older:
Assuming you have a firmware binary (.bin or .hex file) for your device: