MYSBootloader never finishes


  • Hardware Contributor

    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



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


  • Hero Member

    @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).


  • Hardware Contributor

    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



  • @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.


  • Hardware Contributor

    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


  • Hardware Contributor

    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


  • Hardware Contributor

    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


Log in to reply
 

Suggested Topics

53
Online

11.4k
Users

11.1k
Topics

112.7k
Posts