<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCU Bootloader中的主题 Re: utasker Serial Loader problem - HTTP server only sends octet-stream null character file</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/utasker-Serial-Loader-problem-HTTP-server-only-sends-octet/m-p/1064764#M1202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please modify the following 2 lines in &lt;STRONG&gt;http.c&lt;/STRONG&gt; from&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#elif defined ACTIVE_FILE_SYSTEM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#elif defined ACTIVE_FILE_SYSTEM || defined SUPPORT_INTERNAL_HTML_FILES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines &lt;STRONG&gt;838&lt;/STRONG&gt; and &lt;STRONG&gt;1884&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The serial loader doesn't use a file system but instead has a fixed page in code that is served on any address. Unfortunately the two locations which are responsible for inserting the content were not active due to the ACTIVE_FILE_SYSTEM not being enabled, whereby this was an incorrect modification that didn't respect the serial loader's setting.&lt;/P&gt;&lt;P&gt;The result was that the data content was all zeros and hence the octet-stream file instead of the expected web page content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't expect this to cause a hang though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected web page on the FRDM-K64F is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114756i990381E0154B0375/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you see a strange character before "FRDM-K64F" or in the password windows make the following modification in config.h:&lt;BR /&gt;Change&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define WEB_PARSER_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '£'&amp;nbsp;&amp;nbsp; // this symbol is used in Web pages to instruct parsing to begin&lt;/SPAN&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define WEB_PARSER_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '^'&amp;nbsp;&amp;nbsp; // this symbol is used in Web pages to instruct parsing to begin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and replace all occurrences of £ in the FILE_404_CONTENT string with ^ instead.&lt;/P&gt;&lt;P&gt;Recently I have found that some editors are replacing the £ in strings with what looks like a unicode character of two bytes and the first is then visible when the place-holder is replaced with the generated content (like the board's name). Avoiding the use of £ and using a different symbol solves it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2020 23:55:23 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2020-07-06T23:55:23Z</dc:date>
    <item>
      <title>utasker Serial Loader problem - HTTP server only sends octet-stream null character file</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/utasker-Serial-Loader-problem-HTTP-server-only-sends-octet/m-p/1064763#M1201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the utasker Serial Loader working with serial and MSD and have problems when I add Ethernet to the mix.&amp;nbsp; Using either Chrome or Firefox when I connect to the server's IP address I only receive an octet-stream file with all Null characters. It's running on my own PCB which is based on the FRDM-MK64 board. Other Ethernet server demo apps from NXP work properly. Is it missing an index.html file? And after attempting to connect to the server the serial loader locks up and requires a hard reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jul 2020 11:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/utasker-Serial-Loader-problem-HTTP-server-only-sends-octet/m-p/1064763#M1201</guid>
      <dc:creator>phantom</dc:creator>
      <dc:date>2020-07-04T11:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: utasker Serial Loader problem - HTTP server only sends octet-stream null character file</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/utasker-Serial-Loader-problem-HTTP-server-only-sends-octet/m-p/1064764#M1202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please modify the following 2 lines in &lt;STRONG&gt;http.c&lt;/STRONG&gt; from&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#elif defined ACTIVE_FILE_SYSTEM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#elif defined ACTIVE_FILE_SYSTEM || defined SUPPORT_INTERNAL_HTML_FILES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lines &lt;STRONG&gt;838&lt;/STRONG&gt; and &lt;STRONG&gt;1884&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The serial loader doesn't use a file system but instead has a fixed page in code that is served on any address. Unfortunately the two locations which are responsible for inserting the content were not active due to the ACTIVE_FILE_SYSTEM not being enabled, whereby this was an incorrect modification that didn't respect the serial loader's setting.&lt;/P&gt;&lt;P&gt;The result was that the data content was all zeros and hence the octet-stream file instead of the expected web page content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't expect this to cause a hang though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expected web page on the FRDM-K64F is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114756i990381E0154B0375/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should you see a strange character before "FRDM-K64F" or in the password windows make the following modification in config.h:&lt;BR /&gt;Change&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define WEB_PARSER_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '£'&amp;nbsp;&amp;nbsp; // this symbol is used in Web pages to instruct parsing to begin&lt;/SPAN&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#define WEB_PARSER_START&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '^'&amp;nbsp;&amp;nbsp; // this symbol is used in Web pages to instruct parsing to begin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and replace all occurrences of £ in the FILE_404_CONTENT string with ^ instead.&lt;/P&gt;&lt;P&gt;Recently I have found that some editors are replacing the £ in strings with what looks like a unicode character of two bytes and the first is then visible when the place-holder is replaced with the generated content (like the board's name). Avoiding the use of £ and using a different symbol solves it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 23:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/utasker-Serial-Loader-problem-HTTP-server-only-sends-octet/m-p/1064764#M1202</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-07-06T23:55:23Z</dc:date>
    </item>
  </channel>
</rss>

