Excelent, so many videos create such a mess to program a bootloader using different programs. Just use Arduino IDE, simple and fast!! Thanks for the fantastic tutorial.
Good Job! Had the same Problem with the UNO and made a little adapter board to plug in the usbaso cable and the mini. Also works fine. Now I really want to try OTA but the flashing part is missing from this video.
Thanks! I will eventually make a video on the OTA process but it was beyond the scope of this one. I wanted to do a generic "burn bootloader" video first as I needed to show how to do that for another upcoming video I'm working on that requires flashing a bootloader. There are so many videos I want to do but never enough time :)
i have a question what is this avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check. i had got about 50 + attiny 85 from JD joy buy and when they came only in plastic bag are they dead from static or am i doing some thing wrong. the set up i have the attiny 85 will program perfect on the first batch i got, bit they had been in anti static tube... hope you can help i am using Arduino as ISP
They could be bad or they could need a high voltage programmer. They are probably refurbished if they came in a bag. If so, it's likely they have had the programming pins repurposed in the fuse settings. You must use a high voltage programmer, like the actual Atmel toolchain hardware, to reset these fuses. Those tools have the ability to do a 12v routine that resets all fuses. I haven't messed with these chips myself, but I think there may be some alternatives like an Ardy Uno shield or something. If you're on Windoze just get the Atmel tools and tool chain for the most headache free and functional option. Many people claim to only use windoze still due to Atmel Studio and AVR's.
Try to flash NaNo and got this error: Arduino: 1.8.11 (Windows 8.1), Board: "Arduino Duemilanove or Diecimila, ATmega168" avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: Expected signature for ATmega168 is 1E 94 06 Double check chip, or use -F to override this check. Error while burning bootloader.
AWESOME! I really wish more people would upload proper videos like this if they're gonna record and upload content. excellent video! thank you for the information. I hope you keep stuff like this coming! I've had a Pro Mini in my tackle box forever and I haven't used it because of being to dumb n apprehensive...with this info the pro mini will be thrown into the rotation to finally get some use. thanks again!
I went a step further but I do not know if it was too hasty. I installed on a pcb the micro atmega328p-au including an external resonator of 8mhz. In order to be able to access its programming later, I arranged ISP and FTDI ports as if it were a pro mini 3.3v to 8mhz, however, following the steps that you indicated I was not able to establish communication. I tried different arduino plates such as pro mini or nano obtaining good results. But I can not advance my project. Any suggestions
Hmm, I'm not sure. Just double check the wiring. Also, the pins on the atmega are not the same number on the pro mini. That messed me up when I was trying to add a resonator.
Why I'm getting this error? The program with other Nanos is working. Thanks. avrdude.exe: set SCK frequency to 1500000 Hz avrdude.exe: error: program enable: target doesn't answer. 1 avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
So how can i with cmd without any ide , also i want to ask something , how mcu understand that this program is for bootloader you wrote , did you any change fuse settings , before flash bootloader section ?
I actually did not write the bootloader. Just used it :) You may have to write fuses depending on the bootloader. For this one I don't believe I did though.
It should work. I have flashed custom bootloaders and then back to the original. So, I don't see why it wouldn't work to update them to a more recent version.
thanks for the very clear and helpful video. I need to OTA, now can I burn the MYSBOOTLOADER and use my own sketch? and how to trigger flashing on the remote node ( the one which has MYSBOOTLOADER, which i tried and succeeded :) )? Maybe you can do a video on that ? thanks for your time.
I have that video on the list but it's not at the top unfortunately. I have been so busy lately I haven't had a chance to work on any videos. I'm hoping I'll be able to get back to it after summer ends and the kids go back to school. For the MYSBootloader questions I suggest you head over to the MySensors forum. You will be able to get better help from there. But, you will burn the bootloader using the process in the video then you can upload a sketch using the arduino IDE with an FTDI adapter or use FOTA with the MYSController or I believe MyController will do it as well.
Alright. Now with the cheap ESPs people starts to ignore nrf24. But still I think such a video will get good Likes for the channel. Since I looked up the net and couldn't find anything for that. Thanks for your time.
Yeah, the advantage of MySensors is you can interchange controllers easier. I haven't played with the esp yet. I know MySensors supports it but I haven't had the need yet.
Hi Pete, many compliments for Your tutorial. I have a problem: I bought an Arduino Mega 2560 "Chinese Clone" and It's impossible to load any sketch in It. I tried all ways but I think the bootloader has not loaded. I say that because when I connect Arduino to the PC, the L blink very shortly and then never more... Do You think it's possible to recover this situation following your tutorial? Do IO need to download the Arduino Mega 2560 bootloader or is included in IDE? Thanks a lot, Umberto.
Hmm. You could try. I've never personally flashed a bootloader to a Mega. The bootloader should be there with the IDE so you shouldn't need to download another one.
Hey, I have bought an Arduino Nano clone. I have tried uploading the sketch but bootloader isn't installed in it ,so the sketch is not getting up loaded. Can I install the bootloader using this method ? Umberto ,I have a question for you. Did you successfully installed the bootloader on your board ?
This is a really long forum topic but it will definitely give you more info on using MYSController (the tool that will do the OTA uploading with the bootloader mentioned above). forum.mysensors.org/topic/838/windows-gui-controller-for-mysensors You may also want to do some searches on the MySensors forum for MYSController.
Ok, I will try to figure things out myself, but it would be awesome if you make a video explaining this topic and thanks for this great video by the way:)
When i click detect mcu in avrdudes; Unable to detect MCU avrdude.exe: set SCK frequency to 1500000 Hz avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update. avrdude.exe: error: programm enable: target doesn't answer. 1 avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude.exe done. Thank you. So what now then ?
Are you sure your wiring is correct? If so, you may have a locked bootloader that will need to be updated with a "high power" programmer. Are you able to upload a bootloader to other Pro Minis (from a different seller)?
Pete B no, i have a working uno, a non working uno, a working nano, and this usbasp. So i tried to burn the bootloader to sick uno, both from working uno, and my working nano. None of them worked. All cables are right. Should i risk my precious working nano, and use my working uno to burn bootloader to my working nano ? (Just to see if my usbasp is working or not ?) or should i just toss the sick uno :) and move on ?
Hmm. It doesn't sound good. Maybe just write off the non-working Uno. You could always buy a pro mini to experiment with. They are very cheap and learning how to burn a bootloader is a good thing to know for the future :) Good luck!
Do you have any solution to restore the UNO and NANO boards with hardware modifications with jumpers and so on? I stand by. Thank you very much.
Fantastic, editing the boards.txt file was what I'd forgotten and took me ages until I found your video. Many thanks! (Works for Mac too, by the way).
Great explanation! I've been using AVRDUDESS for several years now for uploading to avrs. Really wonderful software.
possible to change the device detected name to any thing i want? any possibilities that you can share?
Clean and neat video, Thanks for the effort!
Excelent, so many videos create such a mess to program a bootloader using different programs. Just use Arduino IDE, simple and fast!!
Thanks for the fantastic tutorial.
Excellent video !! Very clear and complete explanations with an easy to listen to delivery style. Superior to most I've seen. Thanks !!!
Hi, i want to update the firmware on the USBasp device, is there a way to update firmware using the pro mini.?? thank you.
it will work with adruino nano?
SOOOOO very helpful and clearly explained in FULL !!!
Good Job! Had the same Problem with the UNO and made a little adapter board to plug in the usbaso cable and the mini. Also works fine.
Now I really want to try OTA but the flashing part is missing from this video.
Thanks! I will eventually make a video on the OTA process but it was beyond the scope of this one. I wanted to do a generic "burn bootloader" video first as I needed to show how to do that for another upcoming video I'm working on that requires flashing a bootloader. There are so many videos I want to do but never enough time :)
i have a question what is this
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override this check.
i had got about 50 + attiny 85 from JD joy buy and when they came only in plastic bag are they dead from static or am i doing some thing wrong.
the set up i have the attiny 85 will program perfect on the first batch i got, bit they had been in anti static tube...
hope you can help
i am using Arduino as ISP
They could be bad or they could need a high voltage programmer. They are probably refurbished if they came in a bag. If so, it's likely they have had the programming pins repurposed in the fuse settings. You must use a high voltage programmer, like the actual Atmel toolchain hardware, to reset these fuses. Those tools have the ability to do a 12v routine that resets all fuses. I haven't messed with these chips myself, but I think there may be some alternatives like an Ardy Uno shield or something. If you're on Windoze just get the Atmel tools and tool chain for the most headache free and functional option. Many people claim to only use windoze still due to Atmel Studio and AVR's.
Try to flash NaNo and got this error:
Arduino: 1.8.11 (Windows 8.1), Board: "Arduino Duemilanove or Diecimila, ATmega168"
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: Expected signature for ATmega168 is 1E 94 06
Double check chip, or use -F to override this check.
Error while burning bootloader.
AWESOME! I really wish more people would upload proper videos like this if they're gonna record and upload content. excellent video! thank you for the information. I hope you keep stuff like this coming! I've had a Pro Mini in my tackle box forever and I haven't used it because of being to dumb n apprehensive...with this info the pro mini will be thrown into the rotation to finally get some use. thanks again!
Great and, thanks! I'll do my best to keep them coming.
Hi, any idea on how to burn Arduino on a blank Adafruit Feather M0 (ATSAMD21 chip)?
Unfortunately not. I've never used that chip.
Excellent, very clear, thank you!
I went a step further but I do not know if it was too hasty. I installed on a pcb the micro atmega328p-au including an external resonator of 8mhz. In order to be able to access its programming later, I arranged ISP and FTDI ports as if it were a pro mini 3.3v to 8mhz, however, following the steps that you indicated I was not able to establish communication. I tried different arduino plates such as pro mini or nano obtaining good results. But I can not advance my project.
Any suggestions
Hmm, I'm not sure. Just double check the wiring. Also, the pins on the atmega are not the same number on the pro mini. That messed me up when I was trying to add a resonator.
حجی دمت گرم کارمون راه افتاد
Why I'm getting this error? The program with other Nanos is working. Thanks.
avrdude.exe: set SCK frequency to 1500000 Hz
avrdude.exe: error: program enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
So how can i with cmd without any ide , also i want to ask something , how mcu understand that this program is for bootloader you wrote , did you any change fuse settings , before flash bootloader section ?
I actually did not write the bootloader. Just used it :) You may have to write fuses depending on the bootloader. For this one I don't believe I did though.
Can we update old bootloader devices to new bootloader version? Some arduino nano models have old bootloader version. can we update this?
It should work. I have flashed custom bootloaders and then back to the original. So, I don't see why it wouldn't work to update them to a more recent version.
thanks for the very clear and helpful video. I need to OTA, now can I burn the MYSBOOTLOADER and use my own sketch? and how to trigger flashing on the remote node ( the one which has MYSBOOTLOADER, which i tried and succeeded :) )? Maybe you can do a video on that ? thanks for your time.
I have that video on the list but it's not at the top unfortunately. I have been so busy lately I haven't had a chance to work on any videos. I'm hoping I'll be able to get back to it after summer ends and the kids go back to school.
For the MYSBootloader questions I suggest you head over to the MySensors forum. You will be able to get better help from there. But, you will burn the bootloader using the process in the video then you can upload a sketch using the arduino IDE with an FTDI adapter or use FOTA with the MYSController or I believe MyController will do it as well.
Alright. Now with the cheap ESPs people starts to ignore nrf24. But still I think such a video will get good Likes for the channel. Since I looked up the net and couldn't find anything for that. Thanks for your time.
Yeah, the advantage of MySensors is you can interchange controllers easier. I haven't played with the esp yet. I know MySensors supports it but I haven't had the need yet.
Hi Pete,
many compliments for Your tutorial.
I have a problem: I bought an Arduino Mega 2560 "Chinese Clone" and It's impossible to load any sketch in It.
I tried all ways but I think the bootloader has not loaded.
I say that because when I connect Arduino to the PC, the L blink very shortly and then never more...
Do You think it's possible to recover this situation following your tutorial?
Do IO need to download the Arduino Mega 2560 bootloader or is included in IDE?
Thanks a lot, Umberto.
Hmm. You could try. I've never personally flashed a bootloader to a Mega. The bootloader should be there with the IDE so you shouldn't need to download another one.
Hey,
I have bought an Arduino Nano clone.
I have tried uploading the sketch but bootloader isn't installed in it ,so the sketch is not getting up loaded.
Can I install the bootloader using this method ?
Umberto ,I have a question for you.
Did you successfully installed the bootloader on your board ?
Great tutorial, keep up the good work.
Thank You
Brilliant. Thank you.
adding custom bootloader - great tip :) thanks
Electromania 78$=
That was EXCELLENT!
Thanks :)
How can I burn the correct bootloader to ATMEGA32U4?
Sorry, I'm not sure. I haven't used that chip.
Any additional info about how to use this custom bootloader?
+Mahmoud Metwally is this what you're looking for?github.com/mysensors/MySensorsBootloaderRF24
Exactly, is there any documentation about how to use this bootloader?
This is a really long forum topic but it will definitely give you more info on using MYSController (the tool that will do the OTA uploading with the bootloader mentioned above). forum.mysensors.org/topic/838/windows-gui-controller-for-mysensors You may also want to do some searches on the MySensors forum for MYSController.
Ok, I will try to figure things out myself, but it would be awesome if you make a video explaining this topic and thanks for this great video by the way:)
Program Arduino mega with USBasp
ruclips.net/video/BoSWg_30w1I/видео.html
When i click detect mcu in avrdudes;
Unable to detect MCU
avrdude.exe: set SCK frequency to 1500000 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude.exe done. Thank you.
So what now then ?
Are you sure your wiring is correct? If so, you may have a locked bootloader that will need to be updated with a "high power" programmer. Are you able to upload a bootloader to other Pro Minis (from a different seller)?
Pete B no, i have a working uno, a non working uno, a working nano, and this usbasp. So i tried to burn the bootloader to sick uno, both from working uno, and my working nano. None of them worked. All cables are right.
Should i risk my precious working nano, and use my working uno to burn bootloader to my working nano ? (Just to see if my usbasp is working or not ?) or should i just toss the sick uno :) and move on ?
I already deserved a nobel for trying so hard to save that uno...
Hmm. It doesn't sound good. Maybe just write off the non-working Uno. You could always buy a pro mini to experiment with. They are very cheap and learning how to burn a bootloader is a good thing to know for the future :) Good luck!
Hello!!! i've had the same problem... i tried doing this with arduino already wired up to usbasp... And it worked for me)))
i need help!!!!
Excellent. Thank you.