Updating the Bootloader in an Arduino Nano.

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ค. 2022
  • Here I explain why you might want to update the bootloader in an Arduino Nano, and show you how to actually do it.
    We start with a demonstration test sketch showing the "old" bootloader causing a watchdog timer timeout that crashes the Nano. Then we use an Uno as an ISP programmer and connect it to the Nano. Next we update the Nano "high fuses" to allow us to benefit from the new bootloaders smaller size. Then we update the bootloader in the Nano. Finally we re-run the watchdog timer timeout sketch and see that it now works and the Nano is correctly reset instead of crashing.
    My code and other materials, as used in the video, is here:
    - github.com/ilneill/NanoBLUpdate
    Comments and questions welcome!

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

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

    Thanks ! Great Tutorial

  • @henkoegema6390
    @henkoegema6390 2 ปีที่แล้ว +1

    Excellent work Ian.
    I will try to do the same what you explained here.

    • @ianneill9188
      @ianneill9188  2 ปีที่แล้ว +1

      Thanks Henk. It is not too difficult, but message if you have any questions.

  • @keithlohmeyer
    @keithlohmeyer 2 ปีที่แล้ว +1

    Nice tutorial! Thanks

  • @adrianbrindley1925
    @adrianbrindley1925 2 ปีที่แล้ว +1

    Thanks Ian, a very informative tutorial and great documentation! I had a Nano running the watchdog.ino fine & connecting at 115200, only thing I noticed was the memory return after the watchdog sketch upload - "Sketch uses 2488 bytes (8%) of program storage space. Maximum is 30720 bytes." so I may need to go through the updates for the upload.max_mem size & high_fuses parameters.

    • @ianneill9188
      @ianneill9188  2 ปีที่แล้ว +1

      Sounds like you have previously updated your nano bootloader, but without correcting the numbers in boards.txt. I think if you do it again, with the numbers fixed, then you will be good.

    • @adrianbrindley1925
      @adrianbrindley1925 2 ปีที่แล้ว +1

      @@ianneill9188 Yes that all works absolutely fine following the process, thanks. Nano bootloader updated!

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

    Great explanation of how to get a new bootloader into a nano. One suggestion though: You're whispering! It's almost like you're talking to yourself. I hope you will raise your mic volume for your next video. But keep up the good work!

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

      Thank you for the feedback. I do listen back, but always with headphones. I will checkout my mic settings without them too.

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

      @@ianneill9188 Thanks for the kind reply. As an engineer I'm very interested -in general-in the "why" as well as the "what". However, the reason I watched your video was to solve a problem that I had (actually still have), which was trying to figure out the steps required to program my Nano via the serial port. However, there was so much extraneous information in your video that it was difficult to separate the wheat from the chaff. Might I suggest removing the non-essential stuff from the video and adding something like "Learn More" cards up in the corner. That would make the video much more useful to people who are primarily trying to solve a problem while giving you more videos to attract more viewers.
      With that said, my videos are nothing to write home about themselves so please take my comment in the spirit in which it's given.
      Thank you for taking the time to create this.

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

      ...Ditto!!! Some of us are older, & hard of hearing... { The distracting music in the background doesn't help much, either!!! :-( }

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

      @@fredcooper2063 Thank you for the feedback. I can see that not having background music would help any volume and audibility that some listeners may have.

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

      @@SRFDriver Thank you for the detailed feedback. Another comment has highlighted the background music. I am inclined to think that removing that could improve audibility issues generally. It is also a quick and easy fix!