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. MYSBootloader 1.3.0-beta.3

MYSBootloader 1.3.0-beta.3

Scheduled Pinned Locked Moved Development
182 Posts 44 Posters 59.4k Views 42 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.
  • tekkaT tekka

    @Werwolfx I don't see any MYSBootloader startup message in your log. Please re-download the .hex from the github repo to ensure you are on the most recent version and flash it following these instructions: https://www.mysensors.org/about/ota

    W Offline
    W Offline
    Werwolfx
    wrote on last edited by
    #21

    @tekka
    i tryed it
    My little instructions for Arduino Atmega328p 5v ext
    1)download from https://github.com/mysensors/MySensorsBootloaderRF24
    2)copy to arduino folder arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors and paste boards.txt

    proMYSBL.name=ATmega328 16Mhz MYSBootloader
    
    proMYSBL.upload.tool=avrdude
    proMYSBL.upload.protocol=arduino
    proMYSBL.upload.maximum_size=30720
    proMYSBL.upload.maximum_data_size=2048
    proMYSBL.upload.speed=115200
    
    proMYSBL.bootloader.tool=avrdude
    proMYSBL.bootloader.low_fuses=0xF7
    proMYSBL.bootloader.high_fuses=0xDA
    proMYSBL.bootloader.extended_fuses=0x06
    proMYSBL.bootloader.unlock_bits=0x3F
    proMYSBL.bootloader.lock_bits=0x0F
    proMYSBL.bootloader.file=MySensors/MYSBootloader.hex
    
    proMYSBL.build.mcu=atmega328p
    proMYSBL.build.f_cpu=16000000L
    proMYSBL.build.board=AVR_UNO
    proMYSBL.build.core=arduino
    proMYSBL.build.variant=standard
    

    3)In Arduino IDE select downloadex bootloader and burn it to Atmega
    avrdude log

    /home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude -C/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0x06:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xF7:m 
    
    avrdude: Version 6.3, compiled on Dec 16 2016 at 12:32:01
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2014 Joerg Wunsch
    
             System wide configuration file is "/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf"
             User configuration file is "/home/werwolfx/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port                    : usb
             Using Programmer              : usbasp
             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 : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/
    
    avrdude: auto set sck period (because given equals null)
    avrdude: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: Device signature = 0x1e950f (probably m328p)
    avrdude: erasing chip
    avrdude: auto set sck period (because given equals null)
    avrdude: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude: reading input file "0x3F"
    avrdude: writing lock (1 bytes):
    
    /home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude -C/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -Uflash:w:/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock:w:0x0F:m 
    Writing | ################################################## | 100% 0.00s
    
    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:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    avrdude: reading input file "0x06"
    avrdude: writing efuse (1 bytes):
    
    Writing |  ***failed;  
    ################################################## | 100% 0.03s
    
    avrdude: 1 bytes of efuse written
    avrdude: verifying efuse memory against 0x06:
    avrdude: load data efuse data from input file 0x06:
    avrdude: input file 0x06 contains 1 bytes
    avrdude: reading on-chip efuse data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet
    This behaviour is deprecated and will result in an error in future version
    You probably want to use 0xfe instead of 0x06 (double check with your datasheet first).
    avrdude: 1 bytes of efuse verified
    avrdude: reading input file "0xDA"
    avrdude: writing hfuse (1 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 1 bytes of hfuse written
    avrdude: verifying hfuse memory against 0xDA:
    avrdude: load data hfuse data from input file 0xDA:
    avrdude: input file 0xDA contains 1 bytes
    avrdude: reading on-chip hfuse data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of hfuse verified
    avrdude: reading input file "0xF7"
    avrdude: writing lfuse (1 bytes):
    
    Writing | ################################################## | 100% 0.01s
    
    avrdude: 1 bytes of lfuse written
    avrdude: verifying lfuse memory against 0xF7:
    avrdude: load data lfuse data from input file 0xF7:
    avrdude: input file 0xF7 contains 1 bytes
    avrdude: reading on-chip lfuse data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    
    avrdude: 1 bytes of lfuse verified
    avrdude: Version 6.3, compiled on Dec 16 2016 at 12:32:01
    
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
             Copyright (c) 2007-2014 Joerg Wunsch
    
             System wide configuration file is "/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf"
             User configuration file is "/home/werwolfx/.avrduderc"
             User configuration file does not exist or is not a regular file, skipping
    
             Using Port                    : usb
             Using Programmer              : usbasp
             AVR Part                      : ATmega328P
             Chip Erase delay              : 9000 us
    avrdude done.  Thank you.
             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 : usbasp
             Description     : USBasp, http://www.fischl.de/usbasp/
    
    avrdude: auto set sck period (because given equals null)
    avrdude: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude: AVR device initialized and ready to accept instructions
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: Device signature = 0x1e950f (probably m328p)
    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: auto set sck period (because given equals null)
    avrdude: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude: reading input file "/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex"
    avrdude: writing flash (32762 bytes):
    
    Writing | ################################################## | 100% 0.00s
    
    avrdude: 32762 bytes of flash written
    avrdude: verifying flash memory against /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
    avrdude: load data flash data from input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
    avrdude: input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex contains 32762 bytes
    avrdude: reading on-chip flash data:
    
    Reading | ################################################## | 100% 0.00s
    
    avrdude: verifying ...
    avrdude: 32762 bytes of flash verified
    avrdude: reading input file "0x0F"
    avrdude: writing lock (1 bytes):
    
    Writing | ################################################## | 100% 0.01s
    
    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.00s
    
    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    
    avrdude done.  Thank you.
    
    1. I loaded test sketh WaterMeterPulssensor (from Mysensors example) to arduino
      wait if the module is start and see to MYSController
      in MYSController
    14.01.2017 11:34:49	RX	5;6;1;0;3;0
    14.01.2017 11:34:52	RX	10;5;1;0;17;5519
    14.01.2017 11:34:52	RX	10;6;1;0;39;23.99
    14.01.2017 11:34:57	RX	6;3;1;0;16;0
    14.01.2017 11:34:58	RX	6;4;1;0;37;170
    14.01.2017 11:34:58	RX	6;6;1;0;3;0
    14.01.2017 11:34:58	RX	6;5;1;0;0;20.50
    14.01.2017 11:35:01	RX	4;255;0;0;17;2.1.0
    14.01.2017 11:35:01	DEBUG	Update child id=255, type=S_ARDUINO_NODE
    14.01.2017 11:35:01	RX	4;255;3;0;6;0
    14.01.2017 11:35:01	TX	4;255;3;0;6;M
    14.01.2017 11:35:02	RX	4;255;3;0;11;Water Meter
    14.01.2017 11:35:02	RX	4;255;3;0;12;1.1
    14.01.2017 11:35:02	RX	4;1;0;0;21;
    14.01.2017 11:35:02	DEBUG	Update child id=1, type=S_WATER
    14.01.2017 11:35:02	RX	4;1;2;0;24;
    14.01.2017 11:35:08	RX	10;5;1;0;17;5462
    14.01.2017 11:35:08	RX	10;6;1;0;39;23.75
    14.01.2017 11:35:18	RX	7;3;1;0;16;0
    14.01.2017 11:35:18	RX	7;4;1;0;37;192
    14.01.2017 11:35:18	RX	7;6;1;0;3;0
    14.01.2017 11:35:19	RX	5;3;1;0;16;0
    14.01.2017 11:35:19	RX	5;4;1;0;37;34
    14.01.2017 11:35:19	RX	5;6;1;0;3;0
    
    

    5)in MYSController Assign FW Blink and Reboot
    MYSController

    14.01.2017 11:38:03	TX	4;0;3;0;13;0
    14.01.2017 11:38:09	RX	4;255;0;0;17;2.1.0
    14.01.2017 11:38:09	CHILD	New child discovered, node id=4, child id=internal
    14.01.2017 11:38:09	DEBUG	Update child id=255, type=S_ARDUINO_NODE
    14.01.2017 11:38:09	RX	4;255;3;0;6;0
    14.01.2017 11:38:09	TX	4;255;3;0;6;M
    14.01.2017 11:38:09	RX	4;255;3;0;11;Water Meter
    14.01.2017 11:38:09	RX	4;255;3;0;12;1.1
    14.01.2017 11:38:09	RX	4;1;0;0;21;
    14.01.2017 11:38:09	CHILD	New child discovered, node id=4, child id=1
    14.01.2017 11:38:09	DEBUG	Update child id=1, type=S_WATER
    14.01.2017 11:38:10	RX	4;1;2;0;24;
    14.01.2017 11:38:14	RX	4;255;3;0;21;0
    

    Serial

    101794 TSF:MSG:READ,0-0-4,s=0,c=3,t=13,pt=0,l=1,sg=0:0
    0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
    3 TSM:INIT
    4 TSF:WUR:MS=0
    11 TSM:INIT:TSP OK
    13 TSM:INIT:STATID=4
    14 TSF:SID:OK,ID=4
    16 TSM:FPAR
    52 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    345 TSF:MSG:READ,0-0-4,s=255,c=3,t=8,pt=1,l=1,sg=0:0
    350 TSF:MSG:FPAR OK,ID=0,D=1
    2060 TSM:FPAR:OK
    2061 TSM:ID
    2062 TSM:ID:OK
    2064 TSM:UPL
    2067 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
    2081 TSF:MSG:READ,0-0-4,s=255,c=3,t=25,pt=1,l=1,sg=0:1
    2086 TSF:MSG:PONG RECV,HP=1
    2089 TSM:UPL:OK
    2091 TSM:READY:ID=4,PAR=0,DIS=1
    2098 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    2104 TSF:MSG:READ,0-0-4,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    2114 TSF:MSG:SEND,4-4-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
    2126 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
    2157 TSF:MSG:READ,0-0-4,s=255,c=3,t=6,pt=0,l=1,sg=0:M
    2164 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Water Meter
    2176 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
    2183 TSF:MSG:SEND,4-4-0-0,s=1,c=0,t=21,pt=0,l=0,sg=0,ft=0,st=OK:
    2189 MCO:REG:REQ
    2193 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
    2245 TSF:MSG:READ,0-0-4,s=255,c=3,t=27,pt=1,l=1,sg=0:1
    2250 MCO:PIM:NODE REG=1
    2252 MCO:BGN:STP
    2255 TSF:MSG:SEND,4-4-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
    2262 MCO:BGN:INIT OK,TSP=1
    2335 TSF:MSG:READ,0-0-4,s=255,c=3,t=6,pt=0,l=6,sg=0:Metric
    2866 TSF:MSG:READ,0-0-4,s=1,c=1,t=24,pt=0,l=6,sg=0:400100
    Received last pulse count from gw:400100
    6381 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
    6386 TSF:MSG:BC
    6637 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=OK:0```
    tekkaT 1 Reply Last reply
    0
    • W Werwolfx

      @tekka
      i tryed it
      My little instructions for Arduino Atmega328p 5v ext
      1)download from https://github.com/mysensors/MySensorsBootloaderRF24
      2)copy to arduino folder arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors and paste boards.txt

      proMYSBL.name=ATmega328 16Mhz MYSBootloader
      
      proMYSBL.upload.tool=avrdude
      proMYSBL.upload.protocol=arduino
      proMYSBL.upload.maximum_size=30720
      proMYSBL.upload.maximum_data_size=2048
      proMYSBL.upload.speed=115200
      
      proMYSBL.bootloader.tool=avrdude
      proMYSBL.bootloader.low_fuses=0xF7
      proMYSBL.bootloader.high_fuses=0xDA
      proMYSBL.bootloader.extended_fuses=0x06
      proMYSBL.bootloader.unlock_bits=0x3F
      proMYSBL.bootloader.lock_bits=0x0F
      proMYSBL.bootloader.file=MySensors/MYSBootloader.hex
      
      proMYSBL.build.mcu=atmega328p
      proMYSBL.build.f_cpu=16000000L
      proMYSBL.build.board=AVR_UNO
      proMYSBL.build.core=arduino
      proMYSBL.build.variant=standard
      

      3)In Arduino IDE select downloadex bootloader and burn it to Atmega
      avrdude log

      /home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude -C/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0x06:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xF7:m 
      
      avrdude: Version 6.3, compiled on Dec 16 2016 at 12:32:01
               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
               Copyright (c) 2007-2014 Joerg Wunsch
      
               System wide configuration file is "/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf"
               User configuration file is "/home/werwolfx/.avrduderc"
               User configuration file does not exist or is not a regular file, skipping
      
               Using Port                    : usb
               Using Programmer              : usbasp
               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 : usbasp
               Description     : USBasp, http://www.fischl.de/usbasp/
      
      avrdude: auto set sck period (because given equals null)
      avrdude: warning: cannot set sck period. please check for usbasp firmware update.
      avrdude: AVR device initialized and ready to accept instructions
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: Device signature = 0x1e950f (probably m328p)
      avrdude: erasing chip
      avrdude: auto set sck period (because given equals null)
      avrdude: warning: cannot set sck period. please check for usbasp firmware update.
      avrdude: reading input file "0x3F"
      avrdude: writing lock (1 bytes):
      
      /home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude -C/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf -v -patmega328p -cusbasp -Pusb -Uflash:w:/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock:w:0x0F:m 
      Writing | ################################################## | 100% 0.00s
      
      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:
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: verifying ...
      avrdude: 1 bytes of lock verified
      avrdude: reading input file "0x06"
      avrdude: writing efuse (1 bytes):
      
      Writing |  ***failed;  
      ################################################## | 100% 0.03s
      
      avrdude: 1 bytes of efuse written
      avrdude: verifying efuse memory against 0x06:
      avrdude: load data efuse data from input file 0x06:
      avrdude: input file 0x06 contains 1 bytes
      avrdude: reading on-chip efuse data:
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: verifying ...
      avrdude: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet
      This behaviour is deprecated and will result in an error in future version
      You probably want to use 0xfe instead of 0x06 (double check with your datasheet first).
      avrdude: 1 bytes of efuse verified
      avrdude: reading input file "0xDA"
      avrdude: writing hfuse (1 bytes):
      
      Writing | ################################################## | 100% 0.00s
      
      avrdude: 1 bytes of hfuse written
      avrdude: verifying hfuse memory against 0xDA:
      avrdude: load data hfuse data from input file 0xDA:
      avrdude: input file 0xDA contains 1 bytes
      avrdude: reading on-chip hfuse data:
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: verifying ...
      avrdude: 1 bytes of hfuse verified
      avrdude: reading input file "0xF7"
      avrdude: writing lfuse (1 bytes):
      
      Writing | ################################################## | 100% 0.01s
      
      avrdude: 1 bytes of lfuse written
      avrdude: verifying lfuse memory against 0xF7:
      avrdude: load data lfuse data from input file 0xF7:
      avrdude: input file 0xF7 contains 1 bytes
      avrdude: reading on-chip lfuse data:
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: verifying ...
      
      avrdude: 1 bytes of lfuse verified
      avrdude: Version 6.3, compiled on Dec 16 2016 at 12:32:01
      
               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
               Copyright (c) 2007-2014 Joerg Wunsch
      
               System wide configuration file is "/home/werwolfx/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf"
               User configuration file is "/home/werwolfx/.avrduderc"
               User configuration file does not exist or is not a regular file, skipping
      
               Using Port                    : usb
               Using Programmer              : usbasp
               AVR Part                      : ATmega328P
               Chip Erase delay              : 9000 us
      avrdude done.  Thank you.
               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 : usbasp
               Description     : USBasp, http://www.fischl.de/usbasp/
      
      avrdude: auto set sck period (because given equals null)
      avrdude: warning: cannot set sck period. please check for usbasp firmware update.
      avrdude: AVR device initialized and ready to accept instructions
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: Device signature = 0x1e950f (probably m328p)
      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: auto set sck period (because given equals null)
      avrdude: warning: cannot set sck period. please check for usbasp firmware update.
      avrdude: reading input file "/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex"
      avrdude: writing flash (32762 bytes):
      
      Writing | ################################################## | 100% 0.00s
      
      avrdude: 32762 bytes of flash written
      avrdude: verifying flash memory against /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
      avrdude: load data flash data from input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
      avrdude: input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex contains 32762 bytes
      avrdude: reading on-chip flash data:
      
      Reading | ################################################## | 100% 0.00s
      
      avrdude: verifying ...
      avrdude: 32762 bytes of flash verified
      avrdude: reading input file "0x0F"
      avrdude: writing lock (1 bytes):
      
      Writing | ################################################## | 100% 0.01s
      
      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.00s
      
      avrdude: verifying ...
      avrdude: 1 bytes of lock verified
      
      avrdude done.  Thank you.
      
      1. I loaded test sketh WaterMeterPulssensor (from Mysensors example) to arduino
        wait if the module is start and see to MYSController
        in MYSController
      14.01.2017 11:34:49	RX	5;6;1;0;3;0
      14.01.2017 11:34:52	RX	10;5;1;0;17;5519
      14.01.2017 11:34:52	RX	10;6;1;0;39;23.99
      14.01.2017 11:34:57	RX	6;3;1;0;16;0
      14.01.2017 11:34:58	RX	6;4;1;0;37;170
      14.01.2017 11:34:58	RX	6;6;1;0;3;0
      14.01.2017 11:34:58	RX	6;5;1;0;0;20.50
      14.01.2017 11:35:01	RX	4;255;0;0;17;2.1.0
      14.01.2017 11:35:01	DEBUG	Update child id=255, type=S_ARDUINO_NODE
      14.01.2017 11:35:01	RX	4;255;3;0;6;0
      14.01.2017 11:35:01	TX	4;255;3;0;6;M
      14.01.2017 11:35:02	RX	4;255;3;0;11;Water Meter
      14.01.2017 11:35:02	RX	4;255;3;0;12;1.1
      14.01.2017 11:35:02	RX	4;1;0;0;21;
      14.01.2017 11:35:02	DEBUG	Update child id=1, type=S_WATER
      14.01.2017 11:35:02	RX	4;1;2;0;24;
      14.01.2017 11:35:08	RX	10;5;1;0;17;5462
      14.01.2017 11:35:08	RX	10;6;1;0;39;23.75
      14.01.2017 11:35:18	RX	7;3;1;0;16;0
      14.01.2017 11:35:18	RX	7;4;1;0;37;192
      14.01.2017 11:35:18	RX	7;6;1;0;3;0
      14.01.2017 11:35:19	RX	5;3;1;0;16;0
      14.01.2017 11:35:19	RX	5;4;1;0;37;34
      14.01.2017 11:35:19	RX	5;6;1;0;3;0
      
      

      5)in MYSController Assign FW Blink and Reboot
      MYSController

      14.01.2017 11:38:03	TX	4;0;3;0;13;0
      14.01.2017 11:38:09	RX	4;255;0;0;17;2.1.0
      14.01.2017 11:38:09	CHILD	New child discovered, node id=4, child id=internal
      14.01.2017 11:38:09	DEBUG	Update child id=255, type=S_ARDUINO_NODE
      14.01.2017 11:38:09	RX	4;255;3;0;6;0
      14.01.2017 11:38:09	TX	4;255;3;0;6;M
      14.01.2017 11:38:09	RX	4;255;3;0;11;Water Meter
      14.01.2017 11:38:09	RX	4;255;3;0;12;1.1
      14.01.2017 11:38:09	RX	4;1;0;0;21;
      14.01.2017 11:38:09	CHILD	New child discovered, node id=4, child id=1
      14.01.2017 11:38:09	DEBUG	Update child id=1, type=S_WATER
      14.01.2017 11:38:10	RX	4;1;2;0;24;
      14.01.2017 11:38:14	RX	4;255;3;0;21;0
      

      Serial

      101794 TSF:MSG:READ,0-0-4,s=0,c=3,t=13,pt=0,l=1,sg=0:0
      0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
      3 TSM:INIT
      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      13 TSM:INIT:STATID=4
      14 TSF:SID:OK,ID=4
      16 TSM:FPAR
      52 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      345 TSF:MSG:READ,0-0-4,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      350 TSF:MSG:FPAR OK,ID=0,D=1
      2060 TSM:FPAR:OK
      2061 TSM:ID
      2062 TSM:ID:OK
      2064 TSM:UPL
      2067 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      2081 TSF:MSG:READ,0-0-4,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      2086 TSF:MSG:PONG RECV,HP=1
      2089 TSM:UPL:OK
      2091 TSM:READY:ID=4,PAR=0,DIS=1
      2098 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      2104 TSF:MSG:READ,0-0-4,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      2114 TSF:MSG:SEND,4-4-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      2126 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      2157 TSF:MSG:READ,0-0-4,s=255,c=3,t=6,pt=0,l=1,sg=0:M
      2164 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Water Meter
      2176 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.1
      2183 TSF:MSG:SEND,4-4-0-0,s=1,c=0,t=21,pt=0,l=0,sg=0,ft=0,st=OK:
      2189 MCO:REG:REQ
      2193 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      2245 TSF:MSG:READ,0-0-4,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      2250 MCO:PIM:NODE REG=1
      2252 MCO:BGN:STP
      2255 TSF:MSG:SEND,4-4-0-0,s=1,c=2,t=24,pt=0,l=0,sg=0,ft=0,st=OK:
      2262 MCO:BGN:INIT OK,TSP=1
      2335 TSF:MSG:READ,0-0-4,s=255,c=3,t=6,pt=0,l=6,sg=0:Metric
      2866 TSF:MSG:READ,0-0-4,s=1,c=1,t=24,pt=0,l=6,sg=0:400100
      Received last pulse count from gw:400100
      6381 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0:
      6386 TSF:MSG:BC
      6637 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=0,st=OK:0```
      tekkaT Offline
      tekkaT Offline
      tekka
      Admin
      wrote on last edited by tekka
      #22

      @Werwolfx but still no signs of MYSBootloader - what RF channel are you on?

      W 1 Reply Last reply
      0
      • tekkaT tekka

        @Werwolfx but still no signs of MYSBootloader - what RF channel are you on?

        W Offline
        W Offline
        Werwolfx
        wrote on last edited by Werwolfx
        #23

        @tekka
        NRF24L01+
        #define MY_RADIO_NRF24

        What is the "no signs of MYSBootloader"?

        tekkaT 1 Reply Last reply
        0
        • W Werwolfx

          @tekka
          NRF24L01+
          #define MY_RADIO_NRF24

          What is the "no signs of MYSBootloader"?

          tekkaT Offline
          tekkaT Offline
          tekka
          Admin
          wrote on last edited by
          #24

          @Werwolfx As soon as the bootloader takes over, in your case after the reboot request (1), but before the MYS lib 2.1.0 init message (2):

          (1) 14.01.2017 11:38:03 TX  4;0;3;0;13;0
          (2) 14.01.2017 11:38:09 RX  4;255;0;0;17;2.1.0
          

          it will send a I_FIRMWARE_CONFIG_REQUEST message to inform the controller about the currently loaded FW and request a new FW.

          looks like this:

          4;255;4;0;0;BE0001003003D8490102
          

          This is missing in your case, therefore I'm wondering if you have incompatible radio settings. Please post your GW sketch and upload your MYSBootloader.hex file for further troubleshooting.

          W 1 Reply Last reply
          0
          • tekkaT tekka

            @Werwolfx As soon as the bootloader takes over, in your case after the reboot request (1), but before the MYS lib 2.1.0 init message (2):

            (1) 14.01.2017 11:38:03 TX  4;0;3;0;13;0
            (2) 14.01.2017 11:38:09 RX  4;255;0;0;17;2.1.0
            

            it will send a I_FIRMWARE_CONFIG_REQUEST message to inform the controller about the currently loaded FW and request a new FW.

            looks like this:

            4;255;4;0;0;BE0001003003D8490102
            

            This is missing in your case, therefore I'm wondering if you have incompatible radio settings. Please post your GW sketch and upload your MYSBootloader.hex file for further troubleshooting.

            W Offline
            W Offline
            Werwolfx
            wrote on last edited by Werwolfx
            #25

            @tekka GW on esp8266 (default sketch) + NRF24L01+
            on GW

            /**
             * The MySensors Arduino library handles the wireless radio link and protocol
             * between your home built sensors/actuators and HA controller of choice.
             * The sensors forms a self healing radio network with optional repeaters. Each
             * repeater and gateway builds a routing tables in EEPROM which keeps track of the
             * network topology allowing messages to be routed to nodes.
             *
             * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
             * Copyright (C) 2013-2015 Sensnology AB
             * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
             *
             * Documentation: http://www.mysensors.org
             * Support Forum: http://forum.mysensors.org
             *
             * This program is free software; you can redistribute it and/or
             * modify it under the terms of the GNU General Public License
             * version 2 as published by the Free Software Foundation.
             *
             *******************************
             *
             * REVISION HISTORY
             * Version 1.0 - Henrik EKblad
             * Contribution by a-lurker and Anticimex,
             * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de>
             * Contribution by Ivo Pullens (ESP8266 support)
             *
             * DESCRIPTION
             * The EthernetGateway sends data received from sensors to the WiFi link.
             * The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
             *
             * VERA CONFIGURATION:
             * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin.
             * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003
             *
             * LED purposes:
             * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch, only the LEDs that is defined is used.
             * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
             * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
             * - ERR (red) - fast blink on error during transmission error or recieve crc error
             *
             * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions.
             * nRF24L01+  ESP8266
             * VCC        VCC
             * CE         GPIO4
             * CSN/CS     GPIO15
             * SCK        GPIO14
             * MISO       GPIO12
             * MOSI       GPIO13
             * GND        GND
             *
             * Not all ESP8266 modules have all pins available on their external interface.
             * This code has been tested on an ESP-12 module.
             * The ESP8266 requires a certain pin configuration to download code, and another one to run code:
             * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch')
             * - Connect GPIO15 via 10K pulldown resistor to GND
             * - Connect CH_PD via 10K resistor to VCC
             * - Connect GPIO2 via 10K resistor to VCC
             * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch')
             *
              * Inclusion mode button:
             * - Connect GPIO5 via switch to GND ('inclusion switch')
             *
             * Hardware SHA204 signing is currently not supported!
             *
             * Make sure to fill in your ssid and WiFi password below for ssid & pass.
             */
            
            
            // Enable debug prints to serial monitor
            #define MY_DEBUG
            
            // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
            #define MY_BAUD_RATE 115200
            
            // Enables and select radio type (if attached)
            #define MY_RADIO_NRF24
            //#define MY_RADIO_RFM69
            
            #define MY_GATEWAY_ESP8266
            
            #define MY_ESP8266_SSID "WiFI"
            #define MY_ESP8266_PASSWORD "password[0_1484386469111_MYSBootloader.hex](/uploads/files/1484386469171-mysbootloader.hex) "
            
            // Enable UDP communication
            //#define MY_USE_UDP
            
            // Set the hostname for the WiFi Client. This is the hostname
            // it will pass to the DHCP server if not static.
            // #define MY_ESP8266_HOSTNAME "sensor-gateway"
            
            // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
            //#define MY_IP_ADDRESS 192,168,178,87
            
            // If using static ip you need to define Gateway and Subnet address as well
            //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
            //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
            
            // The port to keep open on node server mode
            #define MY_PORT 5003
            
            // How many clients should be able to connect to this gateway (default 1)
            #define MY_GATEWAY_MAX_CLIENTS 2
            
            // Controller ip address. Enables client mode (default is "server" mode).
            // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
            //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
            
            // Enable inclusion mode
            #define MY_INCLUSION_MODE_FEATURE
            
            // Enable Inclusion mode button on gateway
            // #define MY_INCLUSION_BUTTON_FEATURE
            // Set inclusion mode duration (in seconds)
            #define MY_INCLUSION_MODE_DURATION 60
            // Digital pin used for inclusion mode button
            #define MY_INCLUSION_MODE_BUTTON_PIN  3
            
            
            // Set blinking period
            // #define MY_DEFAULT_LED_BLINK_PERIOD 300
            
            // Flash leds on rx/tx/err
            // Led pins used if blinking feature is enabled above
            #define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
            #define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
            #define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
            
            #if defined(MY_USE_UDP)
              #include <WiFiUdp.h>
            #endif
            
            #include <ESP8266WiFi.h>
            
            #include <MySensors.h>
            
            void setup() {
            }
            
            void presentation() {
              // Present locally attached sensors here
            }
            
            
            void loop() {
              // Send locally attached sensors data here
            }
            

            In MYSController on mudule i click INFO
            FW Update = no
            Bootloader = N/A

            may be problem in the Bootloader.hex?

            0_1484386859986_upload-c59e469e-e015-4099-88d8-607a7408a1da

            tekkaT 1 Reply Last reply
            0
            • W Werwolfx

              @tekka GW on esp8266 (default sketch) + NRF24L01+
              on GW

              /**
               * The MySensors Arduino library handles the wireless radio link and protocol
               * between your home built sensors/actuators and HA controller of choice.
               * The sensors forms a self healing radio network with optional repeaters. Each
               * repeater and gateway builds a routing tables in EEPROM which keeps track of the
               * network topology allowing messages to be routed to nodes.
               *
               * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
               * Copyright (C) 2013-2015 Sensnology AB
               * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
               *
               * Documentation: http://www.mysensors.org
               * Support Forum: http://forum.mysensors.org
               *
               * This program is free software; you can redistribute it and/or
               * modify it under the terms of the GNU General Public License
               * version 2 as published by the Free Software Foundation.
               *
               *******************************
               *
               * REVISION HISTORY
               * Version 1.0 - Henrik EKblad
               * Contribution by a-lurker and Anticimex,
               * Contribution by Norbert Truchsess <norbert.truchsess@t-online.de>
               * Contribution by Ivo Pullens (ESP8266 support)
               *
               * DESCRIPTION
               * The EthernetGateway sends data received from sensors to the WiFi link.
               * The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
               *
               * VERA CONFIGURATION:
               * Enter "ip-number:port" in the ip-field of the Arduino GW device. This will temporarily override any serial configuration for the Vera plugin.
               * E.g. If you want to use the defualt values in this sketch enter: 192.168.178.66:5003
               *
               * LED purposes:
               * - To use the feature, uncomment any of the MY_DEFAULT_xx_LED_PINs in your sketch, only the LEDs that is defined is used.
               * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
               * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
               * - ERR (red) - fast blink on error during transmission error or recieve crc error
               *
               * See http://www.mysensors.org/build/esp8266_gateway for wiring instructions.
               * nRF24L01+  ESP8266
               * VCC        VCC
               * CE         GPIO4
               * CSN/CS     GPIO15
               * SCK        GPIO14
               * MISO       GPIO12
               * MOSI       GPIO13
               * GND        GND
               *
               * Not all ESP8266 modules have all pins available on their external interface.
               * This code has been tested on an ESP-12 module.
               * The ESP8266 requires a certain pin configuration to download code, and another one to run code:
               * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch')
               * - Connect GPIO15 via 10K pulldown resistor to GND
               * - Connect CH_PD via 10K resistor to VCC
               * - Connect GPIO2 via 10K resistor to VCC
               * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch')
               *
                * Inclusion mode button:
               * - Connect GPIO5 via switch to GND ('inclusion switch')
               *
               * Hardware SHA204 signing is currently not supported!
               *
               * Make sure to fill in your ssid and WiFi password below for ssid & pass.
               */
              
              
              // Enable debug prints to serial monitor
              #define MY_DEBUG
              
              // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
              #define MY_BAUD_RATE 115200
              
              // Enables and select radio type (if attached)
              #define MY_RADIO_NRF24
              //#define MY_RADIO_RFM69
              
              #define MY_GATEWAY_ESP8266
              
              #define MY_ESP8266_SSID "WiFI"
              #define MY_ESP8266_PASSWORD "password[0_1484386469111_MYSBootloader.hex](/uploads/files/1484386469171-mysbootloader.hex) "
              
              // Enable UDP communication
              //#define MY_USE_UDP
              
              // Set the hostname for the WiFi Client. This is the hostname
              // it will pass to the DHCP server if not static.
              // #define MY_ESP8266_HOSTNAME "sensor-gateway"
              
              // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
              //#define MY_IP_ADDRESS 192,168,178,87
              
              // If using static ip you need to define Gateway and Subnet address as well
              //#define MY_IP_GATEWAY_ADDRESS 192,168,178,1
              //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
              
              // The port to keep open on node server mode
              #define MY_PORT 5003
              
              // How many clients should be able to connect to this gateway (default 1)
              #define MY_GATEWAY_MAX_CLIENTS 2
              
              // Controller ip address. Enables client mode (default is "server" mode).
              // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
              //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
              
              // Enable inclusion mode
              #define MY_INCLUSION_MODE_FEATURE
              
              // Enable Inclusion mode button on gateway
              // #define MY_INCLUSION_BUTTON_FEATURE
              // Set inclusion mode duration (in seconds)
              #define MY_INCLUSION_MODE_DURATION 60
              // Digital pin used for inclusion mode button
              #define MY_INCLUSION_MODE_BUTTON_PIN  3
              
              
              // Set blinking period
              // #define MY_DEFAULT_LED_BLINK_PERIOD 300
              
              // Flash leds on rx/tx/err
              // Led pins used if blinking feature is enabled above
              #define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
              #define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
              #define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
              
              #if defined(MY_USE_UDP)
                #include <WiFiUdp.h>
              #endif
              
              #include <ESP8266WiFi.h>
              
              #include <MySensors.h>
              
              void setup() {
              }
              
              void presentation() {
                // Present locally attached sensors here
              }
              
              
              void loop() {
                // Send locally attached sensors data here
              }
              

              In MYSController on mudule i click INFO
              FW Update = no
              Bootloader = N/A

              may be problem in the Bootloader.hex?

              0_1484386859986_upload-c59e469e-e015-4099-88d8-607a7408a1da

              tekkaT Offline
              tekkaT Offline
              tekka
              Admin
              wrote on last edited by
              #26

              @Werwolfx Please also update the bootloader file.

              W 2 Replies Last reply
              0
              • tekkaT tekka

                @Werwolfx Please also update the bootloader file.

                W Offline
                W Offline
                Werwolfx
                wrote on last edited by
                #27

                @tekka said:

                @Werwolfx Please also update the bootloader file.

                I'll update more than once, but there is no effect.
                avrdude writes that everything is OK
                I do not know what to do = (

                avrdude: AVR device initialized and ready to accept instructions
                
                Reading | ################################################## | 100% 0.00s
                
                avrdude: Device signature = 0x1e950f (probably m328p)
                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: auto set sck period (because given equals null)
                avrdude: warning: cannot set sck period. please check for usbasp firmware update.
                avrdude: reading input file "/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex"
                avrdude: writing flash (32762 bytes):
                
                Writing | ################################################## | 100% 0.00s
                
                avrdude: 32762 bytes of flash written
                avrdude: verifying flash memory against /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
                avrdude: load data flash data from input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
                avrdude: input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex contains 32762 bytes
                avrdude: reading on-chip flash data:
                
                Reading | ################################################## | 100% 0.00s
                
                avrdude: verifying ...
                avrdude: 32762 bytes of flash verified
                avrdude: reading input file "0x0F"
                avrdude: writing lock (1 bytes):
                
                Writing | ################################################## | 100% 0.01s
                
                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.00s
                
                avrdude: verifying ...
                avrdude: 1 bytes of lock verified
                
                avrdude done.  Thank you.
                
                
                tekkaT 1 Reply Last reply
                0
                • W Werwolfx

                  @tekka said:

                  @Werwolfx Please also update the bootloader file.

                  I'll update more than once, but there is no effect.
                  avrdude writes that everything is OK
                  I do not know what to do = (

                  avrdude: AVR device initialized and ready to accept instructions
                  
                  Reading | ################################################## | 100% 0.00s
                  
                  avrdude: Device signature = 0x1e950f (probably m328p)
                  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: auto set sck period (because given equals null)
                  avrdude: warning: cannot set sck period. please check for usbasp firmware update.
                  avrdude: reading input file "/media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex"
                  avrdude: writing flash (32762 bytes):
                  
                  Writing | ################################################## | 100% 0.00s
                  
                  avrdude: 32762 bytes of flash written
                  avrdude: verifying flash memory against /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
                  avrdude: load data flash data from input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex:
                  avrdude: input file /media/werwolfx/SSDData/arduino-1.8.0/hardware/arduino/avr/bootloaders/MySensors/MYSBootloader.hex contains 32762 bytes
                  avrdude: reading on-chip flash data:
                  
                  Reading | ################################################## | 100% 0.00s
                  
                  avrdude: verifying ...
                  avrdude: 32762 bytes of flash verified
                  avrdude: reading input file "0x0F"
                  avrdude: writing lock (1 bytes):
                  
                  Writing | ################################################## | 100% 0.01s
                  
                  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.00s
                  
                  avrdude: verifying ...
                  avrdude: 1 bytes of lock verified
                  
                  avrdude done.  Thank you.
                  
                  
                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by
                  #28

                  @Werwolfx sorry, maybe I was not clear - please upload it here to the forum I will try to reproduce your setup.

                  1 Reply Last reply
                  0
                  • tekkaT tekka

                    @Werwolfx Please also update the bootloader file.

                    W Offline
                    W Offline
                    Werwolfx
                    wrote on last edited by Werwolfx
                    #29

                    @tekka If i ENABLE #define MY_OTA_FIRMWARE_FEATURE
                    i see ST_FIRMWARE_CONFIG_REQUEST in MYSCONTROLLER logs!!!
                    if i DISABLE //#define MY_OTA_FIRMWARE_FEATURE msg not in log

                    i not have external flash/

                    402	14.01.2017 21:29:28	TX	4 - Water Meter	N/A	C_INTERNAL	NO	I_REBOOT	0
                    403	14.01.2017 21:29:28	RX	4	1	C_REQ	NO	V_VAR1	
                    408	14.01.2017 21:29:34	RX	4	INTERNAL	C_STREAM	NO	ST_FIRMWARE_CONFIG_REQUEST	FFFFFFFF48044E100300
                    409	14.01.2017 21:29:34	TX	4	N/A	C_STREAM	NO	ST_FIRMWARE_CONFIG_RESPONSE	0A0001005000D446
                    410	14.01.2017 21:29:34	RX	4	INTERNAL	C_PRESENTATION	NO	S_ARDUINO_NODE	2.1.0
                    411	14.01.2017 21:29:34	RX	4	INTERNAL	C_INTERNAL	NO	I_CONFIG	0
                    412	14.01.2017 21:29:34	TX	4	INTERNAL	C_INTERNAL	NO	I_CONFIG	M
                    414	14.01.2017 21:29:34	RX	4 - Water Meter	INTERNAL	C_INTERNAL	NO	I_SKETCH_NAME	Water Meter
                    417	14.01.2017 21:29:34	RX	4 - Water Meter	INTERNAL	C_INTERNAL	NO	I_SKETCH_VERSION	1.1
                    419	14.01.2017 21:29:34	RX	4 - Water Meter	1 - S_WATER	C_PRESENTATION	NO	S_WATER	
                    

                    i load this HEX
                    load from Arduino IDE 1.8.0
                    0_1484418874223_MYSBootloader.hex

                    board.txt

                    proMYSBL.bootloader.tool=avrdude
                    proMYSBL.bootloader.low_fuses=0xFF
                    proMYSBL.bootloader.high_fuses=0xDA
                    proMYSBL.bootloader.extended_fuses=0xFE
                    proMYSBL.bootloader.unlock_bits=0x3F
                    proMYSBL.bootloader.lock_bits=0x0F
                    proMYSBL.bootloader.file=MySensors/MYSBootloader.hex

                    tekkaT 1 Reply Last reply
                    0
                    • W Werwolfx

                      @tekka If i ENABLE #define MY_OTA_FIRMWARE_FEATURE
                      i see ST_FIRMWARE_CONFIG_REQUEST in MYSCONTROLLER logs!!!
                      if i DISABLE //#define MY_OTA_FIRMWARE_FEATURE msg not in log

                      i not have external flash/

                      402	14.01.2017 21:29:28	TX	4 - Water Meter	N/A	C_INTERNAL	NO	I_REBOOT	0
                      403	14.01.2017 21:29:28	RX	4	1	C_REQ	NO	V_VAR1	
                      408	14.01.2017 21:29:34	RX	4	INTERNAL	C_STREAM	NO	ST_FIRMWARE_CONFIG_REQUEST	FFFFFFFF48044E100300
                      409	14.01.2017 21:29:34	TX	4	N/A	C_STREAM	NO	ST_FIRMWARE_CONFIG_RESPONSE	0A0001005000D446
                      410	14.01.2017 21:29:34	RX	4	INTERNAL	C_PRESENTATION	NO	S_ARDUINO_NODE	2.1.0
                      411	14.01.2017 21:29:34	RX	4	INTERNAL	C_INTERNAL	NO	I_CONFIG	0
                      412	14.01.2017 21:29:34	TX	4	INTERNAL	C_INTERNAL	NO	I_CONFIG	M
                      414	14.01.2017 21:29:34	RX	4 - Water Meter	INTERNAL	C_INTERNAL	NO	I_SKETCH_NAME	Water Meter
                      417	14.01.2017 21:29:34	RX	4 - Water Meter	INTERNAL	C_INTERNAL	NO	I_SKETCH_VERSION	1.1
                      419	14.01.2017 21:29:34	RX	4 - Water Meter	1 - S_WATER	C_PRESENTATION	NO	S_WATER	
                      

                      i load this HEX
                      load from Arduino IDE 1.8.0
                      0_1484418874223_MYSBootloader.hex

                      board.txt

                      proMYSBL.bootloader.tool=avrdude
                      proMYSBL.bootloader.low_fuses=0xFF
                      proMYSBL.bootloader.high_fuses=0xDA
                      proMYSBL.bootloader.extended_fuses=0xFE
                      proMYSBL.bootloader.unlock_bits=0x3F
                      proMYSBL.bootloader.lock_bits=0x0F
                      proMYSBL.bootloader.file=MySensors/MYSBootloader.hex

                      tekkaT Offline
                      tekkaT Offline
                      tekka
                      Admin
                      wrote on last edited by
                      #30

                      @Werwolfx Ok, seems like you also upload the sketch via USBasp thereby erasing/overwriting the bootloader. Try uploading the sketch via serial or OTA after flashing the bootloader.

                      1 Reply Last reply
                      1
                      • Mark SwiftM Offline
                        Mark SwiftM Offline
                        Mark Swift
                        wrote on last edited by Mark Swift
                        #31

                        @tekka am I correct in thinking the HEX found on Github can be used with all Arduino's? I noticed my old folder has one hex for 16, 8 and 1Mhz?

                        I'm using this board.txt

                        menu.cpu=Processor
                        
                        ##############################################################
                        
                        MYSBL13.name=MYS Bootloader - atmega328p
                        
                        MYSBL13.upload.tool=arduino:avrdude
                        MYSBL13.upload.protocol=arduino
                        MYSBL13.upload.maximum_size=30720
                        MYSBL13.upload.maximum_data_size=2048
                        
                        MYSBL13.bootloader.tool=arduino:avrdude
                        MYSBL13.bootloader.unlock_bits=0x3F
                        MYSBL13.bootloader.lock_bits=0x0F
                        
                        MYSBL13.build.mcu=atmega328p
                        MYSBL13.build.board=AVR_PRO
                        MYSBL13.build.core=arduino:arduino
                        MYSBL13.build.variant=arduino:standard
                        
                        ## -------------------------------------------------
                        
                        MYSBL13.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8)
                        MYSBL13.menu.cpu.16MHzatmega328.upload.speed=115200
                        MYSBL13.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
                        MYSBL13.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
                        MYSBL13.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
                        MYSBL13.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
                        MYSBL13.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
                        
                        MYSBL13.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8)
                        MYSBL13.menu.cpu.8MHzatmega328.upload.speed=38400
                        MYSBL13.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2
                        MYSBL13.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
                        MYSBL13.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
                        MYSBL13.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
                        MYSBL13.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
                        
                        MYSBL13.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8)
                        MYSBL13.menu.cpu.1MHzatmega328.upload.speed=9600
                        MYSBL13.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
                        MYSBL13.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
                        MYSBL13.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
                        MYSBL13.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader.hex
                        MYSBL13.menu.cpu.1MHzatmega328.build.f_cpu=1000000L```
                        1 Reply Last reply
                        0
                        • Mark SwiftM Offline
                          Mark SwiftM Offline
                          Mark Swift
                          wrote on last edited by
                          #32

                          I guess not... The old hex for 8Mhz works, but the one from this thread does not... :(

                          I'm trying to upload this to my Pro Mini, does anyone have an 8Mhz that works?

                          1 Reply Last reply
                          0
                          • Mark SwiftM Offline
                            Mark SwiftM Offline
                            Mark Swift
                            wrote on last edited by Mark Swift
                            #33

                            @tekka I've noticed some odd things with my nodes when running the bootloader.

                            To test I uploaded a simple count time sketch. When running the MYS bootloader the timer resets every 10 seconds, see:

                            Time: 999
                            Time: 2000
                            Time: 3000
                            Time: 4001
                            Time: 5001
                            Time: 6002
                            Time: 7004
                            Time: 8003
                            Time: 9005
                            Time: 0
                            Time: 999
                            Time: 2000
                            Time: 3000
                            Time: 4001
                            Time: 5001
                            Time: 6002
                            Time: 7004
                            Time: 8003
                            Time: 9005
                            Time: 0
                            

                            Using the stock Pro Mim 8Mhz 3.3v bootloader it works fine, any ideas?
                            Perhaps this is because I'm testing using a non-MySensors sketch?

                            tekkaT 1 Reply Last reply
                            0
                            • Mark SwiftM Mark Swift

                              @tekka I've noticed some odd things with my nodes when running the bootloader.

                              To test I uploaded a simple count time sketch. When running the MYS bootloader the timer resets every 10 seconds, see:

                              Time: 999
                              Time: 2000
                              Time: 3000
                              Time: 4001
                              Time: 5001
                              Time: 6002
                              Time: 7004
                              Time: 8003
                              Time: 9005
                              Time: 0
                              Time: 999
                              Time: 2000
                              Time: 3000
                              Time: 4001
                              Time: 5001
                              Time: 6002
                              Time: 7004
                              Time: 8003
                              Time: 9005
                              Time: 0
                              

                              Using the stock Pro Mim 8Mhz 3.3v bootloader it works fine, any ideas?
                              Perhaps this is because I'm testing using a non-MySensors sketch?

                              tekkaT Offline
                              tekkaT Offline
                              tekka
                              Admin
                              wrote on last edited by tekka
                              #34

                              @Mark-Swift yeah, this is intended behavior: the watchdog kicks in after ~8s, so either you reset it in loop() or disable it in setup().

                              1 Reply Last reply
                              0
                              • rmtuckerR Offline
                                rmtuckerR Offline
                                rmtucker
                                wrote on last edited by
                                #35

                                Is there a version or branch of this for the rfm69?

                                tekkaT 1 Reply Last reply
                                0
                                • rmtuckerR rmtucker

                                  Is there a version or branch of this for the rfm69?

                                  tekkaT Offline
                                  tekkaT Offline
                                  tekka
                                  Admin
                                  wrote on last edited by
                                  #36

                                  @rmtucker No, but everybody is welcome to contribute and enhance the functionality.

                                  1 Reply Last reply
                                  0
                                  • Mark SwiftM Offline
                                    Mark SwiftM Offline
                                    Mark Swift
                                    wrote on last edited by
                                    #37

                                    @tekka, I'm trying to compile the HEX using OSX. I have installed avr-gcc with homebrew but I get

                                    rm *.o
                                    rm: *.o: No such file or directory
                                    make: [clean] Error 1 (ignored)
                                    rm *.elf
                                    rm: *.elf: No such file or directory
                                    make: [clean] Error 1 (ignored)
                                    rm *.hex
                                    rm: *.hex: No such file or directory
                                    make: [clean] Error 1 (ignored)
                                    "avr-gcc" -funsigned-char -funsigned-bitfields -DF_CPU=16000000L -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I MYSBootloader.c -o MYSBootloader.o
                                    avr-gcc: fatal error: no input files
                                    compilation terminated.
                                    make: *** [MYSBootloader.o] Error 1

                                    When issueing the Make command, can you help, any suggestions?

                                    tekkaT 1 Reply Last reply
                                    0
                                    • Mark SwiftM Mark Swift

                                      @tekka, I'm trying to compile the HEX using OSX. I have installed avr-gcc with homebrew but I get

                                      rm *.o
                                      rm: *.o: No such file or directory
                                      make: [clean] Error 1 (ignored)
                                      rm *.elf
                                      rm: *.elf: No such file or directory
                                      make: [clean] Error 1 (ignored)
                                      rm *.hex
                                      rm: *.hex: No such file or directory
                                      make: [clean] Error 1 (ignored)
                                      "avr-gcc" -funsigned-char -funsigned-bitfields -DF_CPU=16000000L -Os -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I MYSBootloader.c -o MYSBootloader.o
                                      avr-gcc: fatal error: no input files
                                      compilation terminated.
                                      make: *** [MYSBootloader.o] Error 1

                                      When issueing the Make command, can you help, any suggestions?

                                      tekkaT Offline
                                      tekkaT Offline
                                      tekka
                                      Admin
                                      wrote on last edited by
                                      #38

                                      @Mark-Swift I haven't tested that with OSX - maybe somebody can help here?

                                      ? 1 Reply Last reply
                                      0
                                      • Mark SwiftM Offline
                                        Mark SwiftM Offline
                                        Mark Swift
                                        wrote on last edited by
                                        #39

                                        @tekka, started a windows VM, run via MinGW and got this when running makefile, does it look okay?

                                        C:\MySensorsBootloaderRF24-development>mingw32-make.exe
                                        rm *.o
                                        process_begin: CreateProcess(NULL, rm *.o, ...) failed.
                                        make (e=2): The system cannot find the file specified.
                                        Makefile:40: recipe for target 'clean' failed
                                        mingw32-make.exe: [clean] Error 2 (ignored)
                                        rm *.elf
                                        process_begin: CreateProcess(NULL, rm *.elf, ...) failed.
                                        make (e=2): The system cannot find the file specified.
                                        Makefile:40: recipe for target 'clean' failed
                                        mingw32-make.exe: [clean] Error 2 (ignored)
                                        rm *.hex
                                        process_begin: CreateProcess(NULL, rm *.hex, ...) failed.
                                        make (e=2): The system cannot find the file specified.
                                        Makefile:40: recipe for target 'clean' failed
                                        mingw32-make.exe: [clean] Error 2 (ignored)
                                        "C:/Arduino/hardware/tools/avr/bin/avr-gcc" -funsigned-char -funsigned-bitfields
                                         -DF_CPU=16000000L -Os -ffunction-sections -fdata-sections -fpack-struct -fshort
                                        -enums -mrelax -Wall -Wextra -Wundef -pedantic -mmcu=atmega328p -c -std=gnu99 -M
                                        D -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o"  -IC:/Ardu
                                        ino/hardware/tools/avr/avr/include/avr MYSBootloader.c -o MYSBootloader.o
                                        In file included from Core.h:40:0,
                                                         from MYSBootloader.c:69:
                                        HW.h:51:2: warning: #warning is a GCC extension
                                         #warning BAUD_RATE error greater than 2%
                                          ^
                                        HW.h:51:2: warning: #warning BAUD_RATE error greater than 2% [-Wcpp]
                                        In file included from Core.h:42:0,
                                                         from MYSBootloader.c:69:
                                        MyMessage.h:292:3: warning: ISO C99 doesn't support unnamed structs/unions [-Wpe
                                        dantic]
                                          };
                                           ^
                                        "C:/Arduino/hardware/tools/avr/bin/avr-gcc" -nostartfiles -Wl,-s -Wl,-static -Wl
                                        ,-Map=".map" -Wl,--start-group -Wl,--end-group -Wl,--gc-sections -mrelax -Wl,-se
                                        ction-start=.text=0x7800 -mmcu=atmega328p   -o MYSBootloader.elf MYSBootloader.o
                                         -lm
                                        "C:/Arduino/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom MYSBootloader
                                        .elf MYSBootloader.hex
                                        "C:/Arduino/hardware/tools/avr/bin/avr-size" MYSBootloader.elf
                                           text    data     bss     dec     hex filename
                                           2036       6      72    2114     842 MYSBootloader.elf
                                        
                                        tekkaT 1 Reply Last reply
                                        0
                                        • Mark SwiftM Offline
                                          Mark SwiftM Offline
                                          Mark Swift
                                          wrote on last edited by
                                          #40

                                          @tekka Just wanted to check if the above log looks okay, currently rolling the bootloader out to 14 nodes (painful process!) and wanted to check if it looks okay before I do.

                                          I'm also using this board.txt, I made a separate entry for my Uno's, do they all look okay? I basically used the fuses from the standard Arduino boards.txt with the change of 0x05 to 0x06 for the BOD? I noticed in the makefile that you can specify the fuses, do I need to compile a bootloader for each device with the exact fuses, or will one bootloader for 16 / 8 / 1Mhz suffice?

                                          Thank you very much in advance, the bootloader is amazing work.

                                          menu.cpu=Processor
                                          
                                          ##############################################################
                                          
                                          pro.name=MySensors Bootloader for Pro Mini
                                          
                                          pro.upload.tool=arduino:avrdude
                                          pro.upload.protocol=arduino
                                          pro.upload.maximum_size=30720
                                          pro.upload.maximum_data_size=2048
                                          
                                          pro.bootloader.tool=arduino:avrdude
                                          pro.bootloader.unlock_bits=0x3F
                                          pro.bootloader.lock_bits=0x0F
                                          
                                          pro.build.mcu=atmega328p
                                          pro.build.board=AVR_PRO
                                          pro.build.core=arduino:arduino
                                          pro.build.variant=arduino:standard
                                          
                                          ## Arduino with MYSBootloader Beta 2
                                          ## -------------------------------------------------
                                          
                                          ## pro.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 2
                                          ## pro.menu.cpu.16MHzatmega328.upload.speed=115200
                                          ## pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
                                          ## pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
                                          ## pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
                                          ## pro.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_16Mhz.hex
                                          ## pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
                                          
                                          ## pro.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8) 1.3 Beta 2
                                          ## pro.menu.cpu.8MHzatmega328.upload.speed=38400
                                          ## pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xE2
                                          ## pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
                                          ## pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
                                          ## pro.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_8Mhz.hex
                                          ## pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
                                          
                                          ## pro.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8) 1.3 Beta 2
                                          ## pro.menu.cpu.1MHzatmega328.upload.speed=9600
                                          ## pro.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
                                          ## pro.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
                                          ## pro.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
                                          ## pro.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_1Mhz.hex
                                          ## pro.menu.cpu.1MHzatmega328.build.f_cpu=1000000L
                                          
                                          ## Arduino with MYSBootloader Beta 3
                                          ## -------------------------------------------------
                                          
                                          pro.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 3
                                          pro.menu.cpu.16MHzatmega328.upload.speed=115200
                                          pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
                                          pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
                                          pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
                                          pro.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_16Mhz.hex
                                          pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
                                          
                                          pro.menu.cpu.8MHzatmega328=ATmega328 8MHz (RC, BOD1V8) 1.3 Beta 3
                                          pro.menu.cpu.8MHzatmega328.upload.speed=38400
                                          pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF
                                          pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA
                                          pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x06
                                          pro.menu.cpu.8MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_8Mhz.hex
                                          pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L
                                          
                                          pro.menu.cpu.1MHzatmega328=ATmega328 1MHz (RC/8, BOD1V8) 1.3 Beta 3
                                          pro.menu.cpu.1MHzatmega328.upload.speed=9600
                                          pro.menu.cpu.1MHzatmega328.bootloader.low_fuses=0x62
                                          pro.menu.cpu.1MHzatmega328.bootloader.high_fuses=0xDA
                                          pro.menu.cpu.1MHzatmega328.bootloader.extended_fuses=0x06
                                          pro.menu.cpu.1MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_1Mhz.hex
                                          pro.menu.cpu.1MHzatmega328.build.f_cpu=1000000L
                                          
                                          ##############################################################
                                          ##############################################################
                                          ##############################################################
                                          ##############################################################
                                          ##############################################################
                                          
                                          menu.cpu=Processor
                                          
                                          ##############################################################
                                          
                                          uno.name=MySensors Bootloader for Uno
                                          
                                          uno.upload.tool=arduino:avrdude
                                          uno.upload.protocol=arduino
                                          uno.upload.maximum_size=32256
                                          uno.upload.maximum_data_size=2048
                                          
                                          uno.bootloader.tool=arduino:avrdude
                                          uno.bootloader.unlock_bits=0x3F
                                          uno.bootloader.lock_bits=0x0F
                                          
                                          uno.build.mcu=atmega328p
                                          uno.build.board=AVR_UNO
                                          uno.build.core=arduino:arduino
                                          uno.build.variant=arduino:standard
                                          
                                          ## Arduino with MYSBootloader Beta 2
                                          ## -------------------------------------------------
                                          
                                          ## uno.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 2
                                          ## uno.menu.cpu.16MHzatmega328.upload.speed=115200
                                          ## uno.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
                                          ## uno.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
                                          ## uno.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
                                          ## uno.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B2_16Mhz.hex
                                          ## uno.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
                                          
                                          ## Arduino with MYSBootloader Beta 3
                                          ## -------------------------------------------------
                                          
                                          uno.menu.cpu.16MHzatmega328=ATmega328 16MHz (XTAL, BOD1V8) 1.3 Beta 3
                                          uno.menu.cpu.16MHzatmega328.upload.speed=115200
                                          uno.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF
                                          uno.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA
                                          uno.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x06
                                          uno.menu.cpu.16MHzatmega328.bootloader.file=MYSBootloader/MYSBootloader_B3_16Mhz.hex
                                          uno.menu.cpu.16MHzatmega328.build.f_cpu=16000000L
                                          
                                          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