<?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: [LPC54S018]SPIFI Pin, Fault is generated when IOCON setting change.</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1934098#M56655</link>
    <description>&lt;P&gt;Resolved! In this way!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaoloFalduto_0-1723903425718.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293672i15B42E02732448BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaoloFalduto_0-1723903425718.png" alt="PaoloFalduto_0-1723903425718.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plain load image is the solution to release the external FLASH.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2024 14:04:20 GMT</pubDate>
    <dc:creator>PaoloFalduto</dc:creator>
    <dc:date>2024-08-17T14:04:20Z</dc:date>
    <item>
      <title>[LPC54S018]SPIFI Pin, Fault is generated when IOCON setting change.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933038#M56646</link>
      <description>&lt;P&gt;A fault is generated when I try to change a IOCON settings of following pins:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;PIO0_23&lt;/LI&gt;
&lt;LI&gt;PIO0_24&lt;/LI&gt;
&lt;LI&gt;PIO0_25&lt;/LI&gt;
&lt;LI&gt;PIO0_26&lt;/LI&gt;
&lt;LI&gt;PIO0_27&lt;/LI&gt;
&lt;LI&gt;PIO0_28&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Below you can see the part of the code that generate an error, or sometimes also a stuck.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaoloFalduto_1-1723736543444.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293473i36F25CC22D5A0D01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaoloFalduto_1-1723736543444.png" alt="PaoloFalduto_1-1723736543444.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 16pt; white-space: pre;"&gt;&lt;LI-CODE lang="c"&gt;void main(void) {



uint32_t regValue;



/* Init board hardware. */

 BOARD_InitBootPins();

 BOARD_InitBootClocks();

 BOARD_InitBootPeripherals();

#ifndef BOARD_INIT_DEBUG_CONSOLE_PERIPHERAL

/* Init FSL debug console. */

 BOARD_InitDebugConsole();

#endif



 IOCON-&amp;gt;PIO[0][23] = 256;

 IOCON-&amp;gt;PIO[0][24] = 256;

 IOCON-&amp;gt;PIO[0][25] = 256;

 IOCON-&amp;gt;PIO[0][26] = 256;

 IOCON-&amp;gt;PIO[0][27] = 256;

 IOCON-&amp;gt;PIO[0][28] = 256;



gpio_pin_config_t DUT_SYNCDAC_config = {

 .pinDirection = kGPIO_DigitalOutput,

 .outputLogic = 0U

 };

/* Initialize GPIO functionality on pin PIO0_28 (pin M9) */

 GPIO_PinInit(GPIO, 0U , 28U, &amp;amp;DUT_SYNCDAC_config);&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This error doesn't appear and all the FW works if select&amp;nbsp;Link Applciation to RAM and run the code in debug mode. Why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaoloFalduto_0-1723736393657.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293471iDC54732AA5CF5621/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaoloFalduto_0-1723736393657.png" alt="PaoloFalduto_0-1723736393657.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPaoloFalduto_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 15:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933038#M56646</guid>
      <dc:creator>PaoloFalduto</dc:creator>
      <dc:date>2024-08-15T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC54S018]SPIFI Pin, Fault is generated when IOCON setting change.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933467#M56650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This is spifi flash hardware circuit.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1723791254468.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293580iF632BBBD046984BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1723791254468.png" alt="xiangjun_rong_0-1723791254468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see that P0_23, P0_24, P0_25, P0_26, P0_27, P0_28 pins function as SPIFI module pins, the LPC54018 does not have on-chip flash, for each instruction, it reads code from the spifi flash via above pins and execute. When you configure above pins in GPIO or whatever, the binary code reading from spifi flash is incorrect, when the wrong binary code is executed, a hardware fault will happen.&lt;/P&gt;
&lt;P&gt;In conclusion, you can not configure the P0_23, P0_24, P0_25, P0_26, P0_27, P0_28 pins in application code.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 07:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933467#M56650</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-16T07:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC54S018]SPIFI Pin, Fault is generated when IOCON setting change.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933495#M56651</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the answer, I already know the architecture of LPC54S018. But&amp;nbsp;It's still strange to me.&lt;/P&gt;
&lt;P&gt;The Flash is used to store the binary FW, but at the boot of MCU the binary should be loaded on the MCU RAM and at the end of the boot&amp;nbsp;the microcontroller should release the FLASH&lt;/P&gt;
&lt;P&gt;Am I wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 07:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1933495#M56651</guid>
      <dc:creator>PaoloFalduto</dc:creator>
      <dc:date>2024-08-16T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: [LPC54S018]SPIFI Pin, Fault is generated when IOCON setting change.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1934098#M56655</link>
      <description>&lt;P&gt;Resolved! In this way!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaoloFalduto_0-1723903425718.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/293672i15B42E02732448BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaoloFalduto_0-1723903425718.png" alt="PaoloFalduto_0-1723903425718.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plain load image is the solution to release the external FLASH.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 14:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018-SPIFI-Pin-Fault-is-generated-when-IOCON-setting-change/m-p/1934098#M56655</guid>
      <dc:creator>PaoloFalduto</dc:creator>
      <dc:date>2024-08-17T14:04:20Z</dc:date>
    </item>
  </channel>
</rss>

