SamMobile may be the best choice to download stock firmware of Samsung device. Or you can go to Samsung Updates, XDA Forum or Google to find the correspondent firmware of your device.
Click “Firmware” and enter your device model, Select country or type in certain info to filter, eg.Baseband version.
After downloading it (normally a compressed file), you need to extract/unzip it to a certain location of your PC. The file types that Odin uses are *.bin,*.tar and *.tar.md5.
Find the file you have downloaded and then unzip it to Desktop.
You will find a *.md5 file after extracting.
Step 3: Download and extract Odin on your PC.
You can download Odin V3.10.7 directly from SamMobile. AndroidMTK is a fine alternative, it also offers a detailed list of Odin versions and downloads link. Or you can always Google “Odin download”. After downloading it on your PC, extract it to Desktop or another location you’d prefer.
Odin v3.10.7 zip file.
After extracting, right-click to “Open as Administrator”. It may prevent certain issue from happening.
Run Odin as administrator is recommended.
Step 4: Boot your Samsung device into Download mode.
Follow these steps to enter Download Mode/Odin Mode
Power off your device
Press and hold Volume Down key, Home Key and Power Key
When your device vibrates, release Power key while keep holding the Volume Down key and Homekey
Warning before entering into download mode
Press Volume Up key to enter Download mode, which has a green robot figure and “Downloading… Do not turn off target!!)
Now you are in download mode.
Step 5: Connect your device to PC.
You device should be automatically recognized by Odin. At the lower-left of Odin interface, it should show a message that says “Added!” and in the meantime you should see a light-blue box at the ID:COM section stating “COM:3” (the number depend on which USB port you have plugged the device cable and is irrelevant).
Device is connected to Odin.
Step 6: Click “PDA” or “AP” to add tar.md5 file that you have extracted and then “Start”.
Whether it is “PDA” or “AP” depends on the version of Odin that you used. But the md5 file goes to either “PDA” or “AP”.
Add *.md5 to Odin.
After adding the file, click “Start” to begin the flashing process.
Click “Start” to flash.
WARNING DO NOT REMOVE OR OPERATE ON YOUR DEVICE UNTIL FINISHED OR FAILED IS SHOWED ON ODIN.
Ongoing flashing process. Do not remove your device.
When the flashing process is done and if everything goes well, you should see a big green box saying “RESET” or “PASSED” (depends on the version of Odin is used). By now, the device should be rebooted and it is safe to remove/unplug your device.
If failed, what should you do?
Try these things first:
Update your device driver software to the latest.
Restart your computer.
Run Odin as Administrator.
Try a different cable (original one or the one with better quality) and USB port (the main port recommended)
Re-download the firmware file, make sure it is intact and match your device model
Use Odin to Flash Samsung Galaxy Stock Firmware
USB data cable
Find Odin Firmware Files
Extract the Firmware Files
Install the Right Drivers
Install Odin on Your PC
Put Your Phone in Download Mode & Connect to PC
Flash the Firmware Files
We provide combination firmware file for Samsung mobiles. for Samsung Galaxy Combination Firmware Files ROM a310 a510s a520l a710k a910f g530 S6 edge g925p S7 g930s g935s g920t g935t S8 g950u S8+ Plus S9 and S9 Plus, Note 9 Note8. Combination firmware is a ROM for developers or engineers they run the device also can fully read and test the equipment of the device.