<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OTA not working in my current setup (CRC Error)]]></title><description><![CDATA[<p dir="auto">Hi Everyone,</p>
<p dir="auto">As a some sort MySensors enthousiast I can't get OTA to work (ever).</p>
<p dir="auto">I have a current setup with a Raspberry Pi 3B that is configured with an RFM69 radio and setup as MQTT gateway. I have multiple nodes setup and with MQTT is all works flawless.</p>
<p dir="auto">So last december I wanted to take it to another level and get my nodes to OTA, but as of today I can't get it to work.</p>
<p dir="auto">Anyway to make my nodes OTA I installed <a href="http://mycontroller.org" rel="nofollow ugc">mycontroller.org</a> and set everything up. I use EasyPCB boards with RFM69 radio's, and soldered AT25DF512C-SSHN-B on these boards. Burned the Dualoptiboot sensebender micro bootloader as instructed.</p>
<p dir="auto">Started with a simple battery node (code from examples and added OTA).</p>
<p dir="auto">Only to change the version number in presentation and compile and upload the HEX file to MyController. Instructing the node to upload the firmware always results in CRC error.</p>
<p dir="auto">Node log using serial console:</p>
<pre><code>178499 OTA:FWP:FW END
180334 OTA:CRC:B=04E0,C=5897,F=3E27
180338 !OTA:FWP:CRC FAIL

</code></pre>
<p dir="auto">My question. Is there anybody how has this some problem? Or is having the same setup and do have a working OTA environment? I'm running Mycontroller 1.5.0 FINAL and Mysensors 2.3.2 code on both the node and gateway. And not having any luck using OTA. All the rest works as expected. Did found a lot of other topics but these where all old and fixed in later firmwares.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.mysensors.org/topic/10928/ota-not-working-in-my-current-setup-crc-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 11 Jun 2026 16:12:22 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/10928.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Feb 2020 13:24:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Tue, 01 Jun 2021 15:52:32 GMT]]></title><description><![CDATA[<p dir="auto">I want to share an interesting case about updating the firmware over FOTA..</p>
<p dir="auto">I have several nodes on a RS485 bus with memory chips.<br />
Recently I decided to update the firmware on several at once and ran into an unexpected problem - repeated attempts to update constantly ended up with a checksum error <strong><strong>!OTA:FWP:CRC FAIL</strong></strong>.</p>
<p dir="auto">At the same time, I usually test all new nodes for FOTA firmware updates before installing.</p>
<p dir="auto">I tried to understand what the problem might be and came to an unexpected result - in my case, disabling the directive <strong>OTA_EXTRA_FLASH_DEBUG</strong>, which I had been using for a long time, when I first tested updates, helped.</p>
<p dir="auto">After disabling this directive, all firmwares were updated the first time. Very strange, but nevertheless ...</p>
]]></description><link>https://forum.mysensors.org/post/110376</link><guid isPermaLink="true">https://forum.mysensors.org/post/110376</guid><dc:creator><![CDATA[cabat]]></dc:creator><pubDate>Tue, 01 Jun 2021 15:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 17 Feb 2020 10:23:58 GMT]]></title><description><![CDATA[<p dir="auto">Success!</p>
<p dir="auto">I've been reading and measuring and soldering everything to fix the bug. With some datasheet help and my trusty multimeter. I did the following fix:</p>
<p dir="auto">Soldering the SCK pin (only soldering this pin does not fix the CRC errors)<br />
Soldering pin 7 to pin 8 on the flash chip finishes the fix.</p>
<p dir="auto">So first my log shows:</p>
<pre><code>OTA:FWP:FL DUMP 437A:0000000000000000000000000000000018530 
</code></pre>
<p dir="auto">Now the log shows</p>
<pre><code>TSF:MSG:READ,0-0-45,s=255,c=4,t=3,pt=6,l=22,sg=0:03000D0003000C94D5030C94D5030C94D5030C94D503
OTA:FWP:FL DUMP 003A:0C94D5030C94D5030C94D5030C94D503127516 
</code></pre>
<p dir="auto">Lot more data is whriting to the flash.</p>
<p dir="auto">And after the firmware is recieved:</p>
<pre><code>127760 OTA:FWP:FW END
129652 OTA:CRC:B=04E0,C=3E27,F=3E27
129656 OTA:FWP:CRC OK
</code></pre>
<p dir="auto">And the node reboots so OTA works!</p>
<p dir="auto">And as a bonus</p>
<pre><code>#define MY_OTA_FLASH_JDECID (0x1F65)
</code></pre>
<p dir="auto">Works also so this can also be used as an red flag if your OTA is not working and you have the correct flash chip but get a FLASH INIT error.</p>
<p dir="auto">I would like to thank everybody for helping!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> I would not move away from your great PCB design, but I might order some new ones.</p>
]]></description><link>https://forum.mysensors.org/post/103853</link><guid isPermaLink="true">https://forum.mysensors.org/post/103853</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Mon, 17 Feb 2020 10:23:58 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 17 Feb 2020 09:08:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vonjoost" aria-label="Profile: VonJoost">@<bdi>VonJoost</bdi></a> - bug can be read about here: <a href="https://forum.mysensors.org/topic/2740/easy-newbie-pcb-for-mysensors/666">https://forum.mysensors.org/topic/2740/easy-newbie-pcb-for-mysensors/666</a></p>
<p dir="auto">Yes, SCK was not connected but as I said, this was fixed and new gerber has been published. I dont know what CRC errors are but if you had the issue with no connection and fixed it EasyPCB should work just fine. You should be able to check continuity with a multimeter.</p>
]]></description><link>https://forum.mysensors.org/post/103852</link><guid isPermaLink="true">https://forum.mysensors.org/post/103852</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Mon, 17 Feb 2020 09:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 17 Feb 2020 08:34:15 GMT]]></title><description><![CDATA[<p dir="auto">Okay, i understand there are some bugs in the PCB design. Having V10 boards I have tried to do a quick fix and solder the SCK pin.</p>
<p dir="auto">But still getting CRC errors. Should I do more more modifications? Or abandon the EasyPCB boards because of the bugs with the flash memory and get some other PCB to try again?</p>
]]></description><link>https://forum.mysensors.org/post/103851</link><guid isPermaLink="true">https://forum.mysensors.org/post/103851</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Mon, 17 Feb 2020 08:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Sat, 15 Feb 2020 17:22:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> And the bug is that the SCK pin is going nowhere? Because that pin is not connected to SCK in the schematic.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/cabat" aria-label="Profile: cabat">@<bdi>cabat</bdi></a> Alright so the messages are correct but the flash is not working.</p>
<p dir="auto">So my next step is to solder the SCK pin. Will do that in a few days. Keeping everybody in the loop.</p>
]]></description><link>https://forum.mysensors.org/post/103797</link><guid isPermaLink="true">https://forum.mysensors.org/post/103797</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Sat, 15 Feb 2020 17:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 10 Feb 2020 14:16:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vonjoost" aria-label="Profile: VonJoost">@<bdi>VonJoost</bdi></a> I see in serial console about the same picture - dump is 000000....</p>
]]></description><link>https://forum.mysensors.org/post/103707</link><guid isPermaLink="true">https://forum.mysensors.org/post/103707</guid><dc:creator><![CDATA[cabat]]></dc:creator><pubDate>Mon, 10 Feb 2020 14:16:34 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 10 Feb 2020 10:51:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vonjoost" aria-label="Profile: VonJoost">@<bdi>VonJoost</bdi></a> - there are a known bug in EasyPCB with external flash. Check you dont have boards with this bug. (Not even sure you are using external flash, but just what came up when i read the thread)</p>
]]></description><link>https://forum.mysensors.org/post/103702</link><guid isPermaLink="true">https://forum.mysensors.org/post/103702</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Mon, 10 Feb 2020 10:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Mon, 10 Feb 2020 10:13:22 GMT]]></title><description><![CDATA[<p dir="auto">May be it's help you - in my case with Winbond W25X40CL changing code in <a href="https://github.com/mysensors/MySensors/blob/master/drivers/SPIFlash/SPIFlash.h#L92" rel="nofollow ugc">SPIFlash.h</a> solve the problem with CRC error:</p>
<p dir="auto">i change this:</p>
<pre><code>#define SPIFLASH_BLOCKERASE_32K   0x52        //!&lt; erase one 32K block of flash memory
</code></pre>
<p dir="auto">on this:</p>
<pre><code>#define SPIFLASH_BLOCKERASE_32K   0xD8        //!&lt; erase one 64K block of flash memory
</code></pre>
]]></description><link>https://forum.mysensors.org/post/103701</link><guid isPermaLink="true">https://forum.mysensors.org/post/103701</guid><dc:creator><![CDATA[cabat]]></dc:creator><pubDate>Mon, 10 Feb 2020 10:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Thu, 06 Feb 2020 10:02:47 GMT]]></title><description><![CDATA[<p dir="auto">Maybe replying at my own post.</p>
<p dir="auto">But the MySensors OTA code uses</p>
<pre><code>#define MY_OTA_FLASH_JDECID (0x1F65)
</code></pre>
<p dir="auto">That is for the AT25DF512C-SSHN-B if i read the datasheet from Adesto right. But using code 0x1F65 always results in Flash INIT error and using 0x00 works. But that's the "unknown type".</p>
]]></description><link>https://forum.mysensors.org/post/103644</link><guid isPermaLink="true">https://forum.mysensors.org/post/103644</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Thu, 06 Feb 2020 10:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Thu, 06 Feb 2020 08:10:27 GMT]]></title><description><![CDATA[<p dir="auto">OK,</p>
<p dir="auto">Now I'm seeing</p>
<pre><code>125540 OTA:FWP:FL DUMP 000A:00000000000000000000000000000000125546 
</code></pre>
<p dir="auto">These lines in the serial console and a lot of them. Don't know if these lines are any good.</p>
<pre><code>18442 OTA:FRQ:FW REQ,T=0003,V=000D,B=0437
18466 TSF:MSG:SEND,45-45-0-0,s=255,c=4,t=2,pt=6,l=6,sg=0,ft=0,st=OK:03000D003704
18509 TSF:MSG:READ,0-0-45,s=255,c=4,t=3,pt=6,l=22,sg=0:03000D003704B0E2A1114FC0C40ED11C992309F45BC0
18520 OTA:FWP:RECV B=0437
18524 OTA:FWP:FL DUMP 437A:0000000000000000000000000000000018530 
</code></pre>
<p dir="auto">It get's a long line from recieve and just a small amount reads from flash?</p>
]]></description><link>https://forum.mysensors.org/post/103642</link><guid isPermaLink="true">https://forum.mysensors.org/post/103642</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Thu, 06 Feb 2020 08:10:27 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Sun, 16 Feb 2020 10:25:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vonjoost" aria-label="Profile: VonJoost">@<bdi>VonJoost</bdi></a>  not sure if it helps, but defining OTA_EXTRA_FLASH_DEBUG (in the running sketch) ahould cause additional debug output that might give a clue.</p>
]]></description><link>https://forum.mysensors.org/post/103641</link><guid isPermaLink="true">https://forum.mysensors.org/post/103641</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Sun, 16 Feb 2020 10:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Thu, 06 Feb 2020 07:38:40 GMT]]></title><description><![CDATA[<p dir="auto">Yes I've seen MyOtaFirmUpdate.h and the log messages.</p>
<p dir="auto">Did some calculations on the B/C and F line</p>
<pre><code>109953 OTA:FWP:FW END
111788 OTA:CRC:B=04E0,C=5897,F=3E27
111792 !OTA:FWP:CRC FAIL
</code></pre>
<p dir="auto">B= Firmware Blocks, 1248 blocks (same value from MyController)<br />
F= Firmware CRC 15911 (same value from MyController)</p>
<p dir="auto">No the wrong one:<br />
C= Calculated CRC 22679 that divers from Mycontrollers 15911 value.</p>
<p dir="auto">But I can't figure out what causes these calculated crc errors. Well I know how CRC is calculated, but now how do I figure out where the error is happening.</p>
]]></description><link>https://forum.mysensors.org/post/103640</link><guid isPermaLink="true">https://forum.mysensors.org/post/103640</guid><dc:creator><![CDATA[VonJoost]]></dc:creator><pubDate>Thu, 06 Feb 2020 07:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to OTA not working in my current setup (CRC Error) on Wed, 05 Feb 2020 21:47:39 GMT]]></title><description><![CDATA[<p dir="auto">I don't have experience with fota, but if you haven't already found it, <a href="https://github.com/mysensors/MySensors/blob/40f4deb18c49b1eb6b91f59e3602e9f5c56a2a1a/core/MyOTAFirmwareUpdate.h#L39" rel="nofollow ugc">https://github.com/mysensors/MySensors/blob/40f4deb18c49b1eb6b91f59e3602e9f5c56a2a1a/core/MyOTAFirmwareUpdate.h#L39</a> might make it a bit easier to interpret the log messages.</p>
]]></description><link>https://forum.mysensors.org/post/103627</link><guid isPermaLink="true">https://forum.mysensors.org/post/103627</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 05 Feb 2020 21:47:39 GMT</pubDate></item></channel></rss>