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.
  • 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
                          • J Offline
                            J Offline
                            jacikaas
                            wrote on last edited by
                            #36

                            Hello,

                            Could someone help me and give info what I'm doing wrong or have an idea whats happening.

                            I use this tutorial and burn 1Mhz on Atmega328. After that I'm trying to upload sketch with FTDI and test Atmega in two ways:

                            1. When I connect power supply 2xAA batteries (new ones)
                            2. When I connect power supply 5V from FTDI.

                            When I trying to upload sketch with 2xAA batteries, Atmega comes unresponsive and I get:

                            avrdude: stk500_recv(): programmer is not responding
                            avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe3
                            

                            When I trying to upload sketch with 5V from FTDI - everything ok, example works (blink or ASCII table example).
                            When sketch is uploaded with 5V and then I try to connect 2xAA bateries - its not working again. When I open serial monitor from arduino IDE I see blank window or few times there was strange character.

                            I checked few times boards.txt file with fuse setting, and there is set "apm96.bootloader.extended_fuses=0x07" wich means BOD disabled. So it seems should be like that.

                            I was trying to do all steps with different Atmega328 and also trying same steps when I burn 8Mhz bootloader. Got same result.

                            Please give me some shots what I could test else here, becose I'm out of ideas. I'm trying to run My Slim 2AA Battery Node.

                            Thank You! Any help would be very useful.

                            GertSandersG 1 Reply Last reply
                            0
                            • J jacikaas

                              Hello,

                              Could someone help me and give info what I'm doing wrong or have an idea whats happening.

                              I use this tutorial and burn 1Mhz on Atmega328. After that I'm trying to upload sketch with FTDI and test Atmega in two ways:

                              1. When I connect power supply 2xAA batteries (new ones)
                              2. When I connect power supply 5V from FTDI.

                              When I trying to upload sketch with 2xAA batteries, Atmega comes unresponsive and I get:

                              avrdude: stk500_recv(): programmer is not responding
                              avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe3
                              

                              When I trying to upload sketch with 5V from FTDI - everything ok, example works (blink or ASCII table example).
                              When sketch is uploaded with 5V and then I try to connect 2xAA bateries - its not working again. When I open serial monitor from arduino IDE I see blank window or few times there was strange character.

                              I checked few times boards.txt file with fuse setting, and there is set "apm96.bootloader.extended_fuses=0x07" wich means BOD disabled. So it seems should be like that.

                              I was trying to do all steps with different Atmega328 and also trying same steps when I burn 8Mhz bootloader. Got same result.

                              Please give me some shots what I could test else here, becose I'm out of ideas. I'm trying to run My Slim 2AA Battery Node.

                              Thank You! Any help would be very useful.

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

                              @jacikaas

                              From the symptoms you describe, it seems the BOD is still set at the original 4.3V.

                              There is an Arduino sketch which allows an Arduino do check which fuses are set on another processor:

                              http://www.gammon.com.au/forum/?id=11633

                              This will allow you to be certain that the fuse settings on the slim node are correct.

                              The boards.txt file is just a settings file, so better to check the fuse settings on the processor itself.

                              J 1 Reply Last reply
                              0
                              • GertSandersG GertSanders

                                @jacikaas

                                From the symptoms you describe, it seems the BOD is still set at the original 4.3V.

                                There is an Arduino sketch which allows an Arduino do check which fuses are set on another processor:

                                http://www.gammon.com.au/forum/?id=11633

                                This will allow you to be certain that the fuse settings on the slim node are correct.

                                The boards.txt file is just a settings file, so better to check the fuse settings on the processor itself.

                                J Offline
                                J Offline
                                jacikaas
                                wrote on last edited by
                                #38

                                @GertSanders

                                Thank You for reply! I got the results:

                                Atmega chip detector.
                                Written by Nick Gammon.
                                Version 1.18
                                Compiled on May  9 2016 at 11:25:03 with Arduino IDE 10605.
                                Attempting to enter ICSP programming mode ...
                                Entered programming mode OK.
                                Signature = 0x1E 0x95 0x0F 
                                Processor = ATmega328P
                                Flash memory size = 32768 bytes.
                                LFuse = 0x62 
                                HFuse = 0xDE 
                                EFuse = 0xFF 
                                Lock byte = 0xEF 
                                Clock calibration = 0xA0 
                                Bootloader in use: Yes
                                EEPROM preserved through erase: No
                                Watchdog timer always on: No
                                Bootloader is 512 bytes starting at 7E00
                                
                                Bootloader:
                                
                                7E00: 0x11 0x24 0x84 0xB7 0x14 0xBE 0x81 0xFF 0xE6 0xD0 0x85 0xE0 0x80 0x93 0x81 0x00 
                                7E10: 0x82 0xE0 0x80 0x93 0xC0 0x00 0x88 0xE1 0x80 0x93 0xC1 0x00 0x86 0xE0 0x80 0x93 
                                7E20: 0xC2 0x00 0x8C 0xE0 0x80 0x93 0xC4 0x00 0x8E 0xE0 0xBF 0xD0 0x25 0x9A 0x86 0xE0 
                                7E30: 0x23 0xEC 0x3F 0xEF 0x91 0xE0 0x30 0x93 0x85 0x00 0x20 0x93 0x84 0x00 0x96 0xBB 
                                7E40: 0xB0 0x9B 0xFE 0xCF 0x1D 0x9A 0xA8 0x95 0x81 0x50 0xA9 0xF7 0xEE 0x24 0xFF 0x24 
                                7E50: 0xAA 0x24 0xA3 0x94 0xB5 0xE0 0xCB 0x2E 0xA1 0xE1 0xBA 0x2E 0xF3 0xE0 0xDF 0x2E 
                                7E60: 0x98 0xD0 0x81 0x34 0x61 0xF4 0x95 0xD0 0x08 0x2F 0xA5 0xD0 0x02 0x38 0x29 0xF1 
                                7E70: 0x01 0x38 0x11 0xF4 0x85 0xE0 0x01 0xC0 0x83 0xE0 0x83 0xD0 0x7F 0xC0 0x82 0x34 
                                7E80: 0x11 0xF4 0x84 0xE1 0x03 0xC0 0x85 0x34 0x19 0xF4 0x85 0xE0 0x9C 0xD0 0x76 0xC0 
                                7E90: 0x85 0x35 0x79 0xF4 0x7E 0xD0 0xE8 0x2E 0xFF 0x24 0x7B 0xD0 0x08 0x2F 0x10 0xE0 
                                7EA0: 0x10 0x2F 0x00 0x27 0x0E 0x29 0x1F 0x29 0x00 0x0F 0x11 0x1F 0x84 0xD0 0x78 0x01 
                                7EB0: 0x65 0xC0 0x86 0x35 0x21 0xF4 0x84 0xE0 0x86 0xD0 0x80 0xE0 0xDE 0xCF 0x84 0x36 
                                7EC0: 0x09 0xF0 0x40 0xC0 0x66 0xD0 0x65 0xD0 0x08 0x2F 0x63 0xD0 0x80 0xE0 0xE8 0x16 
                                7ED0: 0x80 0xE7 0xF8 0x06 0x18 0xF4 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0xC0 0xE0 0xD1 0xE0 
                                7EE0: 0x58 0xD0 0x89 0x93 0x0C 0x17 0xE1 0xF7 0xF0 0xE0 0xEF 0x16 0xF0 0xE7 0xFF 0x06 
                                7EF0: 0x18 0xF0 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0x5E 0xD0 0x07 0xB6 0x00 0xFC 0xFD 0xCF 
                                7F00: 0xA7 0x01 0xA0 0xE0 0xB1 0xE0 0x2C 0x91 0x30 0xE0 0x11 0x96 0x8C 0x91 0x11 0x97 
                                7F10: 0x90 0xE0 0x98 0x2F 0x88 0x27 0x82 0x2B 0x93 0x2B 0x12 0x96 0xFA 0x01 0x0C 0x01 
                                7F20: 0xA7 0xBE 0xE8 0x95 0x11 0x24 0x4E 0x5F 0x5F 0x4F 0xF1 0xE0 0xA0 0x38 0xBF 0x07 
                                7F30: 0x51 0xF7 0xF7 0x01 0xC7 0xBE 0xE8 0x95 0x07 0xB6 0x00 0xFC 0xFD 0xCF 0xB7 0xBE 
                                7F40: 0xE8 0x95 0x1C 0xC0 0x84 0x37 0x61 0xF4 0x24 0xD0 0x23 0xD0 0x08 0x2F 0x21 0xD0 
                                7F50: 0x32 0xD0 0xF7 0x01 0x85 0x91 0x7F 0x01 0x14 0xD0 0x01 0x50 0xD1 0xF7 0x0E 0xC0 
                                7F60: 0x85 0x37 0x39 0xF4 0x28 0xD0 0x8E 0xE1 0x0C 0xD0 0x85 0xE9 0x0A 0xD0 0x8F 0xE0 
                                7F70: 0x84 0xCF 0x81 0x35 0x11 0xF4 0x88 0xE0 0x18 0xD0 0x1D 0xD0 0x80 0xE1 0x01 0xD0 
                                7F80: 0x6F 0xCF 0x98 0x2F 0x80 0x91 0xC0 0x00 0x85 0xFF 0xFC 0xCF 0x90 0x93 0xC6 0x00 
                                7F90: 0x08 0x95 0x80 0x91 0xC0 0x00 0x87 0xFF 0xFC 0xCF 0x80 0x91 0xC0 0x00 0x84 0xFD 
                                7FA0: 0x01 0xC0 0xA8 0x95 0x80 0x91 0xC6 0x00 0x08 0x95 0xE0 0xE6 0xF0 0xE0 0x98 0xE1 
                                7FB0: 0x90 0x83 0x80 0x83 0x08 0x95 0xED 0xDF 0x80 0x32 0x19 0xF0 0x88 0xE0 0xF5 0xDF 
                                7FC0: 0xFF 0xCF 0x84 0xE1 0xDE 0xCF 0x1F 0x93 0x18 0x2F 0xE3 0xDF 0x11 0x50 0xE9 0xF7 
                                7FD0: 0xF2 0xDF 0x1F 0x91 0x08 0x95 0x28 0x2E 0x80 0xE0 0xE7 0xDF 0xEE 0x27 0xFF 0x27 
                                7FE0: 0x09 0x94 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 
                                7FF0: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x05 
                                
                                MD5 sum of bootloader = 0xFD 0x26 0x6D 0xCC 0x38 0xDB 0xDF 0xB3 0x19 0xC2 0x21 0x79 0xBD 0x24 0x58 0x72 
                                Bootloader MD5 sum not known.
                                
                                First 256 bytes of program memory:
                                
                                0: 0x0C 0x94 0x5C 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                10: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                20: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                30: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                40: 0x0C 0x94 0x88 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                50: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                60: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x00 0x00 0x00 0x08 0x00 0x02 0x01 0x00 
                                70: 0x00 0x03 0x04 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x04 0x08 
                                80: 0x10 0x20 0x40 0x80 0x01 0x02 0x04 0x08 0x10 0x20 0x01 0x02 0x04 0x08 0x10 0x20 
                                90: 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x02 0x02 0x02 0x02 0x02 0x02 0x03 0x03 
                                A0: 0x03 0x03 0x03 0x03 0x00 0x00 0x00 0x00 0x25 0x00 0x28 0x00 0x2B 0x00 0x00 0x00 
                                B0: 0x00 0x00 0x24 0x00 0x27 0x00 0x2A 0x00 0x11 0x24 0x1F 0xBE 0xCF 0xEF 0xD8 0xE0 
                                C0: 0xDE 0xBF 0xCD 0xBF 0x21 0xE0 0xA0 0xE0 0xB1 0xE0 0x01 0xC0 0x1D 0x92 0xA9 0x30 
                                D0: 0xB2 0x07 0xE1 0xF7 0x0E 0x94 0xEE 0x01 0x0C 0x94 0xFE 0x01 0x0C 0x94 0x00 0x00 
                                E0: 0x61 0xE0 0x8D 0xE0 0x0C 0x94 0x7E 0x01 0x61 0xE0 0x8D 0xE0 0x0E 0x94 0xB7 0x01 
                                F0: 0x68 0xEE 0x73 0xE0 0x80 0xE0 0x90 0xE0 0x0E 0x94 0xF5 0x00 0x60 0xE0 0x8D 0xE0 
                                
                                Programming mode off.
                                

                                How I understand:
                                LFuse = 0x62 this one ok
                                HFuse = 0xDE this one ok too
                                EFuse = 0xFF this one is not ok and thats why I get struggling, how I understand it should be 0x07
                                Lock byte = 0xEF this one not ok too, am I right?
                                Clock calibration = 0xA0 don't know is this one ok or not

                                So what I should do differently for programming theese fuses?

                                GertSandersG 4 Replies Last reply
                                0
                                • J jacikaas

                                  @GertSanders

                                  Thank You for reply! I got the results:

                                  Atmega chip detector.
                                  Written by Nick Gammon.
                                  Version 1.18
                                  Compiled on May  9 2016 at 11:25:03 with Arduino IDE 10605.
                                  Attempting to enter ICSP programming mode ...
                                  Entered programming mode OK.
                                  Signature = 0x1E 0x95 0x0F 
                                  Processor = ATmega328P
                                  Flash memory size = 32768 bytes.
                                  LFuse = 0x62 
                                  HFuse = 0xDE 
                                  EFuse = 0xFF 
                                  Lock byte = 0xEF 
                                  Clock calibration = 0xA0 
                                  Bootloader in use: Yes
                                  EEPROM preserved through erase: No
                                  Watchdog timer always on: No
                                  Bootloader is 512 bytes starting at 7E00
                                  
                                  Bootloader:
                                  
                                  7E00: 0x11 0x24 0x84 0xB7 0x14 0xBE 0x81 0xFF 0xE6 0xD0 0x85 0xE0 0x80 0x93 0x81 0x00 
                                  7E10: 0x82 0xE0 0x80 0x93 0xC0 0x00 0x88 0xE1 0x80 0x93 0xC1 0x00 0x86 0xE0 0x80 0x93 
                                  7E20: 0xC2 0x00 0x8C 0xE0 0x80 0x93 0xC4 0x00 0x8E 0xE0 0xBF 0xD0 0x25 0x9A 0x86 0xE0 
                                  7E30: 0x23 0xEC 0x3F 0xEF 0x91 0xE0 0x30 0x93 0x85 0x00 0x20 0x93 0x84 0x00 0x96 0xBB 
                                  7E40: 0xB0 0x9B 0xFE 0xCF 0x1D 0x9A 0xA8 0x95 0x81 0x50 0xA9 0xF7 0xEE 0x24 0xFF 0x24 
                                  7E50: 0xAA 0x24 0xA3 0x94 0xB5 0xE0 0xCB 0x2E 0xA1 0xE1 0xBA 0x2E 0xF3 0xE0 0xDF 0x2E 
                                  7E60: 0x98 0xD0 0x81 0x34 0x61 0xF4 0x95 0xD0 0x08 0x2F 0xA5 0xD0 0x02 0x38 0x29 0xF1 
                                  7E70: 0x01 0x38 0x11 0xF4 0x85 0xE0 0x01 0xC0 0x83 0xE0 0x83 0xD0 0x7F 0xC0 0x82 0x34 
                                  7E80: 0x11 0xF4 0x84 0xE1 0x03 0xC0 0x85 0x34 0x19 0xF4 0x85 0xE0 0x9C 0xD0 0x76 0xC0 
                                  7E90: 0x85 0x35 0x79 0xF4 0x7E 0xD0 0xE8 0x2E 0xFF 0x24 0x7B 0xD0 0x08 0x2F 0x10 0xE0 
                                  7EA0: 0x10 0x2F 0x00 0x27 0x0E 0x29 0x1F 0x29 0x00 0x0F 0x11 0x1F 0x84 0xD0 0x78 0x01 
                                  7EB0: 0x65 0xC0 0x86 0x35 0x21 0xF4 0x84 0xE0 0x86 0xD0 0x80 0xE0 0xDE 0xCF 0x84 0x36 
                                  7EC0: 0x09 0xF0 0x40 0xC0 0x66 0xD0 0x65 0xD0 0x08 0x2F 0x63 0xD0 0x80 0xE0 0xE8 0x16 
                                  7ED0: 0x80 0xE7 0xF8 0x06 0x18 0xF4 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0xC0 0xE0 0xD1 0xE0 
                                  7EE0: 0x58 0xD0 0x89 0x93 0x0C 0x17 0xE1 0xF7 0xF0 0xE0 0xEF 0x16 0xF0 0xE7 0xFF 0x06 
                                  7EF0: 0x18 0xF0 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0x5E 0xD0 0x07 0xB6 0x00 0xFC 0xFD 0xCF 
                                  7F00: 0xA7 0x01 0xA0 0xE0 0xB1 0xE0 0x2C 0x91 0x30 0xE0 0x11 0x96 0x8C 0x91 0x11 0x97 
                                  7F10: 0x90 0xE0 0x98 0x2F 0x88 0x27 0x82 0x2B 0x93 0x2B 0x12 0x96 0xFA 0x01 0x0C 0x01 
                                  7F20: 0xA7 0xBE 0xE8 0x95 0x11 0x24 0x4E 0x5F 0x5F 0x4F 0xF1 0xE0 0xA0 0x38 0xBF 0x07 
                                  7F30: 0x51 0xF7 0xF7 0x01 0xC7 0xBE 0xE8 0x95 0x07 0xB6 0x00 0xFC 0xFD 0xCF 0xB7 0xBE 
                                  7F40: 0xE8 0x95 0x1C 0xC0 0x84 0x37 0x61 0xF4 0x24 0xD0 0x23 0xD0 0x08 0x2F 0x21 0xD0 
                                  7F50: 0x32 0xD0 0xF7 0x01 0x85 0x91 0x7F 0x01 0x14 0xD0 0x01 0x50 0xD1 0xF7 0x0E 0xC0 
                                  7F60: 0x85 0x37 0x39 0xF4 0x28 0xD0 0x8E 0xE1 0x0C 0xD0 0x85 0xE9 0x0A 0xD0 0x8F 0xE0 
                                  7F70: 0x84 0xCF 0x81 0x35 0x11 0xF4 0x88 0xE0 0x18 0xD0 0x1D 0xD0 0x80 0xE1 0x01 0xD0 
                                  7F80: 0x6F 0xCF 0x98 0x2F 0x80 0x91 0xC0 0x00 0x85 0xFF 0xFC 0xCF 0x90 0x93 0xC6 0x00 
                                  7F90: 0x08 0x95 0x80 0x91 0xC0 0x00 0x87 0xFF 0xFC 0xCF 0x80 0x91 0xC0 0x00 0x84 0xFD 
                                  7FA0: 0x01 0xC0 0xA8 0x95 0x80 0x91 0xC6 0x00 0x08 0x95 0xE0 0xE6 0xF0 0xE0 0x98 0xE1 
                                  7FB0: 0x90 0x83 0x80 0x83 0x08 0x95 0xED 0xDF 0x80 0x32 0x19 0xF0 0x88 0xE0 0xF5 0xDF 
                                  7FC0: 0xFF 0xCF 0x84 0xE1 0xDE 0xCF 0x1F 0x93 0x18 0x2F 0xE3 0xDF 0x11 0x50 0xE9 0xF7 
                                  7FD0: 0xF2 0xDF 0x1F 0x91 0x08 0x95 0x28 0x2E 0x80 0xE0 0xE7 0xDF 0xEE 0x27 0xFF 0x27 
                                  7FE0: 0x09 0x94 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 
                                  7FF0: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x05 
                                  
                                  MD5 sum of bootloader = 0xFD 0x26 0x6D 0xCC 0x38 0xDB 0xDF 0xB3 0x19 0xC2 0x21 0x79 0xBD 0x24 0x58 0x72 
                                  Bootloader MD5 sum not known.
                                  
                                  First 256 bytes of program memory:
                                  
                                  0: 0x0C 0x94 0x5C 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  10: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  20: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  30: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  40: 0x0C 0x94 0x88 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  50: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                  60: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x00 0x00 0x00 0x08 0x00 0x02 0x01 0x00 
                                  70: 0x00 0x03 0x04 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x04 0x08 
                                  80: 0x10 0x20 0x40 0x80 0x01 0x02 0x04 0x08 0x10 0x20 0x01 0x02 0x04 0x08 0x10 0x20 
                                  90: 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x02 0x02 0x02 0x02 0x02 0x02 0x03 0x03 
                                  A0: 0x03 0x03 0x03 0x03 0x00 0x00 0x00 0x00 0x25 0x00 0x28 0x00 0x2B 0x00 0x00 0x00 
                                  B0: 0x00 0x00 0x24 0x00 0x27 0x00 0x2A 0x00 0x11 0x24 0x1F 0xBE 0xCF 0xEF 0xD8 0xE0 
                                  C0: 0xDE 0xBF 0xCD 0xBF 0x21 0xE0 0xA0 0xE0 0xB1 0xE0 0x01 0xC0 0x1D 0x92 0xA9 0x30 
                                  D0: 0xB2 0x07 0xE1 0xF7 0x0E 0x94 0xEE 0x01 0x0C 0x94 0xFE 0x01 0x0C 0x94 0x00 0x00 
                                  E0: 0x61 0xE0 0x8D 0xE0 0x0C 0x94 0x7E 0x01 0x61 0xE0 0x8D 0xE0 0x0E 0x94 0xB7 0x01 
                                  F0: 0x68 0xEE 0x73 0xE0 0x80 0xE0 0x90 0xE0 0x0E 0x94 0xF5 0x00 0x60 0xE0 0x8D 0xE0 
                                  
                                  Programming mode off.
                                  

                                  How I understand:
                                  LFuse = 0x62 this one ok
                                  HFuse = 0xDE this one ok too
                                  EFuse = 0xFF this one is not ok and thats why I get struggling, how I understand it should be 0x07
                                  Lock byte = 0xEF this one not ok too, am I right?
                                  Clock calibration = 0xA0 don't know is this one ok or not

                                  So what I should do differently for programming theese fuses?

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

                                  @jacikaas

                                  Actually the fuse setting for EFuse is correct. In the boards.txt file only the least significant 7 bits are set (0x07), instead of all the bits (as in the result of Nic Gammon's sketch or the AVR Fuse Calculator).

                                  So 0xFF is correct.

                                  What else can be wrong ?

                                  Bad connection of the battery ?

                                  1 Reply Last reply
                                  0
                                  • J jacikaas

                                    @GertSanders

                                    Thank You for reply! I got the results:

                                    Atmega chip detector.
                                    Written by Nick Gammon.
                                    Version 1.18
                                    Compiled on May  9 2016 at 11:25:03 with Arduino IDE 10605.
                                    Attempting to enter ICSP programming mode ...
                                    Entered programming mode OK.
                                    Signature = 0x1E 0x95 0x0F 
                                    Processor = ATmega328P
                                    Flash memory size = 32768 bytes.
                                    LFuse = 0x62 
                                    HFuse = 0xDE 
                                    EFuse = 0xFF 
                                    Lock byte = 0xEF 
                                    Clock calibration = 0xA0 
                                    Bootloader in use: Yes
                                    EEPROM preserved through erase: No
                                    Watchdog timer always on: No
                                    Bootloader is 512 bytes starting at 7E00
                                    
                                    Bootloader:
                                    
                                    7E00: 0x11 0x24 0x84 0xB7 0x14 0xBE 0x81 0xFF 0xE6 0xD0 0x85 0xE0 0x80 0x93 0x81 0x00 
                                    7E10: 0x82 0xE0 0x80 0x93 0xC0 0x00 0x88 0xE1 0x80 0x93 0xC1 0x00 0x86 0xE0 0x80 0x93 
                                    7E20: 0xC2 0x00 0x8C 0xE0 0x80 0x93 0xC4 0x00 0x8E 0xE0 0xBF 0xD0 0x25 0x9A 0x86 0xE0 
                                    7E30: 0x23 0xEC 0x3F 0xEF 0x91 0xE0 0x30 0x93 0x85 0x00 0x20 0x93 0x84 0x00 0x96 0xBB 
                                    7E40: 0xB0 0x9B 0xFE 0xCF 0x1D 0x9A 0xA8 0x95 0x81 0x50 0xA9 0xF7 0xEE 0x24 0xFF 0x24 
                                    7E50: 0xAA 0x24 0xA3 0x94 0xB5 0xE0 0xCB 0x2E 0xA1 0xE1 0xBA 0x2E 0xF3 0xE0 0xDF 0x2E 
                                    7E60: 0x98 0xD0 0x81 0x34 0x61 0xF4 0x95 0xD0 0x08 0x2F 0xA5 0xD0 0x02 0x38 0x29 0xF1 
                                    7E70: 0x01 0x38 0x11 0xF4 0x85 0xE0 0x01 0xC0 0x83 0xE0 0x83 0xD0 0x7F 0xC0 0x82 0x34 
                                    7E80: 0x11 0xF4 0x84 0xE1 0x03 0xC0 0x85 0x34 0x19 0xF4 0x85 0xE0 0x9C 0xD0 0x76 0xC0 
                                    7E90: 0x85 0x35 0x79 0xF4 0x7E 0xD0 0xE8 0x2E 0xFF 0x24 0x7B 0xD0 0x08 0x2F 0x10 0xE0 
                                    7EA0: 0x10 0x2F 0x00 0x27 0x0E 0x29 0x1F 0x29 0x00 0x0F 0x11 0x1F 0x84 0xD0 0x78 0x01 
                                    7EB0: 0x65 0xC0 0x86 0x35 0x21 0xF4 0x84 0xE0 0x86 0xD0 0x80 0xE0 0xDE 0xCF 0x84 0x36 
                                    7EC0: 0x09 0xF0 0x40 0xC0 0x66 0xD0 0x65 0xD0 0x08 0x2F 0x63 0xD0 0x80 0xE0 0xE8 0x16 
                                    7ED0: 0x80 0xE7 0xF8 0x06 0x18 0xF4 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0xC0 0xE0 0xD1 0xE0 
                                    7EE0: 0x58 0xD0 0x89 0x93 0x0C 0x17 0xE1 0xF7 0xF0 0xE0 0xEF 0x16 0xF0 0xE7 0xFF 0x06 
                                    7EF0: 0x18 0xF0 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0x5E 0xD0 0x07 0xB6 0x00 0xFC 0xFD 0xCF 
                                    7F00: 0xA7 0x01 0xA0 0xE0 0xB1 0xE0 0x2C 0x91 0x30 0xE0 0x11 0x96 0x8C 0x91 0x11 0x97 
                                    7F10: 0x90 0xE0 0x98 0x2F 0x88 0x27 0x82 0x2B 0x93 0x2B 0x12 0x96 0xFA 0x01 0x0C 0x01 
                                    7F20: 0xA7 0xBE 0xE8 0x95 0x11 0x24 0x4E 0x5F 0x5F 0x4F 0xF1 0xE0 0xA0 0x38 0xBF 0x07 
                                    7F30: 0x51 0xF7 0xF7 0x01 0xC7 0xBE 0xE8 0x95 0x07 0xB6 0x00 0xFC 0xFD 0xCF 0xB7 0xBE 
                                    7F40: 0xE8 0x95 0x1C 0xC0 0x84 0x37 0x61 0xF4 0x24 0xD0 0x23 0xD0 0x08 0x2F 0x21 0xD0 
                                    7F50: 0x32 0xD0 0xF7 0x01 0x85 0x91 0x7F 0x01 0x14 0xD0 0x01 0x50 0xD1 0xF7 0x0E 0xC0 
                                    7F60: 0x85 0x37 0x39 0xF4 0x28 0xD0 0x8E 0xE1 0x0C 0xD0 0x85 0xE9 0x0A 0xD0 0x8F 0xE0 
                                    7F70: 0x84 0xCF 0x81 0x35 0x11 0xF4 0x88 0xE0 0x18 0xD0 0x1D 0xD0 0x80 0xE1 0x01 0xD0 
                                    7F80: 0x6F 0xCF 0x98 0x2F 0x80 0x91 0xC0 0x00 0x85 0xFF 0xFC 0xCF 0x90 0x93 0xC6 0x00 
                                    7F90: 0x08 0x95 0x80 0x91 0xC0 0x00 0x87 0xFF 0xFC 0xCF 0x80 0x91 0xC0 0x00 0x84 0xFD 
                                    7FA0: 0x01 0xC0 0xA8 0x95 0x80 0x91 0xC6 0x00 0x08 0x95 0xE0 0xE6 0xF0 0xE0 0x98 0xE1 
                                    7FB0: 0x90 0x83 0x80 0x83 0x08 0x95 0xED 0xDF 0x80 0x32 0x19 0xF0 0x88 0xE0 0xF5 0xDF 
                                    7FC0: 0xFF 0xCF 0x84 0xE1 0xDE 0xCF 0x1F 0x93 0x18 0x2F 0xE3 0xDF 0x11 0x50 0xE9 0xF7 
                                    7FD0: 0xF2 0xDF 0x1F 0x91 0x08 0x95 0x28 0x2E 0x80 0xE0 0xE7 0xDF 0xEE 0x27 0xFF 0x27 
                                    7FE0: 0x09 0x94 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 
                                    7FF0: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x05 
                                    
                                    MD5 sum of bootloader = 0xFD 0x26 0x6D 0xCC 0x38 0xDB 0xDF 0xB3 0x19 0xC2 0x21 0x79 0xBD 0x24 0x58 0x72 
                                    Bootloader MD5 sum not known.
                                    
                                    First 256 bytes of program memory:
                                    
                                    0: 0x0C 0x94 0x5C 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    10: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    20: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    30: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    40: 0x0C 0x94 0x88 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    50: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                    60: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x00 0x00 0x00 0x08 0x00 0x02 0x01 0x00 
                                    70: 0x00 0x03 0x04 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x04 0x08 
                                    80: 0x10 0x20 0x40 0x80 0x01 0x02 0x04 0x08 0x10 0x20 0x01 0x02 0x04 0x08 0x10 0x20 
                                    90: 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x02 0x02 0x02 0x02 0x02 0x02 0x03 0x03 
                                    A0: 0x03 0x03 0x03 0x03 0x00 0x00 0x00 0x00 0x25 0x00 0x28 0x00 0x2B 0x00 0x00 0x00 
                                    B0: 0x00 0x00 0x24 0x00 0x27 0x00 0x2A 0x00 0x11 0x24 0x1F 0xBE 0xCF 0xEF 0xD8 0xE0 
                                    C0: 0xDE 0xBF 0xCD 0xBF 0x21 0xE0 0xA0 0xE0 0xB1 0xE0 0x01 0xC0 0x1D 0x92 0xA9 0x30 
                                    D0: 0xB2 0x07 0xE1 0xF7 0x0E 0x94 0xEE 0x01 0x0C 0x94 0xFE 0x01 0x0C 0x94 0x00 0x00 
                                    E0: 0x61 0xE0 0x8D 0xE0 0x0C 0x94 0x7E 0x01 0x61 0xE0 0x8D 0xE0 0x0E 0x94 0xB7 0x01 
                                    F0: 0x68 0xEE 0x73 0xE0 0x80 0xE0 0x90 0xE0 0x0E 0x94 0xF5 0x00 0x60 0xE0 0x8D 0xE0 
                                    
                                    Programming mode off.
                                    

                                    How I understand:
                                    LFuse = 0x62 this one ok
                                    HFuse = 0xDE this one ok too
                                    EFuse = 0xFF this one is not ok and thats why I get struggling, how I understand it should be 0x07
                                    Lock byte = 0xEF this one not ok too, am I right?
                                    Clock calibration = 0xA0 don't know is this one ok or not

                                    So what I should do differently for programming theese fuses?

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

                                    @jacikaas

                                    What is the upload speed you are using now ? This is defined in the boards.txt file for each board selected.

                                    I found that if I burn the bootloader with 5V FTDI, and then try to upload sketches at 3V (with batteries connected), the internal oscillator runs at a slightly different speed.

                                    When you use higher upload speeds, this small difference can result in too high error rates.

                                    That is why I use 9600 baud to upload sketches for 1MHz mcu's.

                                    For 8MHz mcu's I use 38K4 baud, and for 16Mhz I can use 115K on Arduino Uno's, but I tend to use 56K on my 16Mhz nodes.

                                    Each time I use the approriate bootloader compiled for that clock speed.

                                    1 Reply Last reply
                                    1
                                    • J jacikaas

                                      @GertSanders

                                      Thank You for reply! I got the results:

                                      Atmega chip detector.
                                      Written by Nick Gammon.
                                      Version 1.18
                                      Compiled on May  9 2016 at 11:25:03 with Arduino IDE 10605.
                                      Attempting to enter ICSP programming mode ...
                                      Entered programming mode OK.
                                      Signature = 0x1E 0x95 0x0F 
                                      Processor = ATmega328P
                                      Flash memory size = 32768 bytes.
                                      LFuse = 0x62 
                                      HFuse = 0xDE 
                                      EFuse = 0xFF 
                                      Lock byte = 0xEF 
                                      Clock calibration = 0xA0 
                                      Bootloader in use: Yes
                                      EEPROM preserved through erase: No
                                      Watchdog timer always on: No
                                      Bootloader is 512 bytes starting at 7E00
                                      
                                      Bootloader:
                                      
                                      7E00: 0x11 0x24 0x84 0xB7 0x14 0xBE 0x81 0xFF 0xE6 0xD0 0x85 0xE0 0x80 0x93 0x81 0x00 
                                      7E10: 0x82 0xE0 0x80 0x93 0xC0 0x00 0x88 0xE1 0x80 0x93 0xC1 0x00 0x86 0xE0 0x80 0x93 
                                      7E20: 0xC2 0x00 0x8C 0xE0 0x80 0x93 0xC4 0x00 0x8E 0xE0 0xBF 0xD0 0x25 0x9A 0x86 0xE0 
                                      7E30: 0x23 0xEC 0x3F 0xEF 0x91 0xE0 0x30 0x93 0x85 0x00 0x20 0x93 0x84 0x00 0x96 0xBB 
                                      7E40: 0xB0 0x9B 0xFE 0xCF 0x1D 0x9A 0xA8 0x95 0x81 0x50 0xA9 0xF7 0xEE 0x24 0xFF 0x24 
                                      7E50: 0xAA 0x24 0xA3 0x94 0xB5 0xE0 0xCB 0x2E 0xA1 0xE1 0xBA 0x2E 0xF3 0xE0 0xDF 0x2E 
                                      7E60: 0x98 0xD0 0x81 0x34 0x61 0xF4 0x95 0xD0 0x08 0x2F 0xA5 0xD0 0x02 0x38 0x29 0xF1 
                                      7E70: 0x01 0x38 0x11 0xF4 0x85 0xE0 0x01 0xC0 0x83 0xE0 0x83 0xD0 0x7F 0xC0 0x82 0x34 
                                      7E80: 0x11 0xF4 0x84 0xE1 0x03 0xC0 0x85 0x34 0x19 0xF4 0x85 0xE0 0x9C 0xD0 0x76 0xC0 
                                      7E90: 0x85 0x35 0x79 0xF4 0x7E 0xD0 0xE8 0x2E 0xFF 0x24 0x7B 0xD0 0x08 0x2F 0x10 0xE0 
                                      7EA0: 0x10 0x2F 0x00 0x27 0x0E 0x29 0x1F 0x29 0x00 0x0F 0x11 0x1F 0x84 0xD0 0x78 0x01 
                                      7EB0: 0x65 0xC0 0x86 0x35 0x21 0xF4 0x84 0xE0 0x86 0xD0 0x80 0xE0 0xDE 0xCF 0x84 0x36 
                                      7EC0: 0x09 0xF0 0x40 0xC0 0x66 0xD0 0x65 0xD0 0x08 0x2F 0x63 0xD0 0x80 0xE0 0xE8 0x16 
                                      7ED0: 0x80 0xE7 0xF8 0x06 0x18 0xF4 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0xC0 0xE0 0xD1 0xE0 
                                      7EE0: 0x58 0xD0 0x89 0x93 0x0C 0x17 0xE1 0xF7 0xF0 0xE0 0xEF 0x16 0xF0 0xE7 0xFF 0x06 
                                      7EF0: 0x18 0xF0 0xF7 0x01 0xD7 0xBE 0xE8 0x95 0x5E 0xD0 0x07 0xB6 0x00 0xFC 0xFD 0xCF 
                                      7F00: 0xA7 0x01 0xA0 0xE0 0xB1 0xE0 0x2C 0x91 0x30 0xE0 0x11 0x96 0x8C 0x91 0x11 0x97 
                                      7F10: 0x90 0xE0 0x98 0x2F 0x88 0x27 0x82 0x2B 0x93 0x2B 0x12 0x96 0xFA 0x01 0x0C 0x01 
                                      7F20: 0xA7 0xBE 0xE8 0x95 0x11 0x24 0x4E 0x5F 0x5F 0x4F 0xF1 0xE0 0xA0 0x38 0xBF 0x07 
                                      7F30: 0x51 0xF7 0xF7 0x01 0xC7 0xBE 0xE8 0x95 0x07 0xB6 0x00 0xFC 0xFD 0xCF 0xB7 0xBE 
                                      7F40: 0xE8 0x95 0x1C 0xC0 0x84 0x37 0x61 0xF4 0x24 0xD0 0x23 0xD0 0x08 0x2F 0x21 0xD0 
                                      7F50: 0x32 0xD0 0xF7 0x01 0x85 0x91 0x7F 0x01 0x14 0xD0 0x01 0x50 0xD1 0xF7 0x0E 0xC0 
                                      7F60: 0x85 0x37 0x39 0xF4 0x28 0xD0 0x8E 0xE1 0x0C 0xD0 0x85 0xE9 0x0A 0xD0 0x8F 0xE0 
                                      7F70: 0x84 0xCF 0x81 0x35 0x11 0xF4 0x88 0xE0 0x18 0xD0 0x1D 0xD0 0x80 0xE1 0x01 0xD0 
                                      7F80: 0x6F 0xCF 0x98 0x2F 0x80 0x91 0xC0 0x00 0x85 0xFF 0xFC 0xCF 0x90 0x93 0xC6 0x00 
                                      7F90: 0x08 0x95 0x80 0x91 0xC0 0x00 0x87 0xFF 0xFC 0xCF 0x80 0x91 0xC0 0x00 0x84 0xFD 
                                      7FA0: 0x01 0xC0 0xA8 0x95 0x80 0x91 0xC6 0x00 0x08 0x95 0xE0 0xE6 0xF0 0xE0 0x98 0xE1 
                                      7FB0: 0x90 0x83 0x80 0x83 0x08 0x95 0xED 0xDF 0x80 0x32 0x19 0xF0 0x88 0xE0 0xF5 0xDF 
                                      7FC0: 0xFF 0xCF 0x84 0xE1 0xDE 0xCF 0x1F 0x93 0x18 0x2F 0xE3 0xDF 0x11 0x50 0xE9 0xF7 
                                      7FD0: 0xF2 0xDF 0x1F 0x91 0x08 0x95 0x28 0x2E 0x80 0xE0 0xE7 0xDF 0xEE 0x27 0xFF 0x27 
                                      7FE0: 0x09 0x94 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 
                                      7FF0: 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0x00 0x05 
                                      
                                      MD5 sum of bootloader = 0xFD 0x26 0x6D 0xCC 0x38 0xDB 0xDF 0xB3 0x19 0xC2 0x21 0x79 0xBD 0x24 0x58 0x72 
                                      Bootloader MD5 sum not known.
                                      
                                      First 256 bytes of program memory:
                                      
                                      0: 0x0C 0x94 0x5C 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      10: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      20: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      30: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      40: 0x0C 0x94 0x88 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      50: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 
                                      60: 0x0C 0x94 0x6E 0x00 0x0C 0x94 0x6E 0x00 0x00 0x00 0x00 0x08 0x00 0x02 0x01 0x00 
                                      70: 0x00 0x03 0x04 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x04 0x08 
                                      80: 0x10 0x20 0x40 0x80 0x01 0x02 0x04 0x08 0x10 0x20 0x01 0x02 0x04 0x08 0x10 0x20 
                                      90: 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0x02 0x02 0x02 0x02 0x02 0x02 0x03 0x03 
                                      A0: 0x03 0x03 0x03 0x03 0x00 0x00 0x00 0x00 0x25 0x00 0x28 0x00 0x2B 0x00 0x00 0x00 
                                      B0: 0x00 0x00 0x24 0x00 0x27 0x00 0x2A 0x00 0x11 0x24 0x1F 0xBE 0xCF 0xEF 0xD8 0xE0 
                                      C0: 0xDE 0xBF 0xCD 0xBF 0x21 0xE0 0xA0 0xE0 0xB1 0xE0 0x01 0xC0 0x1D 0x92 0xA9 0x30 
                                      D0: 0xB2 0x07 0xE1 0xF7 0x0E 0x94 0xEE 0x01 0x0C 0x94 0xFE 0x01 0x0C 0x94 0x00 0x00 
                                      E0: 0x61 0xE0 0x8D 0xE0 0x0C 0x94 0x7E 0x01 0x61 0xE0 0x8D 0xE0 0x0E 0x94 0xB7 0x01 
                                      F0: 0x68 0xEE 0x73 0xE0 0x80 0xE0 0x90 0xE0 0x0E 0x94 0xF5 0x00 0x60 0xE0 0x8D 0xE0 
                                      
                                      Programming mode off.
                                      

                                      How I understand:
                                      LFuse = 0x62 this one ok
                                      HFuse = 0xDE this one ok too
                                      EFuse = 0xFF this one is not ok and thats why I get struggling, how I understand it should be 0x07
                                      Lock byte = 0xEF this one not ok too, am I right?
                                      Clock calibration = 0xA0 don't know is this one ok or not

                                      So what I should do differently for programming theese fuses?

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

                                      @jacikaas

                                      Is this the part of the boards file you use ?

                                      0_1462787255071_1454449114161-9.png

                                      J 1 Reply Last reply
                                      0
                                      • GertSandersG GertSanders

                                        @jacikaas

                                        Is this the part of the boards file you use ?

                                        0_1462787255071_1454449114161-9.png

                                        J Offline
                                        J Offline
                                        jacikaas
                                        wrote on last edited by
                                        #42

                                        @GertSanders

                                        Battery connection is good. Battery voltage: 3.25V (when not connected to circuit)
                                        I check again all wiring, measure voltage on circuit and its 3.22-3.23V, check voltage directly on chip pins - its same voltage too.

                                        Still got "not sync" when trying to upload sketch. Interesting that when I have connected battery power and try to upload sketch over FTDI, led conected to D13 blinks and after that I get "not sync".

                                        Upload speed is: apm96.upload.speed=9600

                                        Yes, I use same part in boards.txt file like in screenshot you posted and also like in the given link in tutorial: https://forum.mysensors.org/uploads/files/1443392940975-add-to-boards.txt

                                        If I burn bootloader to Atmega328, with battery powered, shoud it might work?

                                        GertSandersG 1 Reply Last reply
                                        0
                                        • J jacikaas

                                          @GertSanders

                                          Battery connection is good. Battery voltage: 3.25V (when not connected to circuit)
                                          I check again all wiring, measure voltage on circuit and its 3.22-3.23V, check voltage directly on chip pins - its same voltage too.

                                          Still got "not sync" when trying to upload sketch. Interesting that when I have connected battery power and try to upload sketch over FTDI, led conected to D13 blinks and after that I get "not sync".

                                          Upload speed is: apm96.upload.speed=9600

                                          Yes, I use same part in boards.txt file like in screenshot you posted and also like in the given link in tutorial: https://forum.mysensors.org/uploads/files/1443392940975-add-to-boards.txt

                                          If I burn bootloader to Atmega328, with battery powered, shoud it might work?

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

                                          @jacikaas

                                          It's worth a try. Not sure if it will make any difference. But centainly try it.

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


                                          13

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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