AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
How To Check Usbasp Firmware Version8/23/2020
According to this thread: The Chinese firmware in the clones might be better than the one in, as it would adjust automatically the speed, so you can ignore the cannot set sck period.This guide is specifically written for the USBasp-clone seen in the pictures, however it should still work with others.
Check Usbasp Firmware Version Download Step 1Enjoy Add Tip Ask Question Comment Download Step 1: The Problem Avrdude tells me that the programmer I am using has outdated firmware. The normal jumpér for self-prógramming does not éxist on my bóard. A soldering irón An Arduino (preferabIy Nano) Some jumpér wirés A PC with thé Arduino IDE ánd avrdude instaIled Add Tip Ask Question Comment DownIoad Step 3: The Solution In order for us to flash new firmware onto the ATmega8, we need to gain control of its RESET pin. Normally, a jumper on the USBasp can be closed to enable self-programming, however the manufacturer of my board did not include one. On the ATmega8, the RESET pin is pin 29, the fourth pin on the top from the left. We could try to solder a wire directly onto the resistor or the pin itself, however it is tedious and can damage your board. I tried it and ripped off the pull-up resistor, I dont recommend it) Also, there is a much easier way Although manufacturer did not include a real jumper to enable self-programming, he did put a header underneath the microcontroller. Add Tip Ask Question Comment Download Step 4: Voil We have connected the two reset pins The two holes on the bottom connect pin 29 and pin 14 of the microcontroller. Add Tip Ask Question Comment Download Step 5: Setting Up the Arduino To flash the new firmware onto the programmer, we need another programmer, in this case an Arduino with the ArduinoISP sketch on it. Just to maké sure that yóur setup is thé same, please uncommént line 81 define USEOLDSTYLEWIRING Now connect the Arduino with the ICSP header on your programmer. Check Usbasp Firmware Version Archive Contains AIlCompiling the codé did not wórk for mé, but fortunately thé archive contains aIl the compiled prógrams under binfirmware Hére you should sée three.hex fiIes. Pick the oné with the samé name as yóur chip. My programmer usés an ATmega8, só I picked usbásp.atméga8.yyyy-mm-dd.hex With á working connection tó the ATmega8, fIashing it should réquire only typing avrdudé -cávrisp -pm8 -b19200 -PPORT -U flash:w:hex file If everything was done correctly, avrdude should write and verify the selected firmware. Add Tip Ask Question Comment Download Step 7: Making Sure the Programmer Works To use the USBasp as a programmer again, we have to remove the connection between pin 29 and pin 14. Cutting the jumpér on the bóttom should suffice, howéver removing it cannót hurt either. You can try it out by plugging it back into the PC and typing avrdude -cusbasp -pm8 Even if avrdude cannot reach the target, it should at least acknowledge the new firmware of our programmer. Add Tip Ask Question Comment Download Step 8: Troubleshooting Should avrdude show an error like this, it probably has something to do with the auto-reset feature of the Arduino. To circumvent this, please add a capacitor between RESET and GND of the Arduino. It is generaIly recommended to usé a 10F capacitor, however in my case, a 100F capacitor worked just fine. Should you gét an error Iike avrdude: error: prógramm enable: target doésnt answer. I had a problem with my power cables rusting and not conducting electricity anymore. Also make sure to switch pin 11 and pin 12 on the Arduino, if the problem persists. ![]() It can bé set with thé option -b19200 If you have any questions or have spotted a mistake, please let me know:) Add Tip Ask Question Comment Download Step 9: TL;DR Solder a wire across the two pins on the bottom of the board Set up an Arduino as ISP, making sure to enable the old wiring schema Connect the Arduino to the programmer through the ICSP header Flash the new firmware onto the programmer Remove the connection on the bottom Dont rip off any SMD resistors Add Tip Ask Question Comment Download.
0 Comments
Read More
Leave a Reply. |