Your computer needs to recognize the phone when it is in "Download Mode."
The keyword includes "free," which is crucial. Many paid websites charge $10–$20 for firmware that should be open source. However, free firmware exists, but you must be cautious.
Once you have downloaded the firmware (usually a ZIP or RAR archive):