<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Since publishing the build with the new toolchain, the identifiable
    crashes have been concentrating within / around the LWIP / Wifi
    stacks.<br>
    <br>
    I have now upgraded to the latest toolchain update (<a
href="https://github.com/espressif/esp-idf/issues/2892#issuecomment-501106283">https://github.com/espressif/esp-idf/issues/2892#issuecomment-501106283</a>).<br>
    <br>
    As a new Wifi blob still isn't available, I have also disabled
    CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST to see if that helps.<br>
    <br>
    Internal memory use went up a bit, but totally acceptable. I'm going
    to publish the new build to my "edge" users now.<br>
    <br>
    Regards,<br>
    Michael<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 05.06.19 um 20:57 schrieb Michael
      Balzer:<br>
    </div>
    <blockquote type="cite"
      cite="mid:c3c48bcc-6145-afc3-ab69-9f712e9bf6a8@expeedo.de">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      It *is* worth trying, Espressif just forgot to mention a necessary
      build config change.<br>
      <br>
      Details: <a
href="https://github.com/espressif/esp-idf/issues/2892#issuecomment-499184318"
        moz-do-not-send="true">https://github.com/espressif/esp-idf/issues/2892#issuecomment-499184318</a><br>
      <br>
      I've created a test branch for this: <a
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commits/spiram-fix-test"
        moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commits/spiram-fix-test</a><br>
      <br>
      I'm now running the new version on both my modules, and they seem
      to be very stable up to now. Not a single websocket data
      corruption yet.<br>
      <br>
      I'll publish the build to my "edge" users now.<br>
      <br>
      Regards,<br>
      Michael<br>
      <br>
      <br>
      <div class="moz-cite-prefix">Am 05.06.19 um 19:01 schrieb Michael
        Balzer:<br>
      </div>
      <blockquote type="cite"
        cite="mid:30ff0953-3a0d-feae-daa7-0908960c9db2@expeedo.de">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        Not worth trying yet.<br>
        <br>
        It seems the toolchain libstdc++ hasn't been built with
        workaround, std::string is still broken.<br>
        <br>
        Regards,<br>
        Michael<br>
        <br>
        <br>
        <div class="moz-cite-prefix">Am 05.06.19 um 09:19 schrieb Mark
          Webb-Johnson:<br>
        </div>
        <blockquote type="cite"
          cite="mid:155DBE4D-BBA2-495E-9121-6EB611F227BE@webb-johnson.net">
          <meta http-equiv="Content-Type" content="text/html;
            charset=windows-1252">
          FYI: Espressif have (finally) released a test toolchain for
          our PSRAM issue:
          <div class=""><br class="">
          </div>
          <blockquote style="margin: 0 0 0 40px; border: none; padding:
            0px;" class="">
            <div class=""><a
                href="https://github.com/espressif/esp-idf/issues/2892"
                class="" moz-do-not-send="true">https://github.com/espressif/esp-idf/issues/2892</a></div>
            <div class=""><br class="">
            </div>
            <div class=""><a
href="https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-90-g26d9621-5.2.0-psramfix-20190605.tar.gz"
                class="" moz-do-not-send="true">Linux</a></div>
            <div class=""><a
href="https://dl.espressif.com/dl/xtensa-esp32-elf-win32-1.22.0-90-g26d9621-5.2.0-psramfix-20190605.tar.gz"
                class="" moz-do-not-send="true">Windows</a></div>
            <div class=""><a
href="https://dl.espressif.com/dl/xtensa-esp32-elf-macos-1.22.0-90-g26d9621-5.2.0-psramfix-20190605.tar.gz"
                class="" moz-do-not-send="true">OSX</a></div>
          </blockquote>
          <div class=""><br class="">
          </div>
          <div class="">Apparently, we need to include the following
            flags:</div>
          <div class=""><br class="">
          </div>
          <blockquote style="margin: 0 0 0 40px; border: none; padding:
            0px;" class="">
            <div class="">
              <pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 11.899999618530273px; margin-bottom: 16px; margin-top: 0px; word-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; caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46);" class=""><code style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; background-color: transparent; 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; word-wrap: normal;" class="">CFLAGS+=-mfix-esp32-psram-cache-dupldst
CXXFLAGS+=-mfix-esp32-psram-cache-dupldst</code></pre>
            </div>
          </blockquote>
          <div class=""><br class="">
          </div>
          <div class="">This is a preliminary test fix only, so not for
            general release, but worth trying.</div>
          <div class=""><br class="">
          </div>
          <div class="">Regards, Mark</div>
          <div class=""><br class="">
          </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" 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>