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. Controllers
  3. Windows GUI/Controller for MySensors

Windows GUI/Controller for MySensors

Scheduled Pinned Locked Moved Controllers
myscontrollermysbootloader
486 Posts 101 Posters 348.2k Views 73 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.
  • rvendrameR Offline
    rvendrameR Offline
    rvendrame
    Hero Member
    wrote on last edited by
    #155

    @scalz, thanks for the reply. BTW, did you see this?

    Well, with standard bootloader (working), my pro-minis have fuses as FF DA 05 (Low/High/Ext).

    The MYSBootloader.hex boot loader (not working) is set in boards.txt with F7 DA 06.

    I have played with all possible combinations (including changing values in boards.txt), no luck.

    Maybe I have to compile my own version of MYSBootloader? Sorry, this is all new to me...

    Thx again

    Home Assistant / Vera Plus UI7
    ESP8266 GW + mySensors 2.3.2
    Alexa / Google Home

    1 Reply Last reply
    0
    • scalzS Offline
      scalzS Offline
      scalz
      Hardware Contributor
      wrote on last edited by
      #156

      @rvendrame: Hi I don't have a mac. But I use a similar tool for win (avrdudess). but your link seems ok.
      You don't have to recompile MYSBootloader. MYSBootloader needs to match fuses. If not, it will blink like you have seen. Do you have an usbasp? very useful. So you need to burn fuses F7 DA 06. Did you try that? And then burn bootloader.
      Be careful when burning fuses, don't try combination or you will semi-brick atmel chip (meaning you could not be able to reprogram it normal spi way). Never enable RSTDISBL and DWEN bits in fuse. You can see all of this here http://www.engbedded.com/fusecalc/ very useful too!

      If in future you want to test new ota, I have made a small breadboard to test it. You can find it here : https://oshpark.com/profiles/scalz You will need to solder eeprom and atsha.

      1 Reply Last reply
      0
      • rvendrameR Offline
        rvendrameR Offline
        rvendrame
        Hero Member
        wrote on last edited by
        #157

        @scalz, yes I have tried to burn fuses F7 DA 06, and then MYSBootloader, no joy.

        Maybe the main diference is the low fuse F7 ( = Ext.Clock full-swing Crystal ) , as my pro-minis run fine with FF ( = Ext. Crystal Osc 8.MHz ) ?

        Home Assistant / Vera Plus UI7
        ESP8266 GW + mySensors 2.3.2
        Alexa / Google Home

        1 Reply Last reply
        0
        • rvendrameR Offline
          rvendrameR Offline
          rvendrame
          Hero Member
          wrote on last edited by
          #158

          @scalz , one more thing: What speed did you set? The AVRFuses seems to work on at 19200 bps --- Could this be a problem?
          And moreover --- You mentioned that extra eprom is not required --- But what about atsha? I don't have that either... (just pro-mini + radio ). Is it required for OTA?

          Home Assistant / Vera Plus UI7
          ESP8266 GW + mySensors 2.3.2
          Alexa / Google Home

          1 Reply Last reply
          0
          • scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by
            #159

            @rvendrame: I am not at home at this moment. but I will check. baudrate is already set up in .hex and in boards.txt . So I think it should work..strange thing. I don't know MYSBootloader so. maybe grandmaster @Tekka have an idea:grinning: maybe something has changed. I don't know.

            extra eeprom is for new ota in mysensors 1.5
            ATSHA is optional, it is just on the board too. It is for authentication in 1.5 too.

            1 Reply Last reply
            0
            • rvendrameR Offline
              rvendrameR Offline
              rvendrame
              Hero Member
              wrote on last edited by
              #160

              @scalz said:

              extra eeprom is for new ota in mysensors 1.5

              I'm using 1.5 --- So do I need the extra eprom ?

              Home Assistant / Vera Plus UI7
              ESP8266 GW + mySensors 2.3.2
              Alexa / Google Home

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by
                #161

                no. you don't need it.
                two ota bootloaders are available for mysensors. MYSBootloader and Dualoptiboot. MYSBootloader does not require extra eeprom. Dualoptiboot needs it. sorry for confusion:smirk:

                1 Reply Last reply
                0
                • rvendrameR Offline
                  rvendrameR Offline
                  rvendrame
                  Hero Member
                  wrote on last edited by rvendrame
                  #162

                  @scalz said:

                  MYSBootloader does not require extra eeprom.

                  No problem, that's clear. Any other idea? The only thing I could progress was to catch the firmware upload in verbose mode (see bellow, it looks ok to me).

                  One question: Is it okay to have "Boot Flash size = 1024 words" , and the .hex file having ~32Kb ? More strange is that file has 5.676 bytes when I check it via Mac finder.

                  avrdude: input file /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex contains 32722 bytes    <<<<<<< ????? 
                  
                  
                  /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -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 14 2015 at 16:30:25
                           Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                           Copyright (c) 2007-2009 Joerg Wunsch
                  
                           System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                           User configuration file is "/Users/i007897/.avrduderc"
                           User configuration file does not exist or is not a regular file, skipping
                  
                           Using Port                    : /dev/cu.usbmodem1421
                           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.06s
                  
                  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.06s
                  
                  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
                  
                  Fuse burn: 
                  
                  avrdude done.  Thank you.
                  
                  
                  /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -b19200 -Uflash:w:/Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock:w:0x0F:m 
                  
                  avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
                           Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                           Copyright (c) 2007-2009 Joerg Wunsch
                  
                           System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                           User configuration file is "/Users/i007897/.avrduderc"
                           User configuration file does not exist or is not a regular file, skipping
                  
                           Using Port                    : /dev/cu.usbmodem1421
                           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 "/Users/i007897/Dropbox/Bench/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 /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:
                  avrdude: load data flash data from input file /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:
                  avrdude: input file /Users/i007897/Dropbox/Bench/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 "0x0F"
                  avrdude: writing lock (1 bytes):
                  
                  Writing | ################################################## | 100% 0.05s
                  
                  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.02s
                  
                  avrdude: verifying ...
                  avrdude: 1 bytes of lock verified
                  
                  avrdude done.  Thank you.
                  
                  
                  

                  And

                  Home Assistant / Vera Plus UI7
                  ESP8266 GW + mySensors 2.3.2
                  Alexa / Google Home

                  tekkaT 1 Reply Last reply
                  0
                  • rvendrameR rvendrame

                    @scalz said:

                    MYSBootloader does not require extra eeprom.

                    No problem, that's clear. Any other idea? The only thing I could progress was to catch the firmware upload in verbose mode (see bellow, it looks ok to me).

                    One question: Is it okay to have "Boot Flash size = 1024 words" , and the .hex file having ~32Kb ? More strange is that file has 5.676 bytes when I check it via Mac finder.

                    avrdude: input file /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex contains 32722 bytes    <<<<<<< ????? 
                    
                    
                    /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -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 14 2015 at 16:30:25
                             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                             Copyright (c) 2007-2009 Joerg Wunsch
                    
                             System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                             User configuration file is "/Users/i007897/.avrduderc"
                             User configuration file does not exist or is not a regular file, skipping
                    
                             Using Port                    : /dev/cu.usbmodem1421
                             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.06s
                    
                    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.06s
                    
                    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
                    
                    Fuse burn: 
                    
                    avrdude done.  Thank you.
                    
                    
                    /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -b19200 -Uflash:w:/Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:i -Ulock:w:0x0F:m 
                    
                    avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
                             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                             Copyright (c) 2007-2009 Joerg Wunsch
                    
                             System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                             User configuration file is "/Users/i007897/.avrduderc"
                             User configuration file does not exist or is not a regular file, skipping
                    
                             Using Port                    : /dev/cu.usbmodem1421
                             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 "/Users/i007897/Dropbox/Bench/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 /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:
                    avrdude: load data flash data from input file /Users/i007897/Dropbox/Bench/Arduino/hardware/MySensors/avr/bootloaders/MySensors/MYSBootloader.hex:
                    avrdude: input file /Users/i007897/Dropbox/Bench/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 "0x0F"
                    avrdude: writing lock (1 bytes):
                    
                    Writing | ################################################## | 100% 0.05s
                    
                    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.02s
                    
                    avrdude: verifying ...
                    avrdude: 1 bytes of lock verified
                    
                    avrdude done.  Thank you.
                    
                    
                    

                    And

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

                    @rvendrame weird...the .hex file size is 5676 bytes (this is the intel hex format and MYSBootloader is under 2kb, so 1024 words are ok). The 32722 bytes are the cause of the problem...
                    You mentioned that burning the standard bootloader revives your Arduino - can you post the verbose mode output as comparison?

                    1 Reply Last reply
                    0
                    • rvendrameR Offline
                      rvendrameR Offline
                      rvendrame
                      Hero Member
                      wrote on last edited by
                      #164

                      @tekka said:

                      an you post the verbose mode output as comparison?

                      Sure, here it is. Very similar (including the size of .hex file)... strange...

                      /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m 
                      
                      avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
                               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                               Copyright (c) 2007-2009 Joerg Wunsch
                      
                               System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                               User configuration file is "/Users/i007897/.avrduderc"
                               User configuration file does not exist or is not a regular file, skipping
                      
                               Using Port                    : /dev/cu.usbmodem1421
                               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 "0x05"
                      avrdude: writing efuse (1 bytes):
                      
                      Writing | ################################################## | 100% 0.06s
                      
                      avrdude: 1 bytes of efuse written
                      avrdude: verifying efuse memory against 0x05:
                      avrdude: load data efuse data from input file 0x05:
                      avrdude: input file 0x05 contains 1 bytes
                      avrdude: reading on-chip efuse data:
                      
                      Reading | ################################################## | 100% 0.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 "0xFF"
                      avrdude: writing lfuse (1 bytes):
                      
                      Writing | ################################################## | 100% 0.06s
                      
                      avrdude: 1 bytes of lfuse written
                      avrdude: verifying lfuse memory against 0xFF:
                      avrdude: load data lfuse data from input file 0xFF:
                      avrdude: input file 0xFF contains 1 bytes
                      avrdude: reading on-chip lfuse data:
                      
                      Reading | ################################################## | 100% 0.02s
                      
                      avrdude: verifying ...
                      avrdude: 1 bytes of lfuse verified
                      
                      avrdude done.  Thank you.
                      
                      /Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1421 -b19200 -Uflash:w:/Applications/Arduino 1.6.4.app/Contents/Java/hardware/arduino/avr/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:i -Ulock:w:0x0F:m 
                      
                      avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
                               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                               Copyright (c) 2007-2009 Joerg Wunsch
                      
                               System wide configuration file is "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
                               User configuration file is "/Users/i007897/.avrduderc"
                               User configuration file does not exist or is not a regular file, skipping
                      
                               Using Port                    : /dev/cu.usbmodem1421
                               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 "/Applications/Arduino 1.6.4.app/Contents/Java/hardware/arduino/avr/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex"
                      avrdude: writing flash (32670 bytes):
                      
                      Writing | ################################################## | 100% 0.00s
                      
                      avrdude: 32670 bytes of flash written
                      avrdude: verifying flash memory against /Applications/Arduino 1.6.4.app/Contents/Java/hardware/arduino/avr/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:
                      avrdude: load data flash data from input file /Applications/Arduino 1.6.4.app/Contents/Java/hardware/arduino/avr/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex:
                      avrdude: input file /Applications/Arduino 1.6.4.app/Contents/Java/hardware/arduino/avr/bootloaders/atmega/ATmegaBOOT_168_atmega328.hex contains 32670 bytes
                      avrdude: reading on-chip flash data:
                      
                      Reading | ################################################## | 100% 0.00s
                      
                      avrdude: verifying ...
                      avrdude: 32670 bytes of flash verified
                      avrdude: reading input file "0x0F"
                      avrdude: writing lock (1 bytes):
                      
                      Writing | ################################################## | 100% 0.05s
                      
                      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.02s
                      
                      avrdude: verifying ...
                      avrdude: 1 bytes of lock verified
                      
                      avrdude done.  Thank you.
                      

                      Home Assistant / Vera Plus UI7
                      ESP8266 GW + mySensors 2.3.2
                      Alexa / Google Home

                      1 Reply Last reply
                      0
                      • scalzS Offline
                        scalzS Offline
                        scalz
                        Hardware Contributor
                        wrote on last edited by
                        #165

                        @rvendrame: when you try to upload a sketch, do you use ftdi? because I think you can't upload with ftdi in MYSBootloader. just ota. I looked quickly at the code. Am I right @tekka ? If you want ota+ftdi options, you must use dualoptiboot.

                        tekkaT 1 Reply Last reply
                        0
                        • scalzS scalz

                          @rvendrame: when you try to upload a sketch, do you use ftdi? because I think you can't upload with ftdi in MYSBootloader. just ota. I looked quickly at the code. Am I right @tekka ? If you want ota+ftdi options, you must use dualoptiboot.

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

                          @scalz: for flashing bootloaders you have to communicate to the MCU via SPI (e.g. via USBasp, ArduinoISP, Atmel STK500, etc.) but not the usual (ftdi) serial interface.
                          MYSBootloader 1.1 supports only OTA sketch uploads (at the moment), this is right - but not related to the issue of @rvendrame

                          1 Reply Last reply
                          0
                          • rvendrameR Offline
                            rvendrameR Offline
                            rvendrame
                            Hero Member
                            wrote on last edited by rvendrame
                            #167

                            @scalz , @tekka, I'm using "Arduino as ISP" to burn the bootloader. I have my arduino Uno connected to mac via USB, and running on it the "ArduinoISP" sketch delivered with IDE.

                            The pins VCC, GND, 11, 12, 13 from Uno are connected to same pins of the pro-mini (the one being programmed). Pin 10 from uno goes to pro-mini's reset pin.

                            In summary, this scenario. It works perfectly for the standard pro-mini bootloader. I had success with both 3.3V and 5V versions.

                            To upload my sketches: I understand that I have to compile it, move the generated .hex file to the MYSController "Firmware" folder, and load it via 'Node -> Assign FW' . I did it this part with some sense benders that I have here, and it worked perfectly --- That made me thinking in re-flashing all pro-minis that I have with MYSbootloader ;-)

                            The problem is that my pro-minis get 'bricked' after burning the MYSbootloader --- pin led flashes randomly , no serial-monitor, I don't think they are really running.

                            Just to be 100% sure --- I just need the pro-mini itself connected during the "Tools -> Burn bootloader" ? No radio, no extra eprom, no atsha, ... right?

                            I tried to connect the radio to pro-mini after I burned the MYS, as a last desperated try (who know it would 'wake up' ). But no joy ;-)

                            Thx!

                            Home Assistant / Vera Plus UI7
                            ESP8266 GW + mySensors 2.3.2
                            Alexa / Google Home

                            1 Reply Last reply
                            0
                            • rvendrameR Offline
                              rvendrameR Offline
                              rvendrame
                              Hero Member
                              wrote on last edited by
                              #168

                              @scalz, @tekka, maybe if I re-compile the MYSbootloader to match my current fuses? I was trying to find a how-to, but could not find anything related. Perhaps you can give me some guidance on that too?

                              Home Assistant / Vera Plus UI7
                              ESP8266 GW + mySensors 2.3.2
                              Alexa / Google Home

                              tekkaT 1 Reply Last reply
                              0
                              • F Offline
                                F Offline
                                f1dev
                                wrote on last edited by
                                #169

                                Very interesting, I´m having the exact issues with my pro minis.. It would be very helpful with a " how-to" to compile the Mysbootloader for pro minis 3.3V 8mhz.

                                Kindly

                                1 Reply Last reply
                                0
                                • rvendrameR Offline
                                  rvendrameR Offline
                                  rvendrame
                                  Hero Member
                                  wrote on last edited by
                                  #170

                                  @f1dev, I'm just trying to thinking 'out of the box'. I really don't know why the MYSBootloader doesn't work (while the original arduino bootloader does).

                                  @scalz, @tekka, looking at MYSBootloader makefile at github, I noticed you are using

                                  ISP_PORT = com5
                                  ISP_SPEED = 115200
                                  ISP_PROTOCOL = stk500v2
                                  ISP_MCU = m328p 
                                  
                                  

                                  Well, my 'Arduino as ISP' only work as 'stk500v1' and 19200 bps --- Any other combination causes the "Yikes! invalid signature found" in avrdude, or no response at all (time-out). Could be that a different avr itself would introduce "strange bytes" during bootloader burning?

                                  Home Assistant / Vera Plus UI7
                                  ESP8266 GW + mySensors 2.3.2
                                  Alexa / Google Home

                                  tekkaT 1 Reply Last reply
                                  0
                                  • rvendrameR rvendrame

                                    @scalz, @tekka, maybe if I re-compile the MYSbootloader to match my current fuses? I was trying to find a how-to, but could not find anything related. Perhaps you can give me some guidance on that too?

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

                                    @rvendrame let me try some things here - can you make sure, that the MYSBootloader your are trying to flash is the one from the library and/or MYSController folder (maybe you can upload it here)?
                                    Importantly, there is no need to re-compile MYSBootloader as it has been successfully tested down to 3.3V and 125kHz pro-minis (!). Can you please update your Arduino IDE to 1.6.5 so that we both run the same version?

                                    1 Reply Last reply
                                    0
                                    • rvendrameR rvendrame

                                      @f1dev, I'm just trying to thinking 'out of the box'. I really don't know why the MYSBootloader doesn't work (while the original arduino bootloader does).

                                      @scalz, @tekka, looking at MYSBootloader makefile at github, I noticed you are using

                                      ISP_PORT = com5
                                      ISP_SPEED = 115200
                                      ISP_PROTOCOL = stk500v2
                                      ISP_MCU = m328p 
                                      
                                      

                                      Well, my 'Arduino as ISP' only work as 'stk500v1' and 19200 bps --- Any other combination causes the "Yikes! invalid signature found" in avrdude, or no response at all (time-out). Could be that a different avr itself would introduce "strange bytes" during bootloader burning?

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

                                      @rvendrame the speed is not really an issue here - the bytes are verified after flashing...

                                      1 Reply Last reply
                                      0
                                      • rvendrameR Offline
                                        rvendrameR Offline
                                        rvendrame
                                        Hero Member
                                        wrote on last edited by
                                        #173

                                        @tekka, thank you so much. I have downloaded the .hex again from github, just for the sake. Anyway it is here MYSBootloader.hex I'm using.

                                        Home Assistant / Vera Plus UI7
                                        ESP8266 GW + mySensors 2.3.2
                                        Alexa / Google Home

                                        1 Reply Last reply
                                        0
                                        • rvendrameR rvendrame

                                          Hello guys, I'm trying to burn the MYSBootloader.hex into some Pro minis (clones) here, however after burning it, they get somehow 'bricked' :

                                          • I'm using my Uno "as ISP" on IDE 1.6.4
                                          • I've followed the step-by-step tutorial posted above by @tekka
                                          • My pro-minis are 5V, 16Mhz, external clock , 328p, supposedly a perfect match with 'boards.txt' info...
                                          • "Burn bootloader" ends successful, with "Done burning boot loader" message.
                                          • After that, the pro-mini pin 13 led flashes in a kind of random pattern, and it is not possible to upload any sketch, nor any kind of serial monitor on any speed.
                                          • I can revert it, by selecting the standard 'Arduino Pro or Pro Mini' board , and burn boot loader again. It makes the pro-mini gets back to live, I can upload my sketches and serial monitor it.

                                          So my questions:

                                          • I don't have extra eprom connected --- Is it mandatory? I've read somewhere that it can be disabled, but can't find the instructions anymore...
                                          • Fuse adjustments?
                                          • What else can I do in order to troubleshooting it?

                                          Thanks!

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

                                          @rvendrame said:

                                          Hello guys, I'm trying to burn the MYSBootloader.hex into some Pro minis (clones) here, however after burning it, they get somehow 'bricked' :

                                          • I'm using my Uno "as ISP" on IDE 1.6.4
                                          • I've followed the step-by-step tutorial posted above by @tekka
                                          • My pro-minis are 5V, 16Mhz, external clock , 328p, supposedly a perfect match with 'boards.txt' info...
                                          • "Burn bootloader" ends successful, with "Done burning boot loader" message.
                                          • After that, the pro-mini pin 13 led flashes in a kind of random pattern, and it is not possible to upload any sketch, nor any kind of serial monitor on any speed.
                                          • I can revert it, by selecting the standard 'Arduino Pro or Pro Mini' board , and burn boot loader again. It makes the pro-mini gets back to live, I can upload my sketches and serial monitor it.

                                          So my questions:

                                          • I don't have extra eprom connected --- Is it mandatory? I've read somewhere that it can be disabled, but can't find the instructions anymore...
                                          • Fuse adjustments?
                                          • What else can I do in order to troubleshooting it?

                                          Thanks!

                                          How do you know that the bootloader is not functioning properly? you connected the RF module as mentioned earlier? The led is blinking irregularly due to SPI...Do you get a startup message (from MYSBootloader) in MYSController?

                                          The 327xx bytes mentioned in verbose mode are correct - the entire flash is overwritten...

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


                                          16

                                          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