How To - Burn a custom bootloader to your Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 มิ.ย. 2024
  • In this video I'll go through the steps of burning an Arduino bootloader using a USBASP 2.0 device and the Arduino IDE.
    Here are the links to the various items needed for this process:
    USBASP driver: zadig.akeo.ie/
    AVRDUDESS App: blog.zakkemble.co.uk/avrdudess...
    Arduino IDE: www.arduino.cc/en/main/software
    MySensors GitHub: github.com/mysensors
    For more information on burning bootloaders see the MySensors page: www.mysensors.org/about/ota
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 60

  • @donaldfilbert4832
    @donaldfilbert4832 7 ปีที่แล้ว

    Excellent video !! Very clear and complete explanations with an easy to listen to delivery style. Superior to most I've seen. Thanks !!!

  • @jonvannatto
    @jonvannatto 7 ปีที่แล้ว

    Great explanation! I've been using AVRDUDESS for several years now for uploading to avrs. Really wonderful software.

  • @glynharper
    @glynharper 4 ปีที่แล้ว +2

    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).

  • @bgable7707
    @bgable7707 3 ปีที่แล้ว

    SOOOOO very helpful and clearly explained in FULL !!!

  • @bgable7707
    @bgable7707 3 ปีที่แล้ว +1

    Clean and neat video, Thanks for the effort!

  • @claudiomoles
    @claudiomoles 3 ปีที่แล้ว

    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.

  • @MyBigThing2010
    @MyBigThing2010 7 ปีที่แล้ว +1

    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!

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      Great and, thanks! I'll do my best to keep them coming.

  • @shaunwhiteley3544
    @shaunwhiteley3544 7 ปีที่แล้ว +1

    Excellent, very clear, thank you!

  • @PaulCavanagh69
    @PaulCavanagh69 7 ปีที่แล้ว

    Great tutorial, keep up the good work.

  • @Electromaniaworld
    @Electromaniaworld 6 ปีที่แล้ว

    adding custom bootloader - great tip :) thanks

  • @dbryars
    @dbryars 7 ปีที่แล้ว

    Excellent. Thank you.

  • @kayaker2k
    @kayaker2k 7 ปีที่แล้ว

    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.

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      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 :)

  • @pierpa_76pierpaolo
    @pierpa_76pierpaolo 7 หลายเดือนก่อน +1

    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.

  • @georgef7754
    @georgef7754 7 ปีที่แล้ว

    Brilliant. Thank you.

  • @RETROGAME-FIX
    @RETROGAME-FIX 4 ปีที่แล้ว

    Hi, i want to update the firmware on the USBasp device, is there a way to update firmware using the pro mini.?? thank you.

  • @MohamedAfzal
    @MohamedAfzal ปีที่แล้ว

    possible to change the device detected name to any thing i want? any possibilities that you can share?

  • @armanghaedi587
    @armanghaedi587 6 หลายเดือนก่อน

    حجی دمت گرم کارمون راه افتاد

  • @bgable7707
    @bgable7707 4 ปีที่แล้ว

    That was EXCELLENT!

  • @jumbo999614
    @jumbo999614 4 ปีที่แล้ว

    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.

  • @SandraState
    @SandraState 7 ปีที่แล้ว +1

    Hi, any idea on how to burn Arduino on a blank Adafruit Feather M0 (ATSAMD21 chip)?

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      Unfortunately not. I've never used that chip.

  • @VolkansSpace
    @VolkansSpace 6 ปีที่แล้ว

    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 ?

    • @peteb9105
      @peteb9105  6 ปีที่แล้ว

      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.

  • @joseramondiazsanz5820
    @joseramondiazsanz5820 5 ปีที่แล้ว

    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

    • @peteb9105
      @peteb9105  5 ปีที่แล้ว

      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.

  • @creativebuilder577
    @creativebuilder577 2 ปีที่แล้ว

    it will work with adruino nano?

  • @wahidsalah4545
    @wahidsalah4545 5 ปีที่แล้ว

    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.

    • @peteb9105
      @peteb9105  5 ปีที่แล้ว

      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.

    • @wahidsalah4545
      @wahidsalah4545 5 ปีที่แล้ว

      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.

    • @peteb9105
      @peteb9105  5 ปีที่แล้ว

      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.

  • @Umby73you
    @Umby73you 7 ปีที่แล้ว

    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.

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      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.

    • @kunalpanigrahy4828
      @kunalpanigrahy4828 5 ปีที่แล้ว

      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 ?

  • @josue.calixto1968
    @josue.calixto1968 2 หลายเดือนก่อน

    Thank You

  • @ticktock8751
    @ticktock8751 5 ปีที่แล้ว

    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

    • @UpcycleElectronics
      @UpcycleElectronics 5 ปีที่แล้ว

      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.

  • @oktaymercan
    @oktaymercan 4 ปีที่แล้ว

    Can we update old bootloader devices to new bootloader version? Some arduino nano models have old bootloader version. can we update this?

    • @peteb9105
      @peteb9105  4 ปีที่แล้ว

      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.

  • @Al-bd8hm
    @Al-bd8hm 3 ปีที่แล้ว

    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.

  • @waldocornejo4269
    @waldocornejo4269 6 ปีที่แล้ว +1

    i need help!!!!

  • @mahmoudmetwally3426
    @mahmoudmetwally3426 7 ปีที่แล้ว

    Any additional info about how to use this custom bootloader?

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      +Mahmoud Metwally is this what you're looking for?github.com/mysensors/MySensorsBootloaderRF24

    • @mahmoudmetwally3426
      @mahmoudmetwally3426 7 ปีที่แล้ว

      Exactly, is there any documentation about how to use this bootloader?

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      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.

    • @mahmoudmetwally3426
      @mahmoudmetwally3426 7 ปีที่แล้ว

      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:)

    • @Embeddronics
      @Embeddronics 7 ปีที่แล้ว

      Program Arduino mega with USBasp
      th-cam.com/video/BoSWg_30w1I/w-d-xo.html

  • @M.4y
    @M.4y 4 ปีที่แล้ว

    How can I burn the correct bootloader to ATMEGA32U4?

    • @peteb9105
      @peteb9105  4 ปีที่แล้ว

      Sorry, I'm not sure. I haven't used that chip.

  • @myildirim
    @myildirim 7 ปีที่แล้ว

    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 ?

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      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)?

    • @myildirim
      @myildirim 7 ปีที่แล้ว

      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 ?

    • @myildirim
      @myildirim 7 ปีที่แล้ว

      I already deserved a nobel for trying so hard to save that uno...

    • @peteb9105
      @peteb9105  7 ปีที่แล้ว

      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!

    • @gesheit3358
      @gesheit3358 4 ปีที่แล้ว +1

      Hello!!! i've had the same problem... i tried doing this with arduino already wired up to usbasp... And it worked for me)))