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. Development
  3. [Tutorial] How to burn 1Mhz & 8Mhz bootloader using Arduino IDE 1.6.5-r5

[Tutorial] How to burn 1Mhz & 8Mhz bootloader using Arduino IDE 1.6.5-r5

Scheduled Pinned Locked Moved Development
86 Posts 20 Posters 102.6k Views 28 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.
  • D drock1985

    Awesome @LastSamurai thanks.

    One other question: Is it possible to just use a standard USB to FTDI converter to flash the sketch? Ex: flash bootloader using an Uno, then install in a SlimNode and use the FTDI connector there to flash?

    L Offline
    L Offline
    LastSamurai
    Hardware Contributor
    wrote on last edited by
    #16

    @drock1985 Yes once it has a bootloader that should be possible (you need to use the right settings though ;) )

    D 1 Reply Last reply
    0
    • L LastSamurai

      @drock1985 Yes once it has a bootloader that should be possible (you need to use the right settings though ;) )

      D Offline
      D Offline
      drock1985
      wrote on last edited by
      #17

      @LastSamurai

      What settings would those be? Would they be things outside of the tutorial?

      Sorry to ask so many questions. Never flashed an Arduino before outside of connecting a USB cable to an Uno or Nano

      My Projects
      2 Door Chime Sensor
      Washing Machine Monitor

      L 1 Reply Last reply
      0
      • D drock1985

        @LastSamurai

        What settings would those be? Would they be things outside of the tutorial?

        Sorry to ask so many questions. Never flashed an Arduino before outside of connecting a USB cable to an Uno or Nano

        L Offline
        L Offline
        LastSamurai
        Hardware Contributor
        wrote on last edited by
        #18

        @drock1985 Mainly the baudrate but if you just burn the standard e.g. Arduino Uno bootloader and then use the IDE with the Uno settings everything should work fine. If you encounter errors you can still check your settings ;) They are in the boards.txt file of the IDE.

        Just try it though, it really isn't that hard ;)

        1 Reply Last reply
        0
        • siodS Offline
          siodS Offline
          siod
          wrote on last edited by
          #19

          very good work instruction, thank you !! :thumbsup:

          still learning...

          1 Reply Last reply
          1
          • rsachocR Offline
            rsachocR Offline
            rsachoc
            wrote on last edited by
            #20

            Hi there, and thanks for the tutorial. I'm trying this for the first time (the ATmega is going to be used in a slim temp node), and I'm receiving this message you mentioned:

            avrdude: Yikes! Invalid device signature.
            Double check connections and try again, or use -F to override
            

            You mention we should try the following:

            Maybe your chip is configured to run on an external crystal clock. I tested with two values and it succeeded. I used 10Mhz and 20Mhz as I didn't have 16 Mhz.
            Connect the crystal to pin 9 and 10
            Note: You won't need the crystal except for the first time as the new bootloader is configured to run on internal 1Mhz or 8Mhz.
            

            I don't quite follow what this means? Do I need a 10mhz, 16mhz or 20mhz crystal attached to the breadboard like you show in the video? If so, is that the only change I would need to make?

            FYI I'm using an Arduino clone (Buono uno r3, set at 5V)

            ahmedadelhosniA 1 Reply Last reply
            0
            • rsachocR rsachoc

              Hi there, and thanks for the tutorial. I'm trying this for the first time (the ATmega is going to be used in a slim temp node), and I'm receiving this message you mentioned:

              avrdude: Yikes! Invalid device signature.
              Double check connections and try again, or use -F to override
              

              You mention we should try the following:

              Maybe your chip is configured to run on an external crystal clock. I tested with two values and it succeeded. I used 10Mhz and 20Mhz as I didn't have 16 Mhz.
              Connect the crystal to pin 9 and 10
              Note: You won't need the crystal except for the first time as the new bootloader is configured to run on internal 1Mhz or 8Mhz.
              

              I don't quite follow what this means? Do I need a 10mhz, 16mhz or 20mhz crystal attached to the breadboard like you show in the video? If so, is that the only change I would need to make?

              FYI I'm using an Arduino clone (Buono uno r3, set at 5V)

              ahmedadelhosniA Offline
              ahmedadelhosniA Offline
              ahmedadelhosni
              wrote on last edited by
              #21

              @rsachoc Maybe I need to rephrase the sentence :)
              I meant that any crystal value will work. I didn't have 16Mhz, but I had the values 10Mhz and 20 Mhz. So I tested with 10 Mhz and I bypassed the error and didn't come again. I wanted to know further whether the crystal value is important or not. So I got another chip with preloaded arduino bootloader, and tested with 20Mhz. Also I succeeded. Thus I assume that you can use any value for this step .

              I am also using Uno clone and this is the only thing I did regarding this issue. I didn't even add capacitors to the crystal. Just put any value and test.

              rsachocR 1 Reply Last reply
              0
              • ahmedadelhosniA ahmedadelhosni

                @rsachoc Maybe I need to rephrase the sentence :)
                I meant that any crystal value will work. I didn't have 16Mhz, but I had the values 10Mhz and 20 Mhz. So I tested with 10 Mhz and I bypassed the error and didn't come again. I wanted to know further whether the crystal value is important or not. So I got another chip with preloaded arduino bootloader, and tested with 20Mhz. Also I succeeded. Thus I assume that you can use any value for this step .

                I am also using Uno clone and this is the only thing I did regarding this issue. I didn't even add capacitors to the crystal. Just put any value and test.

                rsachocR Offline
                rsachocR Offline
                rsachoc
                wrote on last edited by
                #22

                @ahmedadelhosni thanks! I'm going to grab a 10mhz and 16mhz to test later this evening. Just to confirm from what you've said, I don't need the capacitors? I know in the youtube vid there were capacitors used?

                ahmedadelhosniA 2 Replies Last reply
                0
                • rsachocR rsachoc

                  @ahmedadelhosni thanks! I'm going to grab a 10mhz and 16mhz to test later this evening. Just to confirm from what you've said, I don't need the capacitors? I know in the youtube vid there were capacitors used?

                  ahmedadelhosniA Offline
                  ahmedadelhosniA Offline
                  ahmedadelhosni
                  wrote on last edited by
                  #23

                  @rsachoc yes. I didn't also have caps and it worked :)

                  1 Reply Last reply
                  0
                  • rsachocR rsachoc

                    @ahmedadelhosni thanks! I'm going to grab a 10mhz and 16mhz to test later this evening. Just to confirm from what you've said, I don't need the capacitors? I know in the youtube vid there were capacitors used?

                    ahmedadelhosniA Offline
                    ahmedadelhosniA Offline
                    ahmedadelhosni
                    wrote on last edited by ahmedadelhosni
                    #24

                    @rsachoc ofcourse if you have 16Mhz and capacitors like the reference video, that would be great. but if you were in a hurry and lazy to buy some, so just do it like so.
                    Edit: 16* Mhz not 10 Mhz

                    rsachocR 1 Reply Last reply
                    0
                    • ahmedadelhosniA ahmedadelhosni

                      @rsachoc ofcourse if you have 16Mhz and capacitors like the reference video, that would be great. but if you were in a hurry and lazy to buy some, so just do it like so.
                      Edit: 16* Mhz not 10 Mhz

                      rsachocR Offline
                      rsachocR Offline
                      rsachoc
                      wrote on last edited by
                      #25

                      @ahmedadelhosni I have some capacitors, but no crystals, so I'm picking a 10mhz and 16mhz up later today. I'll try with just the capacitors first and see how I go.

                      Thanks!

                      ahmedadelhosniA 1 Reply Last reply
                      0
                      • rsachocR rsachoc

                        @ahmedadelhosni I have some capacitors, but no crystals, so I'm picking a 10mhz and 16mhz up later today. I'll try with just the capacitors first and see how I go.

                        Thanks!

                        ahmedadelhosniA Offline
                        ahmedadelhosniA Offline
                        ahmedadelhosni
                        wrote on last edited by
                        #26

                        @rsachoc edit: sorry I meant 16. Like the normal arduino board

                        1 Reply Last reply
                        0
                        • rsachocR Offline
                          rsachocR Offline
                          rsachoc
                          wrote on last edited by rsachoc
                          #27
                          C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/bin/avrdude -CC:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM5 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 
                          
                          avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
                                   Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                   Copyright (c) 2007-2009 Joerg Wunsch
                          
                                   System wide configuration file is "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf"
                          
                                   Using Port                    : COM5
                                   Using Programmer              : stk500v1
                                   Overriding Baud Rate          : 19200
                                   AVR Part                      : ATmega328P
                                   Chip Erase delay              : 9000 us
                                   PAGEL                         : PD7
                                   BS2                           : PC2
                                   RESET disposition             : dedicated
                                   RETRY pulse                   : SCK
                                   serial program mode           : yes
                                   parallel program mode         : yes
                                   Timeout                       : 200
                                   StabDelay                     : 100
                                   CmdexeDelay                   : 25
                                   SyncLoops                     : 32
                                   ByteDelay                     : 0
                                   PollIndex                     : 3
                                   PollValue                     : 0x53
                                   Memory Detail                 :
                          
                                                            Block Poll               Page                       Polled
                                     Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                                     ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                                     eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                     flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                     lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                     signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                          
                                   Programmer Type : STK500
                                   Description     : Atmel STK500 Version 1.x firmware
                                   Hardware Version: 2
                                   Firmware Version: 1.18
                                   Topcard         : Unknown
                                   Vtarget         : 0.0 V
                                   Varef           : 0.0 V
                                   Oscillator      : Off
                                   SCK period      : 0.1 us
                          
                          avrdude: AVR device initialized and ready to accept instructions
                          
                          Reading | ################################################## | 100% 0.02s
                          
                          avrdude: Device signature = 0x1e950f
                          avrdude: erasing chip
                          avrdude: reading input file "0x3F"
                          avrdude: writing lock (1 bytes):
                          
                          Writing | ################################################## | 100% 0.01s
                          
                          avrdude: 1 bytes of lock written
                          avrdude: verifying lock memory against 0x3F:
                          avrdude: load data lock data from input file 0x3F:
                          avrdude: input file 0x3F contains 1 bytes
                          avrdude: reading on-chip lock data:
                          
                          C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/bin/avrdude -CC:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM5 -b19200 -Uflash:w:C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m 
                          Reading | ################################################## | 100% 0.01s
                          
                          avrdude: verifying ...
                          avrdude: 1 bytes of lock verified
                          avrdude: reading input file "0x05"
                          avrdude: writing efuse (1 bytes):
                          
                          Writing | ################################################## | 100% 0.01s
                          
                          avrdude: 1 bytes of efuse written
                          avrdude: verifying efuse memory against 0x05:
                          avrdude: load data efuse data from input file 0x05:
                          avrdude: input file 0x05 contains 1 bytes
                          avrdude: reading on-chip efuse data:
                          
                          Reading | ################################################## | 100% 0.01s
                          
                          avrdude: verifying ...
                          avrdude: 1 bytes of efuse verified
                          avrdude: reading input file "0xDE"
                          avrdude: writing hfuse (1 bytes):
                          
                          Writing | ################################################## | 100% 0.01s
                          
                          avrdude: 1 bytes of hfuse written
                          avrdude: verifying hfuse memory against 0xDE:
                          avrdude: load data hfuse data from input file 0xDE:
                          avrdude: input file 0xDE contains 1 bytes
                          avrdude: reading on-chip hfuse data:
                          
                          Reading | ################################################## | 100% 0.01s
                          
                          avrdude: verifying ...
                          avrdude: 1 bytes of hfuse verified
                          avrdude: reading input file "0xFF"
                          avrdude: writing lfuse (1 bytes):
                          
                          Writing | ################################################## | 100% 0.01s
                          
                          avrdude: 1 bytes of lfuse written
                          avrdude: verifying lfuse memory against 0xFF:
                          avrdude: load data lfuse data from input file 0xFF:
                          avrdude: input file 0xFF contains 1 bytes
                          avrdude: reading on-chip lfuse data:
                          
                          Reading | ################################################## | 100% 0.01s
                          
                          avrdude: verifying ...
                          avrdude: 1 bytes of lfuse verified
                          
                          avrdude done.  Thank you.
                          
                          
                          avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
                                   Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                   Copyright (c) 2007-2009 Joerg Wunsch
                          
                                   System wide configuration file is "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf"
                          
                                   Using Port                    : COM5
                                   Using Programmer              : stk500v1
                                   Overriding Baud Rate          : 19200
                                   AVR Part                      : ATmega328P
                                   Chip Erase delay              : 9000 us
                                   PAGEL                         : PD7
                                   BS2                           : PC2
                                   RESET disposition             : dedicated
                                   RETRY pulse                   : SCK
                                   serial program mode           : yes
                                   parallel program mode         : yes
                                   Timeout                       : 200
                                   StabDelay                     : 100
                                   CmdexeDelay                   : 25
                                   SyncLoops                     : 32
                                   ByteDelay                     : 0
                                   PollIndex                     : 3
                                   PollValue                     : 0x53
                                   Memory Detail                 :
                          
                                                            Block Poll               Page                       Polled
                                     Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                                     ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                                     eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                     flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                     lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                     calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                     signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                          
                                   Programmer Type : STK500
                                   Description     : Atmel STK500 Version 1.x firmware
                                   Hardware Version: 2
                                   Firmware Version: 1.18
                                   Topcard         : Unknown
                                   Vtarget         : 0.0 V
                                   Varef           : 0.0 V
                                   Oscillator      : Off
                                   SCK period      : 0.1 us
                          
                          avrdude: AVR device initialized and ready to accept instructions
                          
                          Reading | ################################################## | 100% 0.02s
                          
                          avrdude: Device signature = 0x1e950f
                          avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
                                   To disable this feature, specify the -D option.
                          avrdude: erasing chip
                          avrdude: reading input file "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex"
                          avrdude: writing flash (32768 bytes):
                          
                          Writing | ################################################## | 100% 0.00s
                          
                          avrdude: 32768 bytes of flash written
                          avrdude: verifying flash memory against C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
                          avrdude: load data flash data from input file C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
                          avrdude: input file C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex contains 32768 bytes
                          avrdude: reading on-chip flash data:
                          
                          Reading | ################################################## | 100% -0.00s
                          
                          avrdude: verifying ...
                          avrdude: 32768 bytes of flash verified
                          avrdude: reading input file "0x0F"
                          avrdude: writing lock (1 bytes):
                          
                          Writing | ################################################## | 100% 0.02s
                          
                          avrdude: 1 bytes of lock written
                          avrdude: verifying lock memory against 0x0F:
                          avrdude: load data lock data from input file 0x0F:
                          avrdude: input file 0x0F contains 1 bytes
                          avrdude: reading on-chip lock data:
                          
                          Reading | ################################################## | 100% 0.01s
                          
                          avrdude: verifying ...
                          avrdude: 1 bytes of lock verified
                          
                          avrdude done.  Thank you.
                          

                          Did I burn the bootloader successfully? The video indicates it should take longer, this literally took less than a second?

                          ahmedadelhosniA 1 Reply Last reply
                          0
                          • rsachocR rsachoc
                            C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/bin/avrdude -CC:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM5 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 
                            
                            avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
                                     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                     Copyright (c) 2007-2009 Joerg Wunsch
                            
                                     System wide configuration file is "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf"
                            
                                     Using Port                    : COM5
                                     Using Programmer              : stk500v1
                                     Overriding Baud Rate          : 19200
                                     AVR Part                      : ATmega328P
                                     Chip Erase delay              : 9000 us
                                     PAGEL                         : PD7
                                     BS2                           : PC2
                                     RESET disposition             : dedicated
                                     RETRY pulse                   : SCK
                                     serial program mode           : yes
                                     parallel program mode         : yes
                                     Timeout                       : 200
                                     StabDelay                     : 100
                                     CmdexeDelay                   : 25
                                     SyncLoops                     : 32
                                     ByteDelay                     : 0
                                     PollIndex                     : 3
                                     PollValue                     : 0x53
                                     Memory Detail                 :
                            
                                                              Block Poll               Page                       Polled
                                       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                                       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                                       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                            
                                     Programmer Type : STK500
                                     Description     : Atmel STK500 Version 1.x firmware
                                     Hardware Version: 2
                                     Firmware Version: 1.18
                                     Topcard         : Unknown
                                     Vtarget         : 0.0 V
                                     Varef           : 0.0 V
                                     Oscillator      : Off
                                     SCK period      : 0.1 us
                            
                            avrdude: AVR device initialized and ready to accept instructions
                            
                            Reading | ################################################## | 100% 0.02s
                            
                            avrdude: Device signature = 0x1e950f
                            avrdude: erasing chip
                            avrdude: reading input file "0x3F"
                            avrdude: writing lock (1 bytes):
                            
                            Writing | ################################################## | 100% 0.01s
                            
                            avrdude: 1 bytes of lock written
                            avrdude: verifying lock memory against 0x3F:
                            avrdude: load data lock data from input file 0x3F:
                            avrdude: input file 0x3F contains 1 bytes
                            avrdude: reading on-chip lock data:
                            
                            C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/bin/avrdude -CC:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM5 -b19200 -Uflash:w:C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m 
                            Reading | ################################################## | 100% 0.01s
                            
                            avrdude: verifying ...
                            avrdude: 1 bytes of lock verified
                            avrdude: reading input file "0x05"
                            avrdude: writing efuse (1 bytes):
                            
                            Writing | ################################################## | 100% 0.01s
                            
                            avrdude: 1 bytes of efuse written
                            avrdude: verifying efuse memory against 0x05:
                            avrdude: load data efuse data from input file 0x05:
                            avrdude: input file 0x05 contains 1 bytes
                            avrdude: reading on-chip efuse data:
                            
                            Reading | ################################################## | 100% 0.01s
                            
                            avrdude: verifying ...
                            avrdude: 1 bytes of efuse verified
                            avrdude: reading input file "0xDE"
                            avrdude: writing hfuse (1 bytes):
                            
                            Writing | ################################################## | 100% 0.01s
                            
                            avrdude: 1 bytes of hfuse written
                            avrdude: verifying hfuse memory against 0xDE:
                            avrdude: load data hfuse data from input file 0xDE:
                            avrdude: input file 0xDE contains 1 bytes
                            avrdude: reading on-chip hfuse data:
                            
                            Reading | ################################################## | 100% 0.01s
                            
                            avrdude: verifying ...
                            avrdude: 1 bytes of hfuse verified
                            avrdude: reading input file "0xFF"
                            avrdude: writing lfuse (1 bytes):
                            
                            Writing | ################################################## | 100% 0.01s
                            
                            avrdude: 1 bytes of lfuse written
                            avrdude: verifying lfuse memory against 0xFF:
                            avrdude: load data lfuse data from input file 0xFF:
                            avrdude: input file 0xFF contains 1 bytes
                            avrdude: reading on-chip lfuse data:
                            
                            Reading | ################################################## | 100% 0.01s
                            
                            avrdude: verifying ...
                            avrdude: 1 bytes of lfuse verified
                            
                            avrdude done.  Thank you.
                            
                            
                            avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
                                     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                     Copyright (c) 2007-2009 Joerg Wunsch
                            
                                     System wide configuration file is "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\tools\avr/etc/avrdude.conf"
                            
                                     Using Port                    : COM5
                                     Using Programmer              : stk500v1
                                     Overriding Baud Rate          : 19200
                                     AVR Part                      : ATmega328P
                                     Chip Erase delay              : 9000 us
                                     PAGEL                         : PD7
                                     BS2                           : PC2
                                     RESET disposition             : dedicated
                                     RETRY pulse                   : SCK
                                     serial program mode           : yes
                                     parallel program mode         : yes
                                     Timeout                       : 200
                                     StabDelay                     : 100
                                     CmdexeDelay                   : 25
                                     SyncLoops                     : 32
                                     ByteDelay                     : 0
                                     PollIndex                     : 3
                                     PollValue                     : 0x53
                                     Memory Detail                 :
                            
                                                              Block Poll               Page                       Polled
                                       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                                       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                                       eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                                       flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                                       lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                                       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                            
                                     Programmer Type : STK500
                                     Description     : Atmel STK500 Version 1.x firmware
                                     Hardware Version: 2
                                     Firmware Version: 1.18
                                     Topcard         : Unknown
                                     Vtarget         : 0.0 V
                                     Varef           : 0.0 V
                                     Oscillator      : Off
                                     SCK period      : 0.1 us
                            
                            avrdude: AVR device initialized and ready to accept instructions
                            
                            Reading | ################################################## | 100% 0.02s
                            
                            avrdude: Device signature = 0x1e950f
                            avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
                                     To disable this feature, specify the -D option.
                            avrdude: erasing chip
                            avrdude: reading input file "C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex"
                            avrdude: writing flash (32768 bytes):
                            
                            Writing | ################################################## | 100% 0.00s
                            
                            avrdude: 32768 bytes of flash written
                            avrdude: verifying flash memory against C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
                            avrdude: load data flash data from input file C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex:
                            avrdude: input file C:\Users\James\Desktop\RPi Openhab\arduino-1.6.7-windows\hardware\arduino\avr/bootloaders/optiboot/optiboot_atmega328.hex contains 32768 bytes
                            avrdude: reading on-chip flash data:
                            
                            Reading | ################################################## | 100% -0.00s
                            
                            avrdude: verifying ...
                            avrdude: 32768 bytes of flash verified
                            avrdude: reading input file "0x0F"
                            avrdude: writing lock (1 bytes):
                            
                            Writing | ################################################## | 100% 0.02s
                            
                            avrdude: 1 bytes of lock written
                            avrdude: verifying lock memory against 0x0F:
                            avrdude: load data lock data from input file 0x0F:
                            avrdude: input file 0x0F contains 1 bytes
                            avrdude: reading on-chip lock data:
                            
                            Reading | ################################################## | 100% 0.01s
                            
                            avrdude: verifying ...
                            avrdude: 1 bytes of lock verified
                            
                            avrdude done.  Thank you.
                            

                            Did I burn the bootloader successfully? The video indicates it should take longer, this literally took less than a second?

                            ahmedadelhosniA Offline
                            ahmedadelhosniA Offline
                            ahmedadelhosni
                            wrote on last edited by
                            #28

                            @rsachoc I haven't burned a bootloader since I have did this topic, but I do remember that it took like 2 seconds. It was really fast.
                            You can try flashing the code to verify that it works well.

                            rsachocR 1 Reply Last reply
                            0
                            • ahmedadelhosniA ahmedadelhosni

                              @rsachoc I haven't burned a bootloader since I have did this topic, but I do remember that it took like 2 seconds. It was really fast.
                              You can try flashing the code to verify that it works well.

                              rsachocR Offline
                              rsachocR Offline
                              rsachoc
                              wrote on last edited by
                              #29

                              @ahmedadelhosni good idea, I hadn't thought of that. I'm going to have to build a slim temp node first, as my current chip is soldered to the board with no bootloader.

                              1 Reply Last reply
                              0
                              • L Offline
                                L Offline
                                LastSamurai
                                Hardware Contributor
                                wrote on last edited by
                                #30

                                Hey guys, I have been building my own sensor nodes that should consume as little power as needed, so I burned a 1MHz bootloader with lower BOD settings which I found in the "slime 2AA battery node" thread (I guess this here is the same one).

                                I had some problem with the node afterwards, which I fixed by setting the baudrate of the mysensors library to 9600. It seems like that is needed (too), beside settings the upload speeds. Can you guys confirm that? If so I would suggest adding that to the (great) manual!

                                rsachocR ahmedadelhosniA 2 Replies Last reply
                                0
                                • L LastSamurai

                                  Hey guys, I have been building my own sensor nodes that should consume as little power as needed, so I burned a 1MHz bootloader with lower BOD settings which I found in the "slime 2AA battery node" thread (I guess this here is the same one).

                                  I had some problem with the node afterwards, which I fixed by setting the baudrate of the mysensors library to 9600. It seems like that is needed (too), beside settings the upload speeds. Can you guys confirm that? If so I would suggest adding that to the (great) manual!

                                  rsachocR Offline
                                  rsachocR Offline
                                  rsachoc
                                  wrote on last edited by rsachoc
                                  #31

                                  @LastSamurai I've been advised that setting the baud rate in myconfig.h is the correct way to get things working when uploading sketches to the slim node. Don't think it matters when burining the bootloader though.

                                  1 Reply Last reply
                                  0
                                  • L LastSamurai

                                    Hey guys, I have been building my own sensor nodes that should consume as little power as needed, so I burned a 1MHz bootloader with lower BOD settings which I found in the "slime 2AA battery node" thread (I guess this here is the same one).

                                    I had some problem with the node afterwards, which I fixed by setting the baudrate of the mysensors library to 9600. It seems like that is needed (too), beside settings the upload speeds. Can you guys confirm that? If so I would suggest adding that to the (great) manual!

                                    ahmedadelhosniA Offline
                                    ahmedadelhosniA Offline
                                    ahmedadelhosni
                                    wrote on last edited by
                                    #32

                                    @LastSamurai I have faced this problem a couple of times but I don't remember how do I solve it. I just keep trying different solution. But I have to say thay I am using development branch and I don't redefine the baud rate if I don't wan't the serial debug.

                                    1 Reply Last reply
                                    0
                                    • siodS Offline
                                      siodS Offline
                                      siod
                                      wrote on last edited by siod
                                      #33

                                      thx for the tutorial. I perfomred every step you described, but I get errors when trying to upload a sketch:

                                      And I also get this error message:

                                      I tried to upload the 1MHz version

                                      edit:

                                      some more info form verbose mode output:

                                      edit2:

                                      Another problem: I could burn the bootloader on to one of my ATMega328 MCU´s but I needed to use a 16MHz Crystal when uploading for the first time. Now I can just burn and burn the bootloader again. Here ist the output:

                                      But it is the only MCU that works, all the other give the "Yikes" error, also when 16MHz Crystal is connected:

                                      Any explanation?

                                      - bootloader burning problem solved by rebuilding the wiring.

                                      - for some reason I could upload the sketch now, don´t ask me why. In the end I just reuploaded again and again...I hope I will be able to upload sketches to the next MCU´s as well

                                      Sorry for asking so many questions, but after spending hours and hours of setting up a raspberry pi with openhab, MQTT Broker and MQTT Gateway I am so close to finishing my first standalone sensor and it´s not going any further, I could cry :cry:

                                      still learning...

                                      1 Reply Last reply
                                      1
                                      • D Offline
                                        D Offline
                                        drock1985
                                        wrote on last edited by
                                        #34

                                        Hi,

                                        Maybe someone in here can help me. I can't seem to compile any sketches on my Arduino IDE and keep getting errors spit at me. I can burn the bootloader with no problem but not any sketches. Any advice/ideas please? I'm running out of things to try. :(

                                        
                                        
                                        C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\derri\AppData\Local\Arduino15\packages" -hardware "F:\Users.New\Derrick\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\derri\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "F:\Users.New\Derrick\Documents\Arduino\libraries" -fqbn=MySensors:avr:apm96 -ide-version=10608 -build-path "C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\derri\AppData\Local\Temp\untitled808982838.tmp\sketch_apr18a\sketch_apr18a.ino"
                                        C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\derri\AppData\Local\Arduino15\packages" -hardware "F:\Users.New\Derrick\Documents\Arduino\hardware" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\derri\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "F:\Users.New\Derrick\Documents\Arduino\libraries" -fqbn=MySensors:avr:apm96 -ide-version=10608 -build-path "C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\derri\AppData\Local\Temp\untitled808982838.tmp\sketch_apr18a\sketch_apr18a.ino"
                                        Board MySensors:avr:apm96 doesn't define a 'build.board' preference. Auto-set to: AVR_APM96
                                        WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
                                        Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
                                        "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++"  -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -DF_CPU=1000000L -DARDUINO=10608 -DARDUINO_AVR_APM96 -DARDUINO_ARCH_AVR         "-IF:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr\cores\arduino" "-IF:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr\variants\standard" "C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp\sketch\sketch_apr18a.ino.cpp" -o "nul"
                                        "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++"  -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -DF_CPU=1000000L -DARDUINO=10608 -DARDUINO_AVR_APM96 -DARDUINO_ARCH_AVR         "-IF:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr\cores\arduino" "-IF:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr\variants\standard" "C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp\sketch\sketch_apr18a.ino.cpp" -o "C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
                                        C:\Users\derri\AppData\Local\Temp\build782cd686753c1d06c6f3cef0b1b5a173.tmp\sketch\sketch_apr18a.ino.cpp:1:21: fatal error: Arduino.h: No such file or directory
                                        
                                         #include <Arduino.h>
                                        
                                                             ^
                                        
                                        compilation terminated.
                                        
                                        exit status 1
                                        Error compiling for board APM Optiboot internal 1MHz noBOD 9600baud.
                                        

                                        My Projects
                                        2 Door Chime Sensor
                                        Washing Machine Monitor

                                        1 Reply Last reply
                                        0
                                        • sundberg84S Offline
                                          sundberg84S Offline
                                          sundberg84
                                          Hardware Contributor
                                          wrote on last edited by
                                          #35

                                          @drock1985 - please dont crosspost, see forum guidelines.

                                          Controller: Proxmox VM - Home Assistant
                                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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


                                          18

                                          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