<?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のトピックWriting data to execute-in-place SPI Flash from the running program (LPC-Link2)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-data-to-execute-in-place-SPI-Flash-from-the-running/m-p/576894#M19512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dhfcghf6 on Mon Dec 28 01:51:46 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to write/update/read data to execute-in-place SPI Flash from the running program? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our target is LPC-Link2, which has LPC4370(flashless) MCU and one SPI Flash on it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since LPC4370 is a flashless part, the code is stored in the SPI Flash.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I think the code for SPI Flash updating should be relocated to, and then run in IRAM.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using another LPC-Link2 as a debugger attached to the target LPC-Link2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE is LPCXpresso 7.7.2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-1) Is there any working example for LPC-Link2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found some discussions but they seem to be obsolete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Winbond W25Q80BV Support spifilib LPCLink2 Board (Wed, 2014-08-06) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fwinbond-w25q80bv-support-spifilib-lpclink2-board" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/winbond-w25q80bv-support-spifilib-lpclink2-board&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run-Time Self-Programming in LPC4370 SPIFI MODE (Tue, 2014-04-29) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Frun-time-self-programming-lpc4370-spifi-mode" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/run-time-self-programming-lpc4370-spifi-mode&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't find any relocation example in the latest LPCOpen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen Software Development Platform (LPC43xx packages) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;v2.12 for LPC-Link 2 (LPC4370) board (05/15/2014) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-software-development-platform-lpc43xx-packages" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-2) Where is "The page below" referred in p. 35 of LPCSPIFILIB document?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The API Documentation of SPIFI Library contains a reference to the way how to relocate library code to another memory.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I couldn't find it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In "SPIFI Library" web page &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2FSPIFI" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/SPIFI&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is a link to API Documentation [pdf]&amp;nbsp; (version: Thu Jan 22 2015 17:46:11) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fsystem%2Ffiles%2Flpclibspifi_1.03_68.pdf" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/lpclibspifi_1.03_68.pdf&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the bottom of p. 35, there is the following description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"If you are using a SPIFI FLASH device as a execute-in-place memory for your LPC device, you can’t use the SPIFI library if it’s located in SPIFI FLASH. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To use the library in this case, the library needs to be relocated to another memory (like IRAM) and the functions executed from there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The page below describes how to setup and use the library in this type of system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copyright (C) 2014 NXP Semiconductors. All rights reserved. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know where is "The page below" referred from this paragraph.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The last line of the paragraph ("Copyright (C) 2014 NXP Semiconductors. All rights reserved.") is linked to Section 4.9 (p. 33) which is blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-3) Modification of debug launch configuration necessary with SPIFI Library relocation?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the SPIFI Library is relocated to IRAM, is it necessary to modify debug launch configuration for LPC-Link2 debugger? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running code from RAM (Mon, 2014-02-17) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Frunning-code-ram%23comment-1135347" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/running-code-ram#comment-1135347&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"But note that if you are using LPC-Link2 as your debug probe and want to download to RAM, then you will need to modify the debug launch configuration" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to build and debug LPC-Link 2 LPCXpresso IRAM only projects? (Mon, 2014-01-20) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fhow-build-and-debug-lpc-link-2-lpcxpresso-iram-only-projects%23comment-1134747" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/how-build-and-debug-lpc-link-2-lpcxpresso-iram-only-projects#comment-1134747&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:00:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:00:26Z</dc:date>
    <item>
      <title>Writing data to execute-in-place SPI Flash from the running program (LPC-Link2)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-data-to-execute-in-place-SPI-Flash-from-the-running/m-p/576894#M19512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dhfcghf6 on Mon Dec 28 01:51:46 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to write/update/read data to execute-in-place SPI Flash from the running program? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our target is LPC-Link2, which has LPC4370(flashless) MCU and one SPI Flash on it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since LPC4370 is a flashless part, the code is stored in the SPI Flash.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I think the code for SPI Flash updating should be relocated to, and then run in IRAM.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using another LPC-Link2 as a debugger attached to the target LPC-Link2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE is LPCXpresso 7.7.2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-1) Is there any working example for LPC-Link2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found some discussions but they seem to be obsolete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Winbond W25Q80BV Support spifilib LPCLink2 Board (Wed, 2014-08-06) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fwinbond-w25q80bv-support-spifilib-lpclink2-board" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/winbond-w25q80bv-support-spifilib-lpclink2-board&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run-Time Self-Programming in LPC4370 SPIFI MODE (Tue, 2014-04-29) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Frun-time-self-programming-lpc4370-spifi-mode" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/run-time-self-programming-lpc4370-spifi-mode&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't find any relocation example in the latest LPCOpen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen Software Development Platform (LPC43xx packages) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;v2.12 for LPC-Link 2 (LPC4370) board (05/15/2014) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-software-development-platform-lpc43xx-packages" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-2) Where is "The page below" referred in p. 35 of LPCSPIFILIB document?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The API Documentation of SPIFI Library contains a reference to the way how to relocate library code to another memory.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I couldn't find it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In "SPIFI Library" web page &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2FSPIFI" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/SPIFI&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is a link to API Documentation [pdf]&amp;nbsp; (version: Thu Jan 22 2015 17:46:11) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fsystem%2Ffiles%2Flpclibspifi_1.03_68.pdf" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/system/files/lpclibspifi_1.03_68.pdf&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the bottom of p. 35, there is the following description: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"If you are using a SPIFI FLASH device as a execute-in-place memory for your LPC device, you can’t use the SPIFI library if it’s located in SPIFI FLASH. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To use the library in this case, the library needs to be relocated to another memory (like IRAM) and the functions executed from there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The page below describes how to setup and use the library in this type of system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copyright (C) 2014 NXP Semiconductors. All rights reserved. "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know where is "The page below" referred from this paragraph.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The last line of the paragraph ("Copyright (C) 2014 NXP Semiconductors. All rights reserved.") is linked to Section 4.9 (p. 33) which is blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Q-3) Modification of debug launch configuration necessary with SPIFI Library relocation?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the SPIFI Library is relocated to IRAM, is it necessary to modify debug launch configuration for LPC-Link2 debugger? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running code from RAM (Mon, 2014-02-17) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Frunning-code-ram%23comment-1135347" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/running-code-ram#comment-1135347&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"But note that if you are using LPC-Link2 as your debug probe and want to download to RAM, then you will need to modify the debug launch configuration" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to build and debug LPC-Link 2 LPCXpresso IRAM only projects? (Mon, 2014-01-20) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fhow-build-and-debug-lpc-link-2-lpcxpresso-iram-only-projects%23comment-1134747" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/how-build-and-debug-lpc-link-2-lpcxpresso-iram-only-projects#comment-1134747&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Writing-data-to-execute-in-place-SPI-Flash-from-the-running/m-p/576894#M19512</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:00:26Z</dc:date>
    </item>
  </channel>
</rss>

