If you have not already done so, download and install the Arduino IDE.
Go to File > Preferences
Check the box that says Show verbose output during upload. This will allow you to monitor the flashing process and ensure that it is going correctly.
Click the button next to Additional Boards Manager URLs and then paste the following URL into the box:
Your contributions are licensed under the open source Creative Commons license.
Insert a new line below
Insert a new line above
Indent current line
Unindent current line
Delete current line
Navigate to next step.
Navigate to previous step.