<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Narrowing this down is a real PITA. The effect sometimes stops to
    occur, I then need to leave the module powered down for a while to
    get the effect back. Sometimes 1 hour is sufficient, currently it's
    been off for 2 hours and still works. I had a test window yesterday
    evening, one this morning and one in the afternoon. Temperature is
    most probably irrelevant, as the last power downs were outside in
    ~4-5 °C to rule this out.<br>
    <br>
    So as a "passed" can always be a false positive I need to validate
    every passed step by switching back to a failing version and see if
    that still fails.<br>
    <br>
    It seems I now have to wait until tomorrow for the next test window,
    but I have bisected down to this range of just 8 commits:<br>
    <br>
    <tt>balzer@leela:~/esp/esp-idf> git rev-list
      9d609af54c63e7f949a4fbc43d4f1c13b57f49d8
      ^9d2f7c60d9aef9860c61c2756318ada68c80fddf</tt><tt><br>
    </tt><tt>9d609af54c63e7f949a4fbc43d4f1c13b57f49d8</tt><tt><br>
    </tt><tt>f392727abf7d56490c2f33127a59bfac42c937e0</tt><tt><br>
    </tt><tt>e834d6fffc23a6fcfc0d2e871c9235417a7fb48f</tt><tt><br>
    </tt><tt>35842d02abb5f574aaab466d46081a232fdd20a6</tt><tt><br>
    </tt><tt>f05f3fbde87a9ce45c6818f71b49cd13888fd457</tt><tt><br>
    </tt><tt>a6d6c58ecadb9759a0bacf35cd7332ac641e598d</tt><tt><br>
    </tt><tt>321b1e02052de95db60ddce87eecce5f9e04e9b8</tt><tt><br>
    </tt><tt>40486c872345584d34949b3ce83f9e956a7eea13</tt><br>
    <br>
    …with 9d609af54c63e7f949a4fbc43d4f1c13b57f49d8 being the last
    identified bad commit, and 9d2f7c60d9aef9860c61c2756318ada68c80fddf
    being the last good.<br>
    <br>
    If I should guess now, it's probably one of Dmitry's commits on the
    wear leveling code.<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 23.11.18 um 17:20 schrieb Michael
      Balzer:<br>
    </div>
    <blockquote type="cite"
      cite="mid:f83dc3e0-8111-e85b-db9f-1a868634338e@expeedo.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      It's not a timing issue, I've let it reboot about 30 times without
      any successful mount after the first failure.<br>
      <br>
      Going into bisecting now…<br>
      <br>
      <br>
      <div class="moz-cite-prefix">Am 23.11.18 um 15:54 schrieb Mark
        Webb-Johnson:<br>
      </div>
      <blockquote type="cite"
        cite="mid:D80DA1B7-CAB9-4329-ADB6-29049A5FA01C@webb-johnson.net">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <blockquote type="cite" class="">
          <div text="#000000" bgcolor="#FFFFFF" class="">It may actually
            not be a corruption of the filesystem but some timing issue
            on the mount procedure. To test that we could disable the
            auto formatting on mount failures.</div>
        </blockquote>
        <div class=""><br class="">
        </div>
        True.
        <div class=""><br class="">
        </div>
        <div class="">A couple of Espressif guys have jumped on the
          issue, and I have provided some more information for them. I
          think key will be reproducing it.</div>
        <div class="">
          <div class=""><br class="">
          </div>
          <div class="">
            <blockquote type="cite" class="">
              <div text="#000000" bgcolor="#FFFFFF" class="">The issue
                may also be dependant on the hardware version, i.e. it
                could be caused by the bug that caused the SD speed
                issue on the first 3.1 batch.</div>
            </blockquote>
            <div class=""><br class="">
            </div>
            That was definitely a hardware issue with the CP2102 chip. I
            don’t think related to ESP in any way.</div>
          <div class=""><br class="">
          </div>
          <div class="">Regards, Mark.<br class="">
            <div><br class="">
              <blockquote type="cite" class="">
                <div class="">On 23 Nov 2018, at 10:34 PM, Michael
                  Balzer <<a href="mailto:dexter@expeedo.de" class=""
                    moz-do-not-send="true">dexter@expeedo.de</a>>
                  wrote:</div>
                <br class="Apple-interchange-newline">
                <div class="">
                  <meta http-equiv="Content-Type" content="text/html;
                    charset=UTF-8" class="">
                  <div text="#000000" bgcolor="#FFFFFF" class=""> It may
                    actually not be a corruption of the filesystem but
                    some timing issue on the mount procedure. To test
                    that we could disable the auto formatting on mount
                    failures.<br class="">
                    <br class="">
                    The issue may also be dependant on the hardware
                    version, i.e. it could be caused by the bug that
                    caused the SD speed issue on the first 3.1 batch.<br
                      class="">
                    <br class="">
                    I only have tried the idf update on my batch 1
                    module (my bench / development module). I think most
                    of our edge testers also have that version.<br
                      class="">
                    <br class="">
                    Regards,<br class="">
                    Michael<br class="">
                    <br class="">
                    <br class="">
                    <div class="moz-cite-prefix">Am 23.11.18 um 02:32
                      schrieb Mark Webb-Johnson:<br class="">
                    </div>
                    <blockquote type="cite"
                      cite="mid:DBC830B6-E161-4834-91A8-F3ACD03A778D@webb-johnson.net"
                      class="">
                      <meta http-equiv="Content-Type"
                        content="text/html; charset=UTF-8" class="">
                      I have raised the following github issue to
                      Espressif:
                      <div class=""><br class="">
                      </div>
                      <blockquote style="margin: 0 0 0 40px; border:
                        none;&#xA; padding:&#xA; 0px;" class="">
                        <div class=""><a
                            href="https://github.com/espressif/esp-idf/issues/2730"
                            class="" moz-do-not-send="true">https://github.com/espressif/esp-idf/issues/2730</a></div>
                        <div class=""><br class="">
                        </div>
                        <div class="">
                          <h2 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; line-height:
                            1.25;&#xA; border-bottom-width:
                            1px;&#xA;&#xA; border-bottom-style:
                            solid;&#xA; border-bottom-color:
                            rgb(234,&#xA; 236, 239);&#xA;
                            padding-bottom: 0.3em; color: rgb(36,
                            41,&#xA; 46);&#xA; font-family:
                            -apple-system,&#xA; system-ui, "Segoe
                            UI",&#xA;&#xA; Helvetica, Arial,
                            sans-serif, "Apple&#xA; Color
                            Emoji",&#xA; "Segoe UI&#xA;
                            Emoji", "Segoe UI
                            Symbol";&#xA;&#xA;
                            font-variant-ligatures: normal; orphans:
                            2;&#xA; widows: 2;&#xA; background-color:
                            rgb(255,&#xA; 255, 255); margin-top:
                            0px&#xA; !important;" class="">Environment</h2>
                          <ul style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            0px;&#xA; padding-left: 2em; color: rgb(36,
                            41,&#xA; 46);&#xA; font-family:
                            -apple-system,&#xA; system-ui, "Segoe
                            UI",&#xA;&#xA; Helvetica, Arial,
                            sans-serif, "Apple&#xA; Color
                            Emoji",&#xA; "Segoe UI&#xA;
                            Emoji", "Segoe UI
                            Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">
                            <li style="box-sizing: border-box;&#xA;
                              margin-left: 0px;" class="">Development
                              Kit: none</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Kit version (for
                              WroverKit/PicoKit/DevKitC): none</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Module or chip used:
                              ESP32-WROVER 16MB</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">IDF version (run <code
                                style="box-sizing:&#xA; border-box;
                                font-family:&#xA;&#xA; SFMono-Regular,
                                Consolas, "Liberation&#xA;
                                Mono",&#xA; Menlo, Courier,&#xA;
                                monospace; font-size: 11.9px;&#xA;&#xA;
                                background-color: rgba(27, 31, 35,
                                0.05);&#xA; border-radius:&#xA; 3px;
                                margin: 0px;&#xA; padding: 0.2em 0.4em;"
                                class="">git describe --tags</code> to
                              find it): v3.2-beta1-208-g0d7f2d77c</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Build System: make</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Compiler version (run <code
                                style="box-sizing:&#xA; border-box;
                                font-family:&#xA;&#xA; SFMono-Regular,
                                Consolas, "Liberation&#xA;
                                Mono",&#xA; Menlo, Courier,&#xA;
                                monospace; font-size: 11.9px;&#xA;&#xA;
                                background-color: rgba(27, 31, 35,
                                0.05);&#xA; border-radius:&#xA; 3px;
                                margin: 0px;&#xA; padding: 0.2em 0.4em;"
                                class="">xtensa-esp32-elf-gcc --version</code> to
                              find it): (crosstool-NG
                              crosstool-ng-1.22.0-80-g6c4433a) 5.2.0</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Operating System: macOS</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Power Supply: USB</li>
                          </ul>
                          <h2 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; line-height: 1.25;
                            border-bottom-width:&#xA;&#xA; 1px;
                            border-bottom-style: solid;&#xA;
                            border-bottom-color:&#xA; rgb(234, 236,
                            239);&#xA; padding-bottom: 0.3em; color:
                            rgb(36,&#xA; 41,&#xA; 46); font-family:
                            -apple-system, system-ui,&#xA;
                            "Segoe&#xA; UI", Helvetica,
                            Arial,&#xA; sans-serif, "Apple
                            Color&#xA;&#xA; Emoji", "Segoe UI
                            Emoji",&#xA; "Segoe UI&#xA;
                            Symbol";&#xA; font-variant-ligatures:
                            normal; orphans:&#xA; 2;&#xA; widows: 2;
                            background-color: rgb(255,&#xA; 255, 255);"
                            class="">Problem Description</h2>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">TLDR: Between May and July 2018 a
                            change was made to esp idf master that is
                            causing corruption on FAT filesystems
                            mounted on SPI flash.</p>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Our project uses a partitions.csv
                            as follows:</p>
                          <pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46); font-variant-ligatures: normal; orphans: 2; widows: 2;" class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; margin: 0px; padding: 0px; border: 0px; word-break: normal; display: inline; line-height: inherit; overflow: visible; overflow-wrap: normal; background-position: initial initial; background-repeat: initial initial;" class=""># Name,   Type, SubType, Offset,   Size
nvs,      data, nvs,     0x9000,  0x4000
otadata,  data, ota,     0xd000,  0x2000
phy_init, data, phy,     0xf000,  0x1000
factory,  app,  factory, 0x10000,  4M
ota_0,    app,  ota_0,   ,         4M
ota_1,    app,  ota_1,   ,         4M
store,    data, fat,     ,         1M
</code></pre>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">The 'store' partition is formatted
                            as FAT, as follows:</p>
                          <div class="highlight highlight-source-c++"
                            style="box-sizing:&#xA; border-box;&#xA;
                            margin-bottom: 16px; background-color:&#xA;
                            rgb(255,&#xA; 255, 255); color: rgb(36,
                            41,&#xA; 46); font-family:&#xA;
                            -apple-system,&#xA; system-ui, "Segoe
                            UI",&#xA; Helvetica,&#xA; Arial,
                            sans-serif, "Apple&#xA; Color
                            Emoji",&#xA; "Segoe UI&#xA;
                            Emoji", "Segoe UI
                            Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2; overflow:&#xA;
                            visible !important;">
                            <pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 0px; margin-top: 0px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; word-break: normal;" class=""><span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">esp_vfs_fat_mount_config_t</span> m_store_fat;
<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">wl_handle_t</span> m_store_wlh;
<span class="pl-en" style="box-sizing: border-box; color: rgb(111, 66, 193);">memset</span>(&m_store_fat,<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">0</span>,<span class="pl-k" style="box-sizing: border-box; color: rgb(215, 58, 73);">sizeof</span>(<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">esp_vfs_fat_sdmmc_mount_config_t</span>));
m_store_fat.format_if_mount_failed = <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">true</span>;
m_store_fat.max_files = <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">5</span>;
<span class="pl-en" style="box-sizing: border-box; color: rgb(111, 66, 193);">esp_vfs_fat_spiflash_mount</span>(<span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98);"><span class="pl-pds" style="box-sizing: border-box;">"</span>/store<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98);"><span class="pl-pds" style="box-sizing: border-box;">"</span>store<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, &m_store_fat, &m_store_wlh);</pre>
                          </div>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">We have previously used a clone of
                            esp idf master, dated around May 22 2018,
                            without issues. The partition is very
                            reliable.</p>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">However, on Jul 6 2018, we updated
                            our clone to use the latest esp idf master
                            at that time. Shortly afterwards, users
                            started to report that their 'store'
                            filesystem contents were corrupted. We
                            rolled back.</p>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">We have now tried again (updating
                            on Oct 20 2018 to v3.2-beta1-208-g0d7f2d77c)
                            and immediately had the same issue. Random
                            corruption of FAT filesystem in SPI flash.</p>
                          <h3 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; font-size: 1.25em; line-height:
                            1.25;&#xA;&#xA; color: rgb(36, 41, 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe&#xA; UI",
                            Helvetica, Arial,&#xA; sans-serif,&#xA;
                            "Apple Color Emoji",
                            "Segoe&#xA; UI&#xA; Emoji",
                            "Segoe UI&#xA; Symbol";&#xA;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2; widows: 2;&#xA;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Expected Behavior</h3>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">No corruption of FAT filesystem.</p>
                          <h3 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; font-size: 1.25em; line-height:
                            1.25;&#xA;&#xA; color: rgb(36, 41, 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe&#xA; UI",
                            Helvetica, Arial,&#xA; sans-serif,&#xA;
                            "Apple Color Emoji",
                            "Segoe&#xA; UI&#xA; Emoji",
                            "Segoe UI&#xA; Symbol";&#xA;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2; widows: 2;&#xA;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Actual Behavior</h3>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Corruption of FAT filesystem.</p>
                          <h3 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; font-size: 1.25em; line-height:
                            1.25;&#xA;&#xA; color: rgb(36, 41, 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe&#xA; UI",
                            Helvetica, Arial,&#xA; sans-serif,&#xA;
                            "Apple Color Emoji",
                            "Segoe&#xA; UI&#xA; Emoji",
                            "Segoe UI&#xA; Symbol";&#xA;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2; widows: 2;&#xA;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Steps to reproduce</h3>
                          <ol style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            0px;&#xA; padding-left: 2em; color: rgb(36,
                            41,&#xA; 46);&#xA; font-family:
                            -apple-system,&#xA; system-ui, "Segoe
                            UI",&#xA;&#xA; Helvetica, Arial,
                            sans-serif, "Apple&#xA; Color
                            Emoji",&#xA; "Segoe UI&#xA;
                            Emoji", "Segoe UI
                            Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">
                            <li style="box-sizing: border-box;&#xA;
                              margin-left: 0px;" class="">Create a
                              partition in SPI flash, and mount FAT
                              filesystem</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Read and write to files on
                              FAT filesystem</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Reboot</li>
                            <li style="box-sizing: border-box;
                              margin-top:&#xA; 0.25em;&#xA; margin-left:
                              0px;" class="">Observe random corruption
                              and unmountable filesystem</li>
                          </ol>
                          <h3 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; font-size: 1.25em; line-height:
                            1.25;&#xA;&#xA; color: rgb(36, 41, 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe&#xA; UI",
                            Helvetica, Arial,&#xA; sans-serif,&#xA;
                            "Apple Color Emoji",
                            "Segoe&#xA; UI&#xA; Emoji",
                            "Segoe UI&#xA; Symbol";&#xA;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2; widows: 2;&#xA;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">Code to reproduce this issue</h3>
                          <div class="highlight highlight-source-c++"
                            style="box-sizing:&#xA; border-box;&#xA;
                            margin-bottom: 16px; background-color:&#xA;
                            rgb(255,&#xA; 255, 255); color: rgb(36,
                            41,&#xA; 46); font-family:&#xA;
                            -apple-system,&#xA; system-ui, "Segoe
                            UI",&#xA; Helvetica,&#xA; Arial,
                            sans-serif, "Apple&#xA; Color
                            Emoji",&#xA; "Segoe UI&#xA;
                            Emoji", "Segoe UI
                            Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2; overflow:&#xA;
                            visible !important;">
                            <pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.9px; margin-bottom: 0px; margin-top: 0px; overflow-wrap: normal; background-color: rgb(246, 248, 250); border-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; word-break: normal;" class=""><span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">esp_vfs_fat_mount_config_t</span> m_store_fat;
<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">wl_handle_t</span> m_store_wlh;
<span class="pl-en" style="box-sizing: border-box; color: rgb(111, 66, 193);">memset</span>(&m_store_fat,<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">0</span>,<span class="pl-k" style="box-sizing: border-box; color: rgb(215, 58, 73);">sizeof</span>(<span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">esp_vfs_fat_sdmmc_mount_config_t</span>));
m_store_fat.format_if_mount_failed = <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">true</span>;
m_store_fat.max_files = <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 92, 197);">5</span>;
<span class="pl-en" style="box-sizing: border-box; color: rgb(111, 66, 193);">esp_vfs_fat_spiflash_mount</span>(<span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98);"><span class="pl-pds" style="box-sizing: border-box;">"</span>/store<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, <span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98);"><span class="pl-pds" style="box-sizing: border-box;">"</span>store<span class="pl-pds" style="box-sizing: border-box;">"</span></span>, &m_store_fat, &m_store_wlh);</pre>
                          </div>
                          <h2 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; line-height: 1.25;
                            border-bottom-width:&#xA;&#xA; 1px;
                            border-bottom-style: solid;&#xA;
                            border-bottom-color:&#xA; rgb(234, 236,
                            239);&#xA; padding-bottom: 0.3em; color:
                            rgb(36,&#xA; 41,&#xA; 46); font-family:
                            -apple-system, system-ui,&#xA;
                            "Segoe&#xA; UI", Helvetica,
                            Arial,&#xA; sans-serif, "Apple
                            Color&#xA;&#xA; Emoji", "Segoe UI
                            Emoji",&#xA; "Segoe UI&#xA;
                            Symbol";&#xA; font-variant-ligatures:
                            normal; orphans:&#xA; 2;&#xA; widows: 2;
                            background-color: rgb(255,&#xA; 255, 255);"
                            class="">Debug Logs</h2>
                          <p style="box-sizing: border-box;
                            margin-bottom:&#xA; 16px;&#xA; margin-top:
                            0px; color: rgb(36, 41,&#xA; 46);
                            font-family:&#xA; -apple-system,&#xA;
                            system-ui, "Segoe UI",&#xA;
                            Helvetica,&#xA; Arial, sans-serif,
                            "Apple&#xA; Color Emoji",&#xA;
                            "Segoe UI&#xA; Emoji", "Segoe
                            UI Symbol";&#xA;&#xA; font-size: 14px;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2;&#xA; widows: 2;&#xA;
                            background-color: rgb(255, 255, 255);"
                            class="">n/a</p>
                          <h2 style="box-sizing: border-box;&#xA;
                            margin-bottom: 16px;&#xA; margin-top:
                            24px;&#xA; line-height: 1.25;
                            border-bottom-width:&#xA;&#xA; 1px;
                            border-bottom-style: solid;&#xA;
                            border-bottom-color:&#xA; rgb(234, 236,
                            239);&#xA; padding-bottom: 0.3em; color:
                            rgb(36,&#xA; 41,&#xA; 46); font-family:
                            -apple-system, system-ui,&#xA;
                            "Segoe&#xA; UI", Helvetica,
                            Arial,&#xA; sans-serif, "Apple
                            Color&#xA;&#xA; Emoji", "Segoe UI
                            Emoji",&#xA; "Segoe UI&#xA;
                            Symbol";&#xA; font-variant-ligatures:
                            normal; orphans:&#xA; 2;&#xA; widows: 2;
                            background-color: rgb(255,&#xA; 255, 255);"
                            class="">Other items if possible</h2>
                          <div style="box-sizing: border-box;
                            margin-top:&#xA; 0px; color:&#xA; rgb(36,
                            41, 46); font-family:&#xA; -apple-system,
                            system-ui,&#xA; "Segoe&#xA; UI",
                            Helvetica, Arial, sans-serif,&#xA;&#xA;
                            "Apple Color Emoji", "Segoe
                            UI&#xA; Emoji",&#xA; "Segoe UI
                            Symbol";&#xA; font-size: 14px;&#xA;
                            font-variant-ligatures:&#xA; normal;
                            orphans: 2; widows: 2;&#xA;&#xA;
                            background-color: rgb(255, 255, 255);&#xA;
                            margin-bottom: 0px&#xA; !important;"
                            class="">Please advise if you need anything
                            further.</div>
                        </div>
                      </blockquote>
                      <div class="">
                        <div class=""><br class="">
                        </div>
                        <div class="">I think the timeline is correct
                          (the issue is in esp idf master some time
                          between May and July 2018), but please let me
                          know if you know differently (or update the
                          github issue with your comments).</div>
                        <div class=""><br class="">
                        </div>
                        <div class="">Regards, Mark</div>
                        <div class=""><br class="">
                          <blockquote type="cite" class="">
                            <div class="">On 23 Nov 2018, at 6:19 AM,
                              Michael Balzer <<a
                                href="mailto:dexter@expeedo.de" class=""
                                moz-do-not-send="true">dexter@expeedo.de</a>>
                              wrote:</div>
                            <br class="Apple-interchange-newline">
                            <div class="">
                              <div class="">esp-idf and OVMS branches
                                are back to the working version.<br
                                  class="">
                                <br class="">
                                In case you also lost your config:  I
                                also just fixed a bug on restoring into
                                an empty /store partition.<br class="">
                                <br class="">
                                Regards,<br class="">
                                Michael<br class="">
                                <br class="">
                                <br class="">
                                Am 22.11.18 um 22:34 schrieb Michael
                                Balzer:<br class="">
                                <blockquote type="cite" class="">See <a
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/165"
                                    class="" moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/165</a><br
                                    class="">
                                  <br class="">
                                  I'll reset both master branches now.<br
                                    class="">
                                  <br class="">
                                  If you're about to pull, please wait
                                  until I've reverted the branches.<br
                                    class="">
                                  <br class="">
                                  Regards,<br class="">
                                  Michael<br class="">
                                  <br class="">
                                </blockquote>
                                <br class="">
                                -- <br class="">
                                Michael Balzer * Helkenberger Weg 9 *
                                D-58256 Ennepetal<br class="">
                                Fon 02333 / 833 5735 * Handy 0176 / 206
                                989 26<br class="">
                                <br class="">
_______________________________________________<br class="">
                                OvmsDev mailing list<br class="">
                                <a
                                  href="mailto:OvmsDev@lists.openvehicles.com"
                                  class="" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a><br
                                  class="">
                                <a class="moz-txt-link-freetext"
                                  href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev"
                                  moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br
                                  class="">
                              </div>
                            </div>
                          </blockquote>
                        </div>
                        <br class="">
                      </div>
                      <br class="">
                      <fieldset class="mimeAttachmentHeader"></fieldset>
                      <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
                    </blockquote>
                    <br class="">
                    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
                  </div>
                  _______________________________________________<br
                    class="">
                  OvmsDev mailing list<br class="">
                  <a href="mailto:OvmsDev@lists.openvehicles.com"
                    class="" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a><br
                    class="">
                  <a class="moz-txt-link-freetext"
                    href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev"
                    moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br
                    class="">
                </div>
              </blockquote>
            </div>
            <br class="">
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="160">-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
  </body>
</html>