<?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のトピックRe: Disable XIP Mode on LPC546 Devices</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056337#M40902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;configuration of XIP mode is in linker file. for example below is part of LPC54018 XIP configuration in linker file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112286i2F8258341F5B65C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here BOARD_FLASH is QSPI flash address. with this configuration, code can run QSPI flash in XIP mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2020 06:55:01 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2020-06-09T06:55:01Z</dc:date>
    <item>
      <title>Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056332#M40897</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;We are using a QSPI chip to read and write static data. But for security reasons, we want to disable the MCUs ability to execute code from the SPIFI interface, but still be able to read and write from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this on the LPC546 devices? I though maybe there is a register bit I'm missing to disable XIP mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 21:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056332#M40897</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2020-06-03T21:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056333#M40898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt&lt;/P&gt;&lt;P&gt;You have&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;QSPI FLASH connected. the boot ROM&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;loads the complete QSPI image to on-chip RAM to run. This is executed by boot ROM automatically. you don't need set register.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If you want to run QSPI FLASH in XIP mode, you need config linker file for it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 09:10:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056333#M40898</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-06-05T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056334#M40899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;You have&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;QSPI FLASH connected. the boot ROM&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp;loads the complete QSPI image to on-chip RAM to run. This is executed by boot ROM automatically. you don't need set register."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;I do not want it to do this. I would like to disable boot ROM from being able to load from QSPI.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f; font-weight: inherit; "&gt;2)"&lt;SPAN style="background-color: #ffffff;"&gt;If you want to run QSPI FLASH in XIP mode, you need config linker file for it."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;I do not want it to do this. I want to disable XIP. I would like to the MCU to be able to read and write data to external flash, but I do NOT want it to be able to execute code from external flash.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;This is to prevent malicious attacks. If someone uses an external programmer to load op codes into external flash, I do not want the MCU to be able to execute them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #51626f; font-weight: inherit; "&gt;Is there a way to prevent the MCU from executing code from QSPI FLASH, but still be able to memory map the FLASH to read and write data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2020 14:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056334#M40899</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2020-06-05T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056335#M40900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;SPIFI boot is on LPC540xx, not on LPC546xx, so LPC546xx doesn't load SPIFI Flash.&lt;/P&gt;&lt;P&gt;As I said, LPC546xx doesn't run QSPI FLSH in XIP mode by default.&lt;/P&gt;&lt;P&gt;If you want to read QSPI FLSH during code running ,&amp;nbsp; you need initialize spifi interface first. the demo code is in LPC546xx SDK, search demo code:&lt;/P&gt;&lt;P&gt;nor_flash&lt;/P&gt;&lt;P&gt;polling_transfer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 09:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056335#M40900</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-06-08T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056336#M40901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's good news the LPC546 does not support XIP in the BOOT ROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application, I have the SPIFI interface configured and the external QSPI flash is memory mapped. So we can have fast and easy reading of the data.&lt;BR /&gt;&lt;BR /&gt;Are you saying there is an additional step to enable XIP mode to execute from QSPI flash? How does one enable XIP mode? Just so I can make sure I do not enable it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 14:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056336#M40901</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2020-06-08T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056337#M40902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;configuration of XIP mode is in linker file. for example below is part of LPC54018 XIP configuration in linker file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112286i2F8258341F5B65C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here BOARD_FLASH is QSPI flash address. with this configuration, code can run QSPI flash in XIP mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 06:55:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1056337#M40902</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-06-09T06:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Disable XIP Mode on LPC546 Devices</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1424751#M48142</link>
      <description>&lt;P&gt;I am using LPC54016 on custom board with external QSPI flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use QSPI flash for boot rom of program memory and use it for reading and writing of data at the same time?&lt;/P&gt;&lt;P&gt;Are there any SDK examples available for evk 540xx for reading and writing external flash?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 17:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Disable-XIP-Mode-on-LPC546-Devices/m-p/1424751#M48142</guid>
      <dc:creator>NVazquez</dc:creator>
      <dc:date>2022-03-08T17:58:09Z</dc:date>
    </item>
  </channel>
</rss>

