<?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>topic Re: Latest ColdFireLite demo firmware supports serial flash in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129572#M688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi. Thanks for posting your HTTP server code. It's an incredible help to me and, I'm sure, to many others.&lt;BR /&gt;&lt;BR /&gt;I'm trying to understand the code for freescale_http_upload_file, because the compiler quite properly generates a complaint about using the variable j without its being initialized.&lt;BR /&gt;&lt;BR /&gt;It looks like you intended to replace the inline code that writes to flash by a call to emg_web_write using an #if 0, but you left the tail end of the original code, which relies on having j set by the prior for j loop. IIRC, this is not generally a safe practice anyway, and in any case, the code won't work correctly if USE_SERIAL_FLASH is defined. So, skipping around this code would be a good idea. Am I correct in my presumption that moving the #endif corresponding to the #if 0 down to be just above the line&lt;BR /&gt;if( (freescale_http_sessions[session].file_size == 0) ||&lt;BR /&gt;would be the right thing to do?&lt;BR /&gt;&lt;BR /&gt;This all assumes that that emg_web_write writes out the entire packet that m_recv gathered, but I don't understand why it necessarily does.&lt;BR /&gt;&lt;BR /&gt;My confusion comes down to this: is there some reason to believe that the value returned by m_recv (i.e., the number of bytes it got) is a multiple of 4? If not, then what happens to the last few bytes in the buffer? It looks like they don't get copied. One consequence would be that freescale_http_sessions[session].file_size is never set to zero, and this seems to imply that the upload appears to hang and never complete. If the length is guaranteed to be a multiple of 4, then a comment to that effect - along with at least a hint of the reason - would be a big help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Richard&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Mar 2007 06:48:04 GMT</pubDate>
    <dc:creator>Richly</dc:creator>
    <dc:date>2007-03-03T06:48:04Z</dc:date>
    <item>
      <title>Latest ColdFireLite demo firmware supports serial flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129570#M686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I posted the latest ColdFire Lite firmware about a month ago.&amp;nbsp; If you were at FTF,&amp;nbsp; and took my ColdFireLite class you allready have the code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This latest code adds support for serial flash.&amp;nbsp; Using serial flash you can have up to 4 Megabytes of web pages, all updatable over ethernet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also re-wrote the flash file systems API to support mutiple flash file systems.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The project includes a sample SPI driver, and IIC driver.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The Freescale HTTP server supports:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Up to 4 simutaneous connections,&lt;/DIV&gt;&lt;DIV&gt;Keep alive,&lt;/DIV&gt;&lt;DIV&gt;3 flash file systems,&lt;/DIV&gt;&lt;DIV&gt;web page uploading over ethernet using port 80,&lt;/DIV&gt;&lt;DIV&gt;Dynamic HTML&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and its all free and public source.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2FCFCOMM%2F744_ColdFire_Web_Server_FTF06.zip" rel="nofollow" target="_blank"&gt;ColdFire_Web_Server_FTF06.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-21&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:40 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 10:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129570#M686</guid>
      <dc:creator>ericgregori</dc:creator>
      <dc:date>2006-09-08T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Latest ColdFireLite demo firmware supports serial flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129571#M687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Eric,&lt;BR /&gt;&lt;BR /&gt;Is there a snippet of schematic, parts list, etc of a known working implementation of SPI or I2C flash?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 01:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129571#M687</guid>
      <dc:creator>jvantol</dc:creator>
      <dc:date>2006-12-21T01:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Latest ColdFireLite demo firmware supports serial flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129572#M688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi. Thanks for posting your HTTP server code. It's an incredible help to me and, I'm sure, to many others.&lt;BR /&gt;&lt;BR /&gt;I'm trying to understand the code for freescale_http_upload_file, because the compiler quite properly generates a complaint about using the variable j without its being initialized.&lt;BR /&gt;&lt;BR /&gt;It looks like you intended to replace the inline code that writes to flash by a call to emg_web_write using an #if 0, but you left the tail end of the original code, which relies on having j set by the prior for j loop. IIRC, this is not generally a safe practice anyway, and in any case, the code won't work correctly if USE_SERIAL_FLASH is defined. So, skipping around this code would be a good idea. Am I correct in my presumption that moving the #endif corresponding to the #if 0 down to be just above the line&lt;BR /&gt;if( (freescale_http_sessions[session].file_size == 0) ||&lt;BR /&gt;would be the right thing to do?&lt;BR /&gt;&lt;BR /&gt;This all assumes that that emg_web_write writes out the entire packet that m_recv gathered, but I don't understand why it necessarily does.&lt;BR /&gt;&lt;BR /&gt;My confusion comes down to this: is there some reason to believe that the value returned by m_recv (i.e., the number of bytes it got) is a multiple of 4? If not, then what happens to the last few bytes in the buffer? It looks like they don't get copied. One consequence would be that freescale_http_sessions[session].file_size is never set to zero, and this seems to imply that the upload appears to hang and never complete. If the length is guaranteed to be a multiple of 4, then a comment to that effect - along with at least a hint of the reason - would be a big help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Richard&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 06:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Latest-ColdFireLite-demo-firmware-supports-serial-flash/m-p/129572#M688</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2007-03-03T06:48:04Z</dc:date>
    </item>
  </channel>
</rss>

