<?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 Hi, How can i make bootloader to Read bin file from external EEPROM and load it to its Flash ? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hi-How-can-i-make-bootloader-to-Read-bin-file-from-external/m-p/216038#M18781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use "&lt;SPAN style="color: #0000FF;"&gt;mc68hc908lk24&lt;/SPAN&gt;" and connect it with "&lt;SPAN style="color: #0000FF;"&gt;EEPROM&lt;/SPAN&gt;" through "&lt;SPAN style="color: #0000FF;"&gt;IIC&lt;/SPAN&gt;" and i want to make bootloader to Read bin file from EEPROM and load it to its &lt;SPAN style="color: #0000FF;"&gt;Flash&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2011 14:55:24 GMT</pubDate>
    <dc:creator>Eng_Akram</dc:creator>
    <dc:date>2011-06-19T14:55:24Z</dc:date>
    <item>
      <title>Hi, How can i make bootloader to Read bin file from external EEPROM and load it to its Flash ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hi-How-can-i-make-bootloader-to-Read-bin-file-from-external/m-p/216038#M18781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use "&lt;SPAN style="color: #0000FF;"&gt;mc68hc908lk24&lt;/SPAN&gt;" and connect it with "&lt;SPAN style="color: #0000FF;"&gt;EEPROM&lt;/SPAN&gt;" through "&lt;SPAN style="color: #0000FF;"&gt;IIC&lt;/SPAN&gt;" and i want to make bootloader to Read bin file from EEPROM and load it to its &lt;SPAN style="color: #0000FF;"&gt;Flash&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 14:55:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hi-How-can-i-make-bootloader-to-Read-bin-file-from-external/m-p/216038#M18781</guid>
      <dc:creator>Eng_Akram</dc:creator>
      <dc:date>2011-06-19T14:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, How can i make bootloader to Read bin file from external EEPROM and load it to its Flash ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hi-How-can-i-make-bootloader-to-Read-bin-file-from-external/m-p/216039#M18782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice that you are attempting to use a device from the now obsolete HC908 family.&amp;nbsp; A member from the later&amp;nbsp;MC9S08 family would be a better choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you mean by a "bin file" - do you mean a "binary image"?&amp;nbsp; In this case, the EEPROM contents would need to&amp;nbsp;represent the image of the full 24576 bytes of flash memory, minus the amount occupied by the bootloader code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, the EEPROM could contain the program data in S19 format.&amp;nbsp; This&amp;nbsp;could occupy more EEPROM space, since the binary data is represented by two ASCII characters per byte, and there are additional overheads for start address, number of bytes, and the&amp;nbsp;checksum for each line. &amp;nbsp;But only the flash areas that actually contain code would need to be programmed.&amp;nbsp; The bootloader would need to translate each S19 line into binary data, but this&amp;nbsp;should be&amp;nbsp;a relatively simple process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bootloader will need to redirect all&amp;nbsp;the interrupt vectors to a secondary vector table within the user flash area, usually immediately below the bootloader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how you would intend the bootloader should operate.&amp;nbsp; Following a reset, it would need to determine whether an EEPROM device was present, and then do a byte-by-byte comparison of the EEPROM code with the flash code.&amp;nbsp; Only if there were any differences would the EEPROM data be written to flash.&amp;nbsp; With S19 format, the contents of the unused flash would not need to be tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bootloader&amp;nbsp;would make use of monitor ROM routines to erase and program the flash memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 01:32:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hi-How-can-i-make-bootloader-to-Read-bin-file-from-external/m-p/216039#M18782</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-06-22T01:32:51Z</dc:date>
    </item>
  </channel>
</rss>

