Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. MYSBootloader 1.3.0-beta.3

MYSBootloader 1.3.0-beta.3

Scheduled Pinned Locked Moved Development
182 Posts 44 Posters 59.4k Views 42 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by gohan
    #125

    I programmed the pro mini with 5v and it worked. Maybe I was lucky. The 3v ftdi adapter is mandatory for esp8266 for example.

    1 Reply Last reply
    0
    • tekkaT tekka

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

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #126

      @tekka for OSX, the sequencing of flags matters. So, line 45 can be:

      $(PROJECT).o: $(PROJECT).c
      "$(BINPATH)avr-gcc" $(CFLAGS) -I$(INCLUDES) $< -o $@
      

      can be improved to

      $(PROJECT).o: $(PROJECT).c
      "$(BINPATH)avr-gcc" -I$(INCLUDES) $(CFLAGS) $< -o $@
      

      and it all works.

      Also, if anyone is getting error for "avr-gcc" not found, then just add the path to avr-gcc in your path.

      tekkaT 1 Reply Last reply
      0
      • ? A Former User

        @tekka for OSX, the sequencing of flags matters. So, line 45 can be:

        $(PROJECT).o: $(PROJECT).c
        "$(BINPATH)avr-gcc" $(CFLAGS) -I$(INCLUDES) $< -o $@
        

        can be improved to

        $(PROJECT).o: $(PROJECT).c
        "$(BINPATH)avr-gcc" -I$(INCLUDES) $(CFLAGS) $< -o $@
        

        and it all works.

        Also, if anyone is getting error for "avr-gcc" not found, then just add the path to avr-gcc in your path.

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

        @Bhavin-Doshi Thanks for reporting - could you prepare a PR?
        https://github.com/mysensors/MySensorsBootloaderRF24

        ? 1 Reply Last reply
        0
        • tekkaT tekka

          @Bhavin-Doshi Thanks for reporting - could you prepare a PR?
          https://github.com/mysensors/MySensorsBootloaderRF24

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #128

          @tekka Submitted https://github.com/mysensors/MySensorsBootloaderRF24/pull/20.

          tekkaT 1 Reply Last reply
          0
          • ? A Former User

            @tekka Submitted https://github.com/mysensors/MySensorsBootloaderRF24/pull/20.

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

            @Bhavin-Doshi PR merged. Thank you!

            N 1 Reply Last reply
            0
            • tekkaT tekka

              @Bhavin-Doshi PR merged. Thank you!

              N Offline
              N Offline
              nagurao.basude
              wrote on last edited by
              #130

              @tekka, I am planning to move from MySensors v2.0.0 to v2.1.1, do I need to use the updated MYSBootloader? Currently I am using MYSBootloader 1.3 pre-relase (https://forum.mysensors.org/topic/3453/mysbootloader-1-3-pre-release-myscontroller-1-0-0beta).

              Can you please also help me understand the differences in the low_fuses and high_fuses values in the older version of bootloader and the latest version?

              tekkaT 1 Reply Last reply
              0
              • N nagurao.basude

                @tekka, I am planning to move from MySensors v2.0.0 to v2.1.1, do I need to use the updated MYSBootloader? Currently I am using MYSBootloader 1.3 pre-relase (https://forum.mysensors.org/topic/3453/mysbootloader-1-3-pre-release-myscontroller-1-0-0beta).

                Can you please also help me understand the differences in the low_fuses and high_fuses values in the older version of bootloader and the latest version?

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

                @nagurao.basude no, you don't need to but the new version has some stability improvements. The fuse differences are to better match HW (osc type) & clearing eeprom.

                AVR fuse calculator: http://www.engbedded.com/fusecalc/

                N 1 Reply Last reply
                0
                • Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by
                  #132

                  Hello, has someone used the 1MHz precompiled bootloader ? If yes what baud rate did you use to communicate via serial ?
                  I flashed it on a node but I can't upload any script ("not in sync" error). If I believe HW.h it should be 9600 bauds but I have tried hat and nearly every baudrate with no luck.
                  I had no problem using the 8MHz version.

                  The only way I could use the 1MHz bootloader at the moment is to flash the hex file containing both bootloader and script.
                  Sorry to ask this stupid question, I wanted to compile the bootloader but Internet connection is nearly down and I can't even download Atmel Studio :(

                  1 Reply Last reply
                  1
                  • tekkaT tekka

                    @nagurao.basude no, you don't need to but the new version has some stability improvements. The fuse differences are to better match HW (osc type) & clearing eeprom.

                    AVR fuse calculator: http://www.engbedded.com/fusecalc/

                    N Offline
                    N Offline
                    nagurao.basude
                    wrote on last edited by
                    #133

                    @tekka Thank you very much for the response. I will just start migrating my existing nodes to MySensors v2.1.1library.

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

                      @tekka try as I might, I can't get the nodes to respond to the new 'signal report' option in MYS Controller, any ideas why?

                      tekkaT 1 Reply Last reply
                      0
                      • Mark SwiftM Mark Swift

                        @tekka try as I might, I can't get the nodes to respond to the new 'signal report' option in MYS Controller, any ideas why?

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

                        @Mark-Swift This feature only works on MySensors >=2.2.0

                        Mark SwiftM 1 Reply Last reply
                        0
                        • tekkaT tekka

                          @Mark-Swift This feature only works on MySensors >=2.2.0

                          Mark SwiftM Offline
                          Mark SwiftM Offline
                          Mark Swift
                          wrote on last edited by
                          #136

                          @tekka said in MYSBootloader 1.3.0-beta.3:

                          @Mark-Swift This feature only works on MySensors >=2.2.0

                          @tekka I'm using the latest dev branch on all my nodes and gateway...

                          tekkaT 1 Reply Last reply
                          0
                          • Mark SwiftM Mark Swift

                            @tekka said in MYSBootloader 1.3.0-beta.3:

                            @Mark-Swift This feature only works on MySensors >=2.2.0

                            @tekka I'm using the latest dev branch on all my nodes and gateway...

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

                            @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                            Mark SwiftM 1 Reply Last reply
                            0
                            • J Offline
                              J Offline
                              jacikaas
                              wrote on last edited by jacikaas
                              #138

                              Hello,

                              I have notice strange behavior with MYSBootloaderV13pre.hex 8MHz internal bootloader.

                              Problem: When I burn MYSBootloaderV13pre.hex 8MHz internal bootloader to my Standalone Atmega328p i testing it with Arduino Blink and Fade sketches. Problem is that theese sketches doesn't work on this bootloader. LED is just always ON.

                              I also tested the same sketches, same wiring, same Arduino Uno (5V when programming), same FTDI programmer (3.3V), same PC with Win 10 with same drivers, same Atmega328p with Nick Gammon Atmega Board Programmer when I burn Lilypad bootloader and then upload Blink and Fade sketches, they perfectly working.

                              I tried same uploading with Arduino IDE 1.6.5 and also with the newest version 1.8.5.
                              As a programmer I using Arduino as ISP. I theese tests when burning bootloader I don't connect external oscilator.

                              With Nick Gammon software I also checked fuses for both Lilypad and MYSBootloader settings, becose i was thought it is becose of them. Once I configure wrong fuses and it had a lot of time to reset it to default value.
                              Question: So now before changing fuses I want to ask maybe someone have been faced with similar problem?

                              I paste below info about Lilipad and MYSBootloader 8MHz internal oscilator boards fuse settings:

                              Lilypad bootloader
                              
                              Atmega fuse calculator.
                              Written by Nick Gammon.
                              Version 1.11
                              Compiled on Nov 30 2017 at 17:36:58 with Arduino IDE 10805.
                              Attempting to enter programming mode ...
                              Entered programming mode OK.
                              Signature = 0x1E 0x95 0x0F 
                              Processor = ATmega328P
                              Flash memory size = 32768
                              LFuse = 0xE2 
                              HFuse = 0xDA 
                              EFuse = 0xFD 
                              Lock byte = 0xEF 
                              Clock calibration = 0x8E 
                              External Reset Disable.................. [ ]
                              Debug Wire Enable....................... [ ]
                              Enable Serial (ICSP) Programming........ [X]
                              Watchdog Timer Always On................ [ ]
                              Preserve EEPROM through chip erase...... [ ]
                              Boot into bootloader.................... [X]
                              Divide clock by 8....................... [ ]
                              Clock output............................ [ ]
                              Bootloader size: 2048 bytes.
                              Start-up time: SUT0: [X]  SUT1: [ ] (see datasheet)
                              Clock source: calibrated internal oscillator.
                              Brownout detection at: 2.7V.
                              
                              MYSBootloaderV13pre bootloader
                              
                              Atmega fuse calculator.
                              Written by Nick Gammon.
                              Version 1.11
                              Compiled on Nov 30 2017 at 19:48:16 with Arduino IDE 10805.
                              Attempting to enter programming mode ...
                              Entered programming mode OK.
                              Signature = 0x1E 0x95 0x0F 
                              Processor = ATmega328P
                              Flash memory size = 32768
                              LFuse = 0xE2 
                              HFuse = 0xD2 
                              EFuse = 0xFE 
                              Lock byte = 0xFF 
                              Clock calibration = 0x8E 
                              External Reset Disable.................. [ ]
                              Debug Wire Enable....................... [ ]
                              Enable Serial (ICSP) Programming........ [X]
                              Watchdog Timer Always On................ [ ]
                              Preserve EEPROM through chip erase...... [X]
                              Boot into bootloader.................... [X]
                              Divide clock by 8....................... [ ]
                              Clock output............................ [ ]
                              Bootloader size: 2048 bytes.
                              Start-up time: SUT0: [X]  SUT1: [ ] (see datasheet)
                              Clock source: calibrated internal oscillator.
                              Brownout detection at: 1.8V.
                              

                              I appreciate any helpful info!

                              EDIT: I think I already found that there is newer MYSBootloader files of development version which working without problems. I will test it if I write good fuses :)

                              1 Reply Last reply
                              0
                              • tekkaT tekka

                                @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                Mark SwiftM Offline
                                Mark SwiftM Offline
                                Mark Swift
                                wrote on last edited by
                                #139

                                @tekka said in MYSBootloader 1.3.0-beta.3:

                                @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                @tekka, just tried again, perhaps I'm missing something obvious?

                                I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

                                tekkaT 1 Reply Last reply
                                0
                                • Mark SwiftM Mark Swift

                                  @tekka said in MYSBootloader 1.3.0-beta.3:

                                  @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                  @tekka, just tried again, perhaps I'm missing something obvious?

                                  I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

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

                                  @tekka said in MYSBootloader 1.3.0-beta.3:

                                  @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                  1 Reply Last reply
                                  0
                                  • J Offline
                                    J Offline
                                    jacikaas
                                    wrote on last edited by jacikaas
                                    #141

                                    Hello,

                                    Q1: Does anybody was able to succesfully use 8MHz MYSBootloader 1.3.0-beta.3 on standalone Atmega328p?

                                    All bootloaders I testing with Arduino BLINK example.
                                    Arduino 1.8.5

                                    I was testing 8MHz internal oscilator MYSBootloader 1.3.0-beta.3 with fuses on 2 different Atmega328p standalone but I can't upload sketch to it and test it. Arduino avrdude says that:
                                    avrdude: stk500_recv(): programmer is not responding
                                    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4a

                                    Used fuses:
                                    proMYSBL8.bootloader.low_fuses=0xE2
                                    proMYSBL8.bootloader.high_fuses=0xDA
                                    proMYSBL8.bootloader.extended_fuses=0x06 / 07
                                    proMYSBL8.bootloader.unlock_bits=0x3F
                                    proMYSBL8.bootloader.lock_bits=0x3F / 0F

                                    Before that, I was burned my Atmega328p with 1MHz internal oscilator MYSBootloader 1.3.0-beta.3 bootloader and it was working.

                                    Also I was testing 8MHz internal oscilator MYSBootloader 1.3pre2 with fuses on 2 different Atmega328p standalone and I can upload sketch to it and test it.
                                    Used fuses:
                                    proMYSBL8.bootloader.low_fuses=0xE2
                                    proMYSBL8.bootloader.high_fuses=0xDA
                                    proMYSBL8.bootloader.extended_fuses=0x06 / 07
                                    proMYSBL8.bootloader.unlock_bits=0x3F
                                    proMYSBL8.bootloader.lock_bits=0x3F / 0F

                                    Q2: I noticed that with 8MHz internal oscilator MYSBootloader 1.3pre2 LED blinks not continuosly it like (* led ON; - led OFF):
                                    *** --- *** --- *** --- ** - * - * - * - [cycle ends, then repeats again] *** --- *** --- *** --- ** - * - * - * - ...
                                    And this one cycle of *** --- *** --- *** --- ** - * - * - * - takes ~8 seconds. Could it be something with watchdog timer? I not very know about this setting.

                                    Thank You for help!

                                    tekkaT 1 Reply Last reply
                                    0
                                    • J jacikaas

                                      Hello,

                                      Q1: Does anybody was able to succesfully use 8MHz MYSBootloader 1.3.0-beta.3 on standalone Atmega328p?

                                      All bootloaders I testing with Arduino BLINK example.
                                      Arduino 1.8.5

                                      I was testing 8MHz internal oscilator MYSBootloader 1.3.0-beta.3 with fuses on 2 different Atmega328p standalone but I can't upload sketch to it and test it. Arduino avrdude says that:
                                      avrdude: stk500_recv(): programmer is not responding
                                      avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4a

                                      Used fuses:
                                      proMYSBL8.bootloader.low_fuses=0xE2
                                      proMYSBL8.bootloader.high_fuses=0xDA
                                      proMYSBL8.bootloader.extended_fuses=0x06 / 07
                                      proMYSBL8.bootloader.unlock_bits=0x3F
                                      proMYSBL8.bootloader.lock_bits=0x3F / 0F

                                      Before that, I was burned my Atmega328p with 1MHz internal oscilator MYSBootloader 1.3.0-beta.3 bootloader and it was working.

                                      Also I was testing 8MHz internal oscilator MYSBootloader 1.3pre2 with fuses on 2 different Atmega328p standalone and I can upload sketch to it and test it.
                                      Used fuses:
                                      proMYSBL8.bootloader.low_fuses=0xE2
                                      proMYSBL8.bootloader.high_fuses=0xDA
                                      proMYSBL8.bootloader.extended_fuses=0x06 / 07
                                      proMYSBL8.bootloader.unlock_bits=0x3F
                                      proMYSBL8.bootloader.lock_bits=0x3F / 0F

                                      Q2: I noticed that with 8MHz internal oscilator MYSBootloader 1.3pre2 LED blinks not continuosly it like (* led ON; - led OFF):
                                      *** --- *** --- *** --- ** - * - * - * - [cycle ends, then repeats again] *** --- *** --- *** --- ** - * - * - * - ...
                                      And this one cycle of *** --- *** --- *** --- ** - * - * - * - takes ~8 seconds. Could it be something with watchdog timer? I not very know about this setting.

                                      Thank You for help!

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

                                      @Mark-Swift said in MYSBootloader 1.3.0-beta.3:

                                      @tekka said in MYSBootloader 1.3.0-beta.3:

                                      @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                      @tekka, just tried again, perhaps I'm missing something obvious?

                                      I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

                                      Did you try with 1.3.0-beta.4? https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

                                      Mark SwiftM J V 3 Replies Last reply
                                      0
                                      • tekkaT tekka

                                        @Mark-Swift said in MYSBootloader 1.3.0-beta.3:

                                        @tekka said in MYSBootloader 1.3.0-beta.3:

                                        @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                        @tekka, just tried again, perhaps I'm missing something obvious?

                                        I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

                                        Did you try with 1.3.0-beta.4? https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

                                        Mark SwiftM Offline
                                        Mark SwiftM Offline
                                        Mark Swift
                                        wrote on last edited by
                                        #143

                                        @tekka said in MYSBootloader 1.3.0-beta.3:

                                        @Mark-Swift said in MYSBootloader 1.3.0-beta.3:

                                        @tekka said in MYSBootloader 1.3.0-beta.3:

                                        @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                        @tekka, just tried again, perhaps I'm missing something obvious?

                                        I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

                                        Did you try with 1.3.0-beta.4? https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

                                        @tekka that did it, it's now working... now to figure out what the returned signal report numbers mean :)

                                        1 Reply Last reply
                                        0
                                        • tekkaT tekka

                                          @Mark-Swift said in MYSBootloader 1.3.0-beta.3:

                                          @tekka said in MYSBootloader 1.3.0-beta.3:

                                          @Mark-Swift Hmm, that's odd - just tested it here with the latest dev and all is ok. Can you post the logs + node sketch?

                                          @tekka, just tried again, perhaps I'm missing something obvious?

                                          I have the gateway and node using the latest dev branch, I click the node in MYS and then request a signal report - I see a tx in the log but nothing further? Do I need anything in the node sketch or the gateway? Does this work with the NRF's?

                                          Did you try with 1.3.0-beta.4? https://github.com/mysensors/MySensorsBootloaderRF24/tree/development

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

                                          @tekka thank You for the answer. I'm not sure is answer was dedicated for me or for Mark, but I tested 1.3.0-beta.4 in the same way I described before:

                                          • Tested with 2 different Atmega328p
                                          • First try was with 1MHz - working on both Atmega328p
                                          • Second try with 8MHz - same situation as with beta 3, skecth won't upload and I get answer from Arduino Avrdude (this time I post full log after uploading):
                                          avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
                                                   Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                                                   Copyright (c) 2007-2014 Joerg Wunsch
                                          
                                                   System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
                                          
                                                   Using Port                    : COM4
                                                   Using Programmer              : arduino
                                                   Overriding Baud Rate          : 38400
                                          avrdude: stk500_recv(): programmer is not responding
                                          avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf1
                                          avrdude: stk500_recv(): programmer is not responding
                                          < ... >
                                          avrdude: stk500_recv(): programmer is not responding
                                          avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf1
                                          
                                          avrdude done.  Thank you.
                                          

                                          It would be best if someone also could try to burn same bootloader on standalone Atmega328p and post results to be sure all wiring and steps I did is without mistakes.
                                          Strange if I I burn 1.3pre2 8MHz bootloader - it works.

                                          What troubleshooting I could make?

                                          J 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