MYSBootloader never finishes
-
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
-
@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).
-
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.
-
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
-
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
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login