<?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>LPC MicrocontrollersのトピックSplitting bin file for programming flash A/B banks via USB &amp; LPCscrypt</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881929#M35283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a two-core application running on LPC4357. The application for the M4 core is located in the Flash bank A and the application for M0 is located in the bank B.&lt;/P&gt;&lt;P&gt;I'd like to program both flash areas through USB using LPCScrypt.&lt;/P&gt;&lt;P&gt;The IDE (LPCXpresso / MCUXpresso) generates one large bin file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please recommend a convenient way to generate/extract the two parts?&lt;/P&gt;&lt;P&gt;I've done it using a HEX editor. It works, but I wouldn't call that approach convenient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Mar 2019 09:48:56 GMT</pubDate>
    <dc:creator>quex</dc:creator>
    <dc:date>2019-03-22T09:48:56Z</dc:date>
    <item>
      <title>Splitting bin file for programming flash A/B banks via USB &amp; LPCscrypt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881929#M35283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a two-core application running on LPC4357. The application for the M4 core is located in the Flash bank A and the application for M0 is located in the bank B.&lt;/P&gt;&lt;P&gt;I'd like to program both flash areas through USB using LPCScrypt.&lt;/P&gt;&lt;P&gt;The IDE (LPCXpresso / MCUXpresso) generates one large bin file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please recommend a convenient way to generate/extract the two parts?&lt;/P&gt;&lt;P&gt;I've done it using a HEX editor. It works, but I wouldn't call that approach convenient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 09:48:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881929#M35283</guid>
      <dc:creator>quex</dc:creator>
      <dc:date>2019-03-22T09:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting bin file for programming flash A/B banks via USB &amp; LPCscrypt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881930#M35284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SRecord is generally useful for file transformations, such as format conversions and spitting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sourceforge.net/projects/srecord/"&gt;https://sourceforge.net/projects/srecord/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 12:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881930#M35284</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2019-03-22T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting bin file for programming flash A/B banks via USB &amp; LPCscrypt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881931#M35285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;thank you. SRecord is a nice tool.&lt;/P&gt;&lt;P&gt;I am able to to extract the BankA part using the crop filter:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;srec_cat source.bin -binary -crop 0x00 0x080000 -o BankA.bin -binary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And the BankB part using the offset filter:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;srec_cat source.bin -binary -offset -0x01000000 -o BankB.bin -binary&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only problem is that I end up with the BankA.bin padded with zeros up to the size of the flash and the BankB.bin without additional zeros. That is just a cosmetic problem, but does anybody know how to get rid of those zeros when I do not know the length of the actual data? (Alternatively how to add the zero padding to the BankB binary and pretend that it's intentional ;o)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 23:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881931#M35285</guid>
      <dc:creator>quex</dc:creator>
      <dc:date>2019-03-22T23:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting bin file for programming flash A/B banks via USB &amp; LPCscrypt</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881932#M35286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are some examples plucked from my Makefiles.&lt;BR /&gt;Note the -Fill with -over option.&lt;/P&gt;&lt;P&gt;As well as how to align to a given block size and the use of parentheses to nest commands.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It might make sense to do the Fill on split Hex files before the bin conversion.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-----&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# Find out the size:&lt;BR /&gt; srec_info $(OBJDIR)/$(TARGET).org.s19&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Note we build two CRC's the old one we always used so older boards can still be loaded by older program, then the new one used by newer BootLoaders:&lt;BR /&gt; srec_cat $(OBJDIR)/$(TARGET).org.hex -Intel -Little_Endian_CRC16 -MAximum-Address $(OBJDIR)/$(TARGET).org.hex -Intel -Cyclic_Redundancy_Check16_XMODEM -Fill 0xFF -OVER $(OBJDIR)/$(TARGET).org.hex -Intel -Output $(OBJDIR)/$(TARGET).hex.xmd -Intel&lt;BR /&gt; srec_cat $(OBJDIR)/$(TARGET).hex.xmd -Intel -Fill 0xFF -over $(OBJDIR)/$(TARGET).hex.xmd -Intel -o $(OBJDIR)/$(TARGET).flash.bin.1 -binary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Align to 8 byte boundary:&lt;BR /&gt;# srec_cat test4.s19 -Output_Block_Size 8 -Output_Block_Packing -output test4new.s19&lt;BR /&gt;#&lt;BR /&gt;# Align to 64 byte boundary, which prevents internal breaks in srec_cat's implementation:&lt;BR /&gt;# srec_cat test4.s19 -Output_Block_Size 64 -Output_Block_Packing -output test4new64.s19&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;srec_cat \&lt;BR /&gt; '(' $(OBJDIR)/$(TARGET).org.s19 -Motorola -Fill 0xFF -Over $(OBJDIR)/$(TARGET).org.s19 -Motorola ')' \&lt;BR /&gt; -Output $(OBJDIR)/$(TARGET).$(NEW_BUILDNUMBER).bin -Binary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;srec_cat -Output_Block_Size 64 -Output_Block_Packing \&lt;BR /&gt; '(' $(OBJDIR)/$(TARGET).org.s19 -Motorola -Fill 0xFF -Over $(OBJDIR)/$(TARGET).org.s19 -Motorola ')' \&lt;BR /&gt; -Output $(OBJDIR)/$(TARGET).$(NEW_BUILDNUMBER).s19 -Motorola&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;# Show what is in the Boot Config Area:&lt;BR /&gt; @echo KBOOT BCA:&lt;BR /&gt; srec_cat $(TARGET_DIR)/$(TARGET).bin -binary -crop 0x3c0 0x400 -output - -hex_dump&lt;BR /&gt; srec_cat $(TARGET_DIR)/$(TARGET).bin -binary -crop 0x400 0x410 -output - -hex_dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;srec_cat RadioBinaries/Model$(GPSPATH)/Radio_Model$(GPSPATH)_NoBootloader.hex -Intel -Output RadioBinaries/Model$(GPSPATH)/Radio_Model(GPSPATH)_flash.c -C_Array Radio_Flash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Splitting-bin-file-for-programming-flash-A-B-banks-via-USB/m-p/881932#M35286</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2019-03-25T12:21:31Z</dc:date>
    </item>
  </channel>
</rss>

