Line 57: Line 57:
 
<br>
 
<br>
 
<b>STEP 1:</b> Run the Xplore Flash(Avr Dudes) software and
 
<b>STEP 1:</b> Run the Xplore Flash(Avr Dudes) software and
 +
#<font color="red">'''Note: Keep the P1.5 - P1.7 open as they are used for flashing the code using USBasp'''</font>
 
#Select the UsbAsp programmer from the dropdown as shown below.<br>
 
#Select the UsbAsp programmer from the dropdown as shown below.<br>
 
#Select the AT89S52 controller from the drop down.<br>
 
#Select the AT89S52 controller from the drop down.<br>
 
#Check the write option to flash the .hex file to the controller.<br>
 
#Check the write option to flash the .hex file to the controller.<br>
<font color="red">*'''Note: Keep the P1.5 - P1.7 open as they are used for flashing the code using USBasp'''</font>
+
 
  
 
[[File:XploreFlash 01.png ]]  <br>
 
[[File:XploreFlash 01.png ]]  <br>

Revision as of 17:37, 10 May 2017

In this tutorial, we will see how to use XploreFlash for flashing the hex files to AT89s52.
First, we will see how to install the XploreFlash software along with UsbAsp drivers and then continue with flashing the controller.

Installing UsbAsp Drivers

Download the UsbAsp drivers from this link and follow the below steps.
In case your are using Windows7/Vista/Xp, skip the first 7 steps and directly jump to step8.

Windows 8 and above do not allow the installation of drivers that are not digitally signed. This needs to be disabled by following the below steps.

STEP 1:Go to Advanced Start Options by searching the same in Windows Start Menu. UsbAsp Setup Steps.png

STEP 2: Click on Restart Now in Advanced Start Up options. UsbAsp Setup Steps 1.png

STEP 3: Now choose the Troubleshoot option. UsbAsp Setup Steps 2.jpg

STEP 4: Click on Advanced Options. UsbAsp Setup Steps 3.jpg

STEP 5: Click on StartUp Settings. UsbAsp Setup Steps 4.jpg

STEP 6: Now Click on Restart and wait till the PC restarts. UsbAsp Setup Steps 5.jpg

STEP 7: Once the PC restarts, Press 7/F7 to disable Driver Signature Enforcement. UsbAsp Setup Steps 6.jpg

STEP 8: Now Connect the Usbasp programmer to the system and it will be listed under other devices in device manager. UsbAsp Setup Steps 7.PNG

STEP 9: Right Click and choose Update Driver Software UsbAsp Setup Steps 8.png

STEP 10:Now browse and select the folder where the drivers are stored. UsbAsp Setup Steps 9.PNG

STEP 11: After selecting the driver folder, click on Next to install the drivers. UsbAsp Setup Steps 10.PNG

STEP 12: Click on Install This Software Anyway UsbAsp Setup Steps 11.PNG

STEP 13: Once the installion is successful, below message will be displayed. UsbAsp Setup Steps 12.PNG

STEP 14: Now the device will be listed under libusb-win32 devices. UsbAsp Setup Steps 13.PNG


Using XploreFlash(AVR Dudes)

  1. Xplore flash is based on various open source software, it requires avrdude. Avrdude is part of WinAVR GCC compiler. Download and install it.
  2. The GUI software will require .NET framework 2.0 or later please download and install it.
  3. Download and install XploreFlash GUI and follow the below steps.


STEP 1: Run the Xplore Flash(Avr Dudes) software and

  1. Note: Keep the P1.5 - P1.7 open as they are used for flashing the code using USBasp
  2. Select the UsbAsp programmer from the dropdown as shown below.
  3. Select the AT89S52 controller from the drop down.
  4. Check the write option to flash the .hex file to the controller.


XploreFlash 01.png

STEP 2: Browse and Select the .hex file to be flashed. XploreFlash 02.png

STEP 3: Finally hit the GO button to flash the .hex file. XploreFlash 03.png

STEP 4: Flashing status will be displayed in the conosle window. XploreFlash 04.PNG


Have an opinion, suggestion , question or feedback about the article let it out here!