How To - Burn a custom bootloader to your Arduino

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 60

  • @pierpa_76pierpaolo
    @pierpa_76pierpaolo Год назад +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.

  • @glynharper
    @glynharper 5 лет назад +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).

  • @jonvannatto
    @jonvannatto 8 лет назад

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

  • @MohamedAfzal
    @MohamedAfzal 2 года назад

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

  • @bgable7707
    @bgable7707 3 года назад +1

    Clean and neat video, Thanks for the effort!

  • @claudiomoles
    @claudiomoles 4 года назад

    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.

  • @donaldfilbert4832
    @donaldfilbert4832 8 лет назад

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

  • @RETROGAME-FIX
    @RETROGAME-FIX 5 лет назад

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

  • @creativebuilder577
    @creativebuilder577 3 года назад

    it will work with adruino nano?

  • @bgable7707
    @bgable7707 4 года назад

    SOOOOO very helpful and clearly explained in FULL !!!

  • @kayaker2k
    @kayaker2k 8 лет назад

    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  8 лет назад

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

  • @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.

  • @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.

  • @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.

  • @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.

  • @shaunwhiteley3544
    @shaunwhiteley3544 7 лет назад +1

    Excellent, very clear, thank you!

  • @joseramondiazsanz5820
    @joseramondiazsanz5820 6 лет назад

    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  6 лет назад

      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.

  • @armanghaedi587
    @armanghaedi587 Год назад

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

  • @Al-bd8hm
    @Al-bd8hm 4 года назад

    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.

  • @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.

  • @oktaymercan
    @oktaymercan 5 лет назад

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

    • @peteb9105
      @peteb9105  5 лет назад

      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.

  • @wahidsalah4545
    @wahidsalah4545 6 лет назад

    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  6 лет назад

      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 6 лет назад

      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  6 лет назад

      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 ?

  • @PaulCavanagh69
    @PaulCavanagh69 7 лет назад

    Great tutorial, keep up the good work.

  • @josue.calixto1968
    @josue.calixto1968 8 месяцев назад

    Thank You

  • @georgef7754
    @georgef7754 8 лет назад

    Brilliant. Thank you.

  • @Electromaniaworld
    @Electromaniaworld 6 лет назад

    adding custom bootloader - great tip :) thanks

  • @bgable7707
    @bgable7707 4 года назад

    That was EXCELLENT!

  • @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.

  • @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
      ruclips.net/video/BoSWg_30w1I/видео.html

  • @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)))

  • @waldocornejo4269
    @waldocornejo4269 6 лет назад +1

    i need help!!!!

  • @dbryars
    @dbryars 8 лет назад

    Excellent. Thank you.