Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 Various bootloader files based on Optiboot 6.2

💬 Various bootloader files based on Optiboot 6.2

Scheduled Pinned Locked Moved OpenHardware.io
optiboot
164 Posts 18 Posters 63.7k Views 18 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • bjacobseB bjacobse

    when I run the below command in Ubuntu I can flash the bootloader

    sudo avrdude -c usbtiny -p m328p -U flash:w:optiboot_atmega328_01M_009600_NOLED.hex  -U lfuse:w:0x62:m -U hfuse:w:0xDE:m -U efuse:w:0x07:m
    
    

    And then I can use the Arduino IDE and upload sketch with settings for 1MHz external 9k6 BOD=1V8

    GertSandersG Offline
    GertSandersG Offline
    GertSanders
    Hardware Contributor
    wrote on last edited by
    #107

    @bjacobse
    Efuse 0x07 actually means no Brown Out Detection. Should save you some nano Amperes during operation.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      msebbe
      wrote on last edited by
      #108

      @GertSanders

      Hi, and thanks for your amazing work! I am trying to make your Narrow node with a Atmega 328P-PU and the pcb you made. I have low understanding of how I am going to upload "optiboot_atmega328_08M_038400_D6.hex" via a arduino uno.. Do I need to make anything with fuses or so? And how do I do it if that is the case?

      GertSandersG 1 Reply Last reply
      0
      • M msebbe

        @GertSanders

        Hi, and thanks for your amazing work! I am trying to make your Narrow node with a Atmega 328P-PU and the pcb you made. I have low understanding of how I am going to upload "optiboot_atmega328_08M_038400_D6.hex" via a arduino uno.. Do I need to make anything with fuses or so? And how do I do it if that is the case?

        GertSandersG Offline
        GertSandersG Offline
        GertSanders
        Hardware Contributor
        wrote on last edited by
        #109

        @msebbe

        There is a very good tutorial how to do this:

        https://forum.mysensors.org/topic/3018/tutorial-how-to-burn-1mhz-8mhz-bootloader-using-arduino-ide-1-6-5-r5/1

        M 1 Reply Last reply
        0
        • GertSandersG GertSanders

          @msebbe

          There is a very good tutorial how to do this:

          https://forum.mysensors.org/topic/3018/tutorial-how-to-burn-1mhz-8mhz-bootloader-using-arduino-ide-1-6-5-r5/1

          M Offline
          M Offline
          msebbe
          wrote on last edited by
          #110

          @GertSanders Okey, thanks so In my understanding, that takes care of the fuses also.

          GertSandersG 1 Reply Last reply
          0
          • M msebbe

            @GertSanders Okey, thanks so In my understanding, that takes care of the fuses also.

            GertSandersG Offline
            GertSandersG Offline
            GertSanders
            Hardware Contributor
            wrote on last edited by
            #111

            @msebbe

            It does if the board definitions are set right. Check out the tutorial to understand how it works, then you should know how to adapt to other boot loaders (like mine).

            M 1 Reply Last reply
            1
            • GertSandersG GertSanders

              @msebbe

              It does if the board definitions are set right. Check out the tutorial to understand how it works, then you should know how to adapt to other boot loaders (like mine).

              M Offline
              M Offline
              msebbe
              wrote on last edited by
              #112

              @GertSanders Okey, I almost got it! I am stuck on compiling the sketch. It says "pins_arduino.h" is missing. Apparently I need a folder called "28PinBoard" with a file "pins_arduino.h" in it. Wich one can I use for this project?

              GertSandersG 1 Reply Last reply
              0
              • M msebbe

                @GertSanders Okey, I almost got it! I am stuck on compiling the sketch. It says "pins_arduino.h" is missing. Apparently I need a folder called "28PinBoard" with a file "pins_arduino.h" in it. Wich one can I use for this project?

                GertSandersG Offline
                GertSandersG Offline
                GertSanders
                Hardware Contributor
                wrote on last edited by GertSanders
                #113

                @msebbe

                Drop this ZIP (unpack it there) into your "hardware" directory. You should find a "hardware" directory in the Sketches directory, then restart the Arduino IDE.

                It should find a complete set of boot loaders for the 28 pin and 32 pin versions.

                0_1463253058014_atmega328p.zip

                You will need to check that the directory is unpacked with all subdirectories. The directory name will be "atmega328p".

                1 Reply Last reply
                0
                • alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by
                  #114

                  @GertSanders My personal observations - some chips are more temperamental than the others. I recently tried to upload the sketch (8Mhz internal clock) and it failed a few times. Then I reflashed Optiboot and used the external clock (8Mhz external clock) and this cured the issue. With other chips I did not have this problem.

                  GertSandersG 1 Reply Last reply
                  0
                  • alexsh1A alexsh1

                    @GertSanders My personal observations - some chips are more temperamental than the others. I recently tried to upload the sketch (8Mhz internal clock) and it failed a few times. Then I reflashed Optiboot and used the external clock (8Mhz external clock) and this cured the issue. With other chips I did not have this problem.

                    GertSandersG Offline
                    GertSandersG Offline
                    GertSanders
                    Hardware Contributor
                    wrote on last edited by
                    #115

                    @alexsh1

                    Indeed, the internal oscillator on some atmega328's is a bit off from 8MHz and enough so that higher speed transmission of sketches can give a problem.

                    1 Reply Last reply
                    0
                    • gyroG Offline
                      gyroG Offline
                      gyro
                      wrote on last edited by gyro
                      #116

                      @GertSanders thanks for this bootloader pack. After one day of trying I was still unable to upload scetches to atmega burned with bootloader 8Mhz image to atmeg328 - 28 pin DIL from this: https://forum.mysensors.org/topic/3018/tutorial-how-to-burn-1mhz-8mhz-bootloader-using-arduino-ide-1-6-5-r5/1 tutorial.
                      With your 0_1463253058014_atmega328p.zip pack unzipped to "hardware" directory worked like a charm.

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        DavidZH
                        wrote on last edited by
                        #117

                        @GertSanders : Ive downloaded the files and boards.txt. I noticed you've made a distinction between the 28p DIP and the 32p TQFP. But in the boards.txt I can find no differences besides that the high fuse bits are global for the 28p version and individual (but all the same!) for the 32p version.
                        Does that have a reason?

                        GertSandersG 1 Reply Last reply
                        0
                        • D DavidZH

                          @GertSanders : Ive downloaded the files and boards.txt. I noticed you've made a distinction between the 28p DIP and the 32p TQFP. But in the boards.txt I can find no differences besides that the high fuse bits are global for the 28p version and individual (but all the same!) for the 32p version.
                          Does that have a reason?

                          GertSandersG Offline
                          GertSandersG Offline
                          GertSanders
                          Hardware Contributor
                          wrote on last edited by
                          #118

                          @DavidZH
                          No particular reason, I did not spend as much effort in defining the options for the 32-pin package as I did for the 28-pin package.
                          When my free time becomes mine again, I will be able to take this up again. For now I have to be content with a relatively short online presence every week.

                          D 1 Reply Last reply
                          0
                          • GertSandersG GertSanders

                            @DavidZH
                            No particular reason, I did not spend as much effort in defining the options for the 32-pin package as I did for the 28-pin package.
                            When my free time becomes mine again, I will be able to take this up again. For now I have to be content with a relatively short online presence every week.

                            D Offline
                            D Offline
                            DavidZH
                            wrote on last edited by
                            #119

                            @GertSanders
                            No worries! It just caught my eye and was wondering. I'll keep an eye on this as I'm finalising my node network and have to choose a bootloader about now.

                            1 Reply Last reply
                            0
                            • petewillP Offline
                              petewillP Offline
                              petewill
                              Admin
                              wrote on last edited by
                              #120

                              @GertSanders I am finally getting around to trying some of these bootloaders. Thanks for making them! Would you mind posting the latest .zip file to the openhardware site? I started with those files and was getting the same errors as others mentioned. As I got further down this thread I noticed I was missing some files. :)
                              Thanks again for making these!

                              My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                              1 Reply Last reply
                              0
                              • hekH Offline
                                hekH Offline
                                hek
                                Admin
                                wrote on last edited by
                                #121

                                @petewill,

                                The site will still unpack zips and extract the content. I could disable this, but it would make it harder to upload large projects.

                                Like @GertSanders propose, allowing (and not uppacking) rar-files might be a better solution.

                                hekH 1 Reply Last reply
                                0
                                • hekH hek

                                  @petewill,

                                  The site will still unpack zips and extract the content. I could disable this, but it would make it harder to upload large projects.

                                  Like @GertSanders propose, allowing (and not uppacking) rar-files might be a better solution.

                                  hekH Offline
                                  hekH Offline
                                  hek
                                  Admin
                                  wrote on last edited by
                                  #122

                                  Ok... rar and gz files is now allowed. They will be categorised as "design" files.

                                  1 Reply Last reply
                                  3
                                  • GertSandersG Offline
                                    GertSandersG Offline
                                    GertSanders
                                    Hardware Contributor
                                    wrote on last edited by
                                    #123

                                    I have added my atmega328 directory in a RAR file and uploaded it to the site.

                                    This compressed file contains a directory structure that contains all bootloaders I use, and the extra files needed to make most of those available from the Arduino IDE.

                                    To use it:
                                    Close the Arduino IDE
                                    Unpack the RAR file
                                    Open the IDE

                                    This compressed file needs to be unpacked inside the "hardware" directory which sits inside the Arduino Sketches directory. If you do not have a "hardware" directory inside the Arduino Sketches directory, then you need to make this first.
                                    Then go inside the "hardware" directory and there unpack the RAR file.

                                    My directory structure looks like this:

                                    [Arduino]
                                       [hardware]
                                          [atmega328p]
                                             [avr]
                                                [bootloaders]
                                                   [myoptiboot]
                                                      ... all the HEX files ...
                                                [variants]
                                                   [28PinBoard]
                                                      pins_arduino.h
                                                   [32PinBoard]
                                                      pins_arduino.h
                                                   [40PinBoard]
                                                      pins_arduino.h
                                                   [44PinBoard]
                                                      pins_arduino.h
                                                boards.txt
                                                platform.txt
                                    
                                    1 Reply Last reply
                                    3
                                    • S Offline
                                      S Offline
                                      Samuel235
                                      Hardware Contributor
                                      wrote on last edited by
                                      #124

                                      I'm finally managing to update my Arduino IDE and would like to ask how you have your boards.txt setup. Do you have your boards.txt file that is zipped up in your config zip file just located in the avr folder without running the default boards.txt file or are we supposed to merge your boards file with the original one? Back when i was developing my own boards, i seem to remember just running your board file without any of the default files....

                                      Is this correct or do we merge them?

                                      MySensors 2.1.1
                                      Controller - OpenHAB (Virtual Machine)
                                      Gateway - Arduino Mega MQTT Gateway W5100

                                      1 Reply Last reply
                                      0
                                      • petewillP Offline
                                        petewillP Offline
                                        petewill
                                        Admin
                                        wrote on last edited by
                                        #125

                                        @GertSanders Awesome, thank you for uploading it as a .rar!!! So easy now :)

                                        @Samuel235 You should be able to just copy the entire folder from the .rar file into your Arduino folder. I had to create a "Hardware" folder as it didn't exist. I'm on Windows 10 and it looks like this:
                                        0_1486996741780_upload-d2b37622-9cf3-4539-9cb1-6f9ab39f1cf3
                                        After closing/re-opening the Arduino IDE it looks like this:
                                        0_1486996924662_upload-3cf12bfa-0444-4cd7-8a19-537fdf63a738

                                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                        1 Reply Last reply
                                        0
                                        • GertSandersG Offline
                                          GertSandersG Offline
                                          GertSanders
                                          Hardware Contributor
                                          wrote on last edited by
                                          #126

                                          The boards .txt and platform.txt files are not complete yet, and I still need to check and change the pins_arduino.h boards for the 40 and 44 pin atmega's. That is still on my to do list, but the structure is there already. I'm still learning from other hardware deployments how to define this in a practical way. Hopefully by sharing this will be improved.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          12

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular