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

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. MYSBootloader never finishes

MYSBootloader never finishes

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 3 Posters 1.7k Views 3 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.
  • jbjallingJ Offline
    jbjallingJ Offline
    jbjalling
    Hardware Contributor
    wrote on last edited by
    #1

    Hi all,

    I have flashed my atmega328 with the MYSbootloader. The device shows up in MYSController v. 0.1.2.282, and I can assign a new firmware to the device.
    It starts transfering the firmware, but when the transfer is complete, it just restarts the transfer.
    Anyone has a clue on what is wrong?
    I have compiled the bootloader myself, because the CSN-pin of my radio module is connected to PB0 instead of PB2. Also I'm running on the internal 8MHz oscillator.

    Thanks in advance.

    BR Jonas

    1 Reply Last reply
    0
    • OitzuO Offline
      OitzuO Offline
      Oitzu
      wrote on last edited by
      #2

      Hi!
      Restart and retransfer usually happens if the previous transfer was not complete.
      Maybe check the radio link?

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

        @jbjalling , I had a similar behavior in one node placed far from gateway (and with a repeater in between). It worked for me once I brought the node near by the gateway (and bypassed the repeater).

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

        1 Reply Last reply
        0
        • jbjallingJ Offline
          jbjallingJ Offline
          jbjalling
          Hardware Contributor
          wrote on last edited by
          #4

          The sensor is ~2m from the gateway so a bad link is not impossible, but highly unlikely I guess.
          Is any form of checksum of each individual packet performed?

          BR Jonas

          1 Reply Last reply
          0
          • OitzuO Offline
            OitzuO Offline
            Oitzu
            wrote on last edited by
            #5

            @jbjalling said:

            The sensor is ~2m from the gateway so a bad link is not impossible, but highly unlikely I guess.

            Hm.. st=ok / st=fail any indication about that?

            Is any form of checksum of each individual packet performed?

            On bootloader level: No, just a cummulative checksum of the whole firmware, to roughly check if everything seems okay, after fetching all blocks.

            On nrf24l01+ level there is the crc which should prevent corrupt packets.

            1 Reply Last reply
            0
            • jbjallingJ Offline
              jbjallingJ Offline
              jbjalling
              Hardware Contributor
              wrote on last edited by
              #6

              This is the last lines:
              "<- 4,4,0,50,196,2,255,10,0,1,0,70,0,
              -> 0,0,4,186,196,3,255,10,0,1,0,70,0,44,2,14,148,112,0,192,224,208,224,14,148,139,0,32,151,160,
              <- 4,4,0,50,196,2,255,10,0,1,0,71,0,
              -> 0,0,4,186,196,3,255,10,0,1,0,71,0,225,243,14,148,0,0,249,207,8,149,248,148,255,207,255,255,160,
              fw nok
              Go"

              Is there any special requirements to the fusebits of the micro?

              BR Jonas

              1 Reply Last reply
              0
              • jbjallingJ Offline
                jbjallingJ Offline
                jbjalling
                Hardware Contributor
                wrote on last edited by
                #7

                And the log from MYSController around the restart:
                "12-03-2016 11:14:34 TX 4;255;4;0;3;C800010046077E2B9A29B329A529F6290D0A006E616E
                12-03-2016 11:14:34 RX 4;255;4;0;2;C80001004607
                12-03-2016 11:14:35 TX 4;255;4;0;3;C8000100470700696E66006F7666002E0000FFFFFFFF
                12-03-2016 11:14:35 RX 4;255;4;0;2;C80001004707
                12-03-2016 11:14:36 DEBUG Undefined firmware/type for node=4
                12-03-2016 11:14:36 INFO BL version=65535
                12-03-2016 11:14:36 INFO Send FW info to node 4: type=C8, version=1, blocks=0x0748, CRC=0x5FFE
                12-03-2016 11:14:36 TX 4;0;4;0;1;C80001004807FE5F
                12-03-2016 11:14:36 RX 4;255;4;0;0;FFFFFFFF
                12-03-2016 11:14:36 DEBUG FW update started, node id = 4
                12-03-2016 11:14:36 TX 4;255;4;0;3;C800010000000C9467030C94A6270C94CD270C948F03
                12-03-2016 11:14:36 RX 4;255;4;0;2;C80001000000
                "

                BR Jonas

                1 Reply Last reply
                0
                • jbjallingJ Offline
                  jbjallingJ Offline
                  jbjalling
                  Hardware Contributor
                  wrote on last edited by
                  #8

                  Ok, I tried to breadboard the sensebender micro and use the pre-build MYSBootloader - it works.
                  That indicates that I didn't manage to build the bootloader myself :-/

                  I will look into it later. Thanks for your replies.

                  BR Jonas

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


                  14

                  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