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. Troubleshooting
  3. REQUEST: Tutorial/Step-by-step to install MySys bootloader

REQUEST: Tutorial/Step-by-step to install MySys bootloader

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 3.2k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    drock1985
    wrote on last edited by
    #1

    Hi,

    Just throwing out a general request. Could someone please explain in a poke-yoke fashion way to flash the MySys bootloader to an Arduino (Uno/Nano/Micro/etc) to enable OTA updates and full functionality of the program? The reason I ask is I am completely new to firmware flashing on an Arduino; exception being using one as an ISP once to reflash the Arduino Bootloader (is that possible with MySys?)

    Thanks,

    My Projects
    2 Door Chime Sensor
    Washing Machine Monitor

    1 Reply Last reply
    1
    • N Offline
      N Offline
      niccodemi
      wrote on last edited by niccodemi
      #2

      Check this instructable.

      You can use Arduino as ISP to burn Mysbootloader.

      1 Reply Last reply
      0
      • tekkaT Offline
        tekkaT Offline
        tekka
        Admin
        wrote on last edited by
        #3

        And here the instructions for MYSBootloader/MYSController.

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

          Hi @niccodemi and @tekka , appreciate the links a lot.

          I think I successfully flashed the MySysbootloader to my Arduino Nano; attempting now to perform a firmware flash and see how this goes.

          My Projects
          2 Door Chime Sensor
          Washing Machine Monitor

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

            Hmmm...getting a couple of errors in the Arduino IDE...

            C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM11 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x06:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xF7: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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
            
                     Using Port                    : COM11
                     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.05s
            
            avrdude: Device signature = 0x1e950f
            avrdude: erasing chip
            avrdude: reading input file "0x3F"
            avrdude: writing lock (1 bytes):
            
            Writing | ################################################## | 100% 0.02s
            
            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.02s
            
            avrdude: verifying ...
            avrdude: 1 bytes of lock verified
            avrdude: reading input file "0x06"
            avrdude: writing efuse (1 bytes):
            
            Writing | ################################################## | 100% 0.02s
            
            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.02s
            
            avrdude: verifying ...
            avrdude: 1 bytes of efuse verified
            avrdude: reading input file "0xDA"
            avrdude: writing hfuse (1 bytes):
            
            Writing | ################################################## | 100% 0.02s
            
            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.02s
            
            avrdude: verifying ...
            avrdude: 1 bytes of hfuse verified
            avrdude: reading input file "0xF7"
            avrdude: writing lfuse (1 bytes):
            
            Writing | ################################################## | 100% 0.02s
            
            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.02s
            
            avrdude: verifying ...
            avrdude: 1 bytes of lfuse verified
            
            avrdude done.  Thank you.
            
            C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM11 -b19200 -Uflash:w:F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock: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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
            
                     Using Port                    : COM11
                     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.05s
            
            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 "F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex"
            avrdude: writing flash (32722 bytes):
            
            Writing | ################################################## | 100% 0.00s
            
            avrdude: 32722 bytes of flash written
            avrdude: verifying flash memory against F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:
            avrdude: load data flash data from input file F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:
            avrdude: input file F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex contains 32722 bytes
            avrdude: reading on-chip flash data:
            
            Reading | ################################################## | 100% 0.00s
            
            avrdude: verifying ...
            avrdude: 32722 bytes of flash verified
            avrdude: reading input file "0xFF"
            avrdude: writing lock (1 bytes):
            
            Writing |  ***failed;  
            ################################################## | 100% 0.13s
            
            avrdude: 1 bytes of lock written
            avrdude: verifying lock memory against 0xFF:
            avrdude: load data lock data from input file 0xFF:
            avrdude: input file 0xFF contains 1 bytes
            avrdude: reading on-chip lock data:
            
            Reading | ################################################## | 100% 0.02s
            
            avrdude: verifying ...
            avrdude: verification error, first mismatch at byte 0x0000
                     0x3f != 0xff
            avrdude: verification error; content mismatch
            
            avrdude done.  Thank you.
            
            Error while burning bootloader.
            no protocol: 
            

            My Projects
            2 Door Chime Sensor
            Washing Machine Monitor

            N 1 Reply Last reply
            0
            • D drock1985

              Hmmm...getting a couple of errors in the Arduino IDE...

              C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM11 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x06:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xF7: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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
              
                       Using Port                    : COM11
                       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.05s
              
              avrdude: Device signature = 0x1e950f
              avrdude: erasing chip
              avrdude: reading input file "0x3F"
              avrdude: writing lock (1 bytes):
              
              Writing | ################################################## | 100% 0.02s
              
              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.02s
              
              avrdude: verifying ...
              avrdude: 1 bytes of lock verified
              avrdude: reading input file "0x06"
              avrdude: writing efuse (1 bytes):
              
              Writing | ################################################## | 100% 0.02s
              
              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.02s
              
              avrdude: verifying ...
              avrdude: 1 bytes of efuse verified
              avrdude: reading input file "0xDA"
              avrdude: writing hfuse (1 bytes):
              
              Writing | ################################################## | 100% 0.02s
              
              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.02s
              
              avrdude: verifying ...
              avrdude: 1 bytes of hfuse verified
              avrdude: reading input file "0xF7"
              avrdude: writing lfuse (1 bytes):
              
              Writing | ################################################## | 100% 0.02s
              
              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.02s
              
              avrdude: verifying ...
              avrdude: 1 bytes of lfuse verified
              
              avrdude done.  Thank you.
              
              C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM11 -b19200 -Uflash:w:F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock: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:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
              
                       Using Port                    : COM11
                       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.05s
              
              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 "F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex"
              avrdude: writing flash (32722 bytes):
              
              Writing | ################################################## | 100% 0.00s
              
              avrdude: 32722 bytes of flash written
              avrdude: verifying flash memory against F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:
              avrdude: load data flash data from input file F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex:
              avrdude: input file F:\Users.New\Derrick\Documents\Arduino\hardware\MySensors\avr/bootloaders/MySensors/MYSBootloader.hex contains 32722 bytes
              avrdude: reading on-chip flash data:
              
              Reading | ################################################## | 100% 0.00s
              
              avrdude: verifying ...
              avrdude: 32722 bytes of flash verified
              avrdude: reading input file "0xFF"
              avrdude: writing lock (1 bytes):
              
              Writing |  ***failed;  
              ################################################## | 100% 0.13s
              
              avrdude: 1 bytes of lock written
              avrdude: verifying lock memory against 0xFF:
              avrdude: load data lock data from input file 0xFF:
              avrdude: input file 0xFF contains 1 bytes
              avrdude: reading on-chip lock data:
              
              Reading | ################################################## | 100% 0.02s
              
              avrdude: verifying ...
              avrdude: verification error, first mismatch at byte 0x0000
                       0x3f != 0xff
              avrdude: verification error; content mismatch
              
              avrdude done.  Thank you.
              
              Error while burning bootloader.
              no protocol: 
              
              N Offline
              N Offline
              niccodemi
              wrote on last edited by
              #6

              @drock1985 once you flashed node with mysbootloader you cannot use Arduino IDE to upload sketches anymore. You have to do it via Myscontroller app (OTA).

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


              19

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


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

              • Don't have an account? Register

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