<?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中的主题 LPC546xx SPIFI dual section XIP</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678408#M27268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I plan to use a&amp;nbsp;LPC546xx in a new design where I need an external Flash to store firmware.&lt;/P&gt;&lt;P&gt;I need two Flash section to be able to perform safe OTA firmware update in ping-pong mode. One section is updated while code is executed from the other section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if SPIFI can be used for such scenario ?&lt;/P&gt;&lt;P&gt;In the datasheet and user manual I can read :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;SPIFI has two operational modes: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1. Memory Mode - whereby the contents of the FLASH are memory mapped in the chip. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. Command Mode - whereby the user can manually construct command sequences for the flash. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SPIFI cannot switch over from Memory Mode to Command mode and vice versa without writing 1 to the RESET bit in the SPIFI Status Register and polling until it is cleared by hardware to ensure that the current mode has been aborted.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand that I cannot execute code from one section while updating another section. Is that correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also read :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;The SPIFI on the LPC546xx has a reduced cache for accesses to the serial flash region of the memory map, so direct execution of code from external SPI flash memory is not recommended.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And somewhere else :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Provides XIP (execute in place) feature to execute code directly from serial flash.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which statement is correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;PGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2017 12:20:59 GMT</pubDate>
    <dc:creator>pge</dc:creator>
    <dc:date>2017-06-07T12:20:59Z</dc:date>
    <item>
      <title>LPC546xx SPIFI dual section XIP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678408#M27268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I plan to use a&amp;nbsp;LPC546xx in a new design where I need an external Flash to store firmware.&lt;/P&gt;&lt;P&gt;I need two Flash section to be able to perform safe OTA firmware update in ping-pong mode. One section is updated while code is executed from the other section.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if SPIFI can be used for such scenario ?&lt;/P&gt;&lt;P&gt;In the datasheet and user manual I can read :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;SPIFI has two operational modes: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1. Memory Mode - whereby the contents of the FLASH are memory mapped in the chip. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. Command Mode - whereby the user can manually construct command sequences for the flash. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SPIFI cannot switch over from Memory Mode to Command mode and vice versa without writing 1 to the RESET bit in the SPIFI Status Register and polling until it is cleared by hardware to ensure that the current mode has been aborted.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I understand that I cannot execute code from one section while updating another section. Is that correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also read :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;The SPIFI on the LPC546xx has a reduced cache for accesses to the serial flash region of the memory map, so direct execution of code from external SPI flash memory is not recommended.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And somewhere else :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Provides XIP (execute in place) feature to execute code directly from serial flash.&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which statement is correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;PGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678408#M27268</guid>
      <dc:creator>pge</dc:creator>
      <dc:date>2017-06-07T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPIFI dual section XIP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678409#M27269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="300556" data-username="pge" href="https://community.nxp.com/people/pge"&gt;PGE PGE&lt;/A&gt;,&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5; background-color: inherit;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;the opportunity to serve you.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;1) I understand that I cannot execute code from one section while updating another section. Is that correct ?&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, it's correct.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;2) Which statement is correct ?&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In my opinion, the last statement exemplifies the general feature of the SPIFI module, however the first two statements demonstrate the specific feature of the SPIFI module in the LPC546xx.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Hope this is clear.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Have a great day,&lt;/DIV&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 02:57:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678409#M27269</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-06-08T02:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPIFI dual section XIP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678410#M27270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. The answer for point 2 is not clear. Is it ok (recommended) to run code from SPIFI or not ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 07:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678410#M27270</guid>
      <dc:creator>pge</dc:creator>
      <dc:date>2017-06-08T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPIFI dual section XIP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678411#M27271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="300556" data-username="pge" href="https://community.nxp.com/people/pge"&gt;pge&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;In the my opinion, the LPC54608 can run the code from the external SPI flash memory as if it was in the internal flash, however the performance is not very good, and this scenario is not recommended.&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 06:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPIFI-dual-section-XIP/m-p/678411#M27271</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-06-09T06:36:25Z</dc:date>
    </item>
  </channel>
</rss>

