<?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: &amp;quot;Flash driver failed to initialize&amp;quot; on LPXpresso802</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817211#M32714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Firstly, using the following code to enable the GPIO clock, however, it will disable other units' clock. For instance, they include the AHB, the APB bridge, the Arm Cortex-M0+, the SYSCON block, and the PMU, etc.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt; SYSCON&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;SYSAHBCLKCTRL0 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; 0b000000000000000000000000000001000000&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/74741i413499DBF3C4D246/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Fig 1&lt;/P&gt;&lt;P&gt;No doubt, it will crash the MCU after doing this.&lt;BR /&gt;MCUXpresso provide the feature which allow the developer to to observe the changing of SYSAHBCLKCTRL0 register in the debug, I think it's just you want, please refer to MCUXpresso's user guide to enable this feature.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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>Mon, 02 Nov 2020 14:12:25 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-11-02T14:12:25Z</dc:date>
    <item>
      <title>"Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817210#M32713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was experimenting with the SYSAHBCLKCTRL0 register on my LPXpressor802 board and appear to have locked it up.&amp;nbsp; Any suggestion as to how I can reset my board (I have a Segger Jlink that I can use, if necessary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working okay when I had an OR in my first line&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; SYSCON-&amp;gt;SYSAHBCLKCTRL0 &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;|=&lt;/STRONG&gt;&lt;/SPAN&gt; 0b000000000000000000000000000001000000;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but when I changed that to a simple equal, like this&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; SYSCON-&amp;gt;SYSAHBCLKCTRL0 &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt; 0b000000000000000000000000000001000000;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and then ran the program.&amp;nbsp; My suspicion is that by not using the OR I have cleared a bit that I wasn't supposed to.&amp;nbsp; (I understand that removing the OR wasn't a smart thing to do... I'm trying to see if changes like this break the board before using it to teach in a classroom.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the program I was trying to run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void main(void) {&lt;BR /&gt;// Power up GPIO 0 unit via Bit 6 on AHB Clock Control Register&lt;BR /&gt;&amp;nbsp; SYSCON-&amp;gt;SYSAHBCLKCTRL0 = 0b000000000000000000000000000001000000;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // Preemptively turn off the LED on GPIO bit 8.&lt;BR /&gt;&amp;nbsp; GPIO-&amp;gt;SET[0] = 0b000000000000000000000000000100000000;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // Set data direction on GPIO bit 8 to Output.&lt;BR /&gt;&amp;nbsp; GPIO-&amp;gt;DIRSET[0] = 0b000000000000000000000000000100000000;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; // Turn on the LED on GPIO bit 8.&lt;BR /&gt;&amp;nbsp; GPIO-&amp;gt;CLR[0] = 0b000000000000000000000000000100000000;&lt;BR /&gt;&lt;BR /&gt;} // end of main&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC802_flash_failed_Nov2018.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63451i13423444D1FDA60D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC802_flash_failed_Nov2018.PNG" alt="LPC802_flash_failed_Nov2018.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817210#M32713</guid>
      <dc:creator>drsmith_yorku</dc:creator>
      <dc:date>2018-11-08T16:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817211#M32714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Firstly, using the following code to enable the GPIO clock, however, it will disable other units' clock. For instance, they include the AHB, the APB bridge, the Arm Cortex-M0+, the SYSCON block, and the PMU, etc.&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt; SYSCON&lt;SPAN class="operator token"&gt;-&amp;gt;&lt;/SPAN&gt;SYSAHBCLKCTRL0 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; 0b000000000000000000000000000001000000&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/74741i413499DBF3C4D246/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Fig 1&lt;/P&gt;&lt;P&gt;No doubt, it will crash the MCU after doing this.&lt;BR /&gt;MCUXpresso provide the feature which allow the developer to to observe the changing of SYSAHBCLKCTRL0 register in the debug, I think it's just you want, please refer to MCUXpresso's user guide to enable this feature.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&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>Mon, 02 Nov 2020 14:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817211#M32714</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-11-02T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817212#M32715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; I'll have a look in the User Guide. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 16:26:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817212#M32715</guid>
      <dc:creator>drsmith_yorku</dc:creator>
      <dc:date>2018-11-12T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: "Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817213#M32716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;I read through the manual (good suggestion!) and was able to use the "Attach" mode to access the registers on the board.&amp;nbsp; I modified 0x40048000 (SYSAHBCLKCTRL0) to be 0x000000D7 (i.e. default value + GPIO on). I am still getting a flash writing error.&amp;nbsp; Thinking that this may be because of my MCUXpresso installation, I tried programming the '802 board on my Mac, with MCUXpresso 10.1.&amp;nbsp; I got the same flash writing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have another suggestion as to what I can look at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC802_flash_failed_Nov14_2018.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74884i827804500C6306FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC802_flash_failed_Nov14_2018.PNG" alt="LPC802_flash_failed_Nov14_2018.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 13:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817213#M32716</guid>
      <dc:creator>drsmith_yorku</dc:creator>
      <dc:date>2018-11-14T13:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: "Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817214#M32717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I connected my JLink to the board (with a jumper on EXT_DBG and power applied to USB on the board).&amp;nbsp; I can access the SYSAHBCLKCTRL0 register and set it to 0xD7 with the JLink, too.&amp;nbsp; However, when I try to erase flash with the JLink I get an error, too.&amp;nbsp; It says something about "failed to download RAMCode."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC802_JLink_flash_failed_Nov14_2018.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74851iE693AC52DE619522/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC802_JLink_flash_failed_Nov14_2018.PNG" alt="LPC802_JLink_flash_failed_Nov14_2018.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817214#M32717</guid>
      <dc:creator>drsmith_yorku</dc:creator>
      <dc:date>2018-11-14T14:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: "Flash driver failed to initialize" on LPXpresso802</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817215#M32718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recompiled my original code ( with the |= )&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SYSCON-&amp;gt;SYSAHBCLKCTRL0&lt;STRONG&gt; |=&lt;/STRONG&gt; (1UL&amp;lt;&amp;lt;SYSCON_SYSAHBCLKCTRL0_GPIO0_SHIFT);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and then selected "Debug" with the JLink as follows&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LPC802_debug_with_JLink_worked.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74852i1EBA6569F2227934/image-size/large?v=v2&amp;amp;px=999" role="button" title="LPC802_debug_with_JLink_worked.PNG" alt="LPC802_debug_with_JLink_worked.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesson learned? Always have a stand-alone debugger, like a JLink, even if the board has an onboard debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/quot-Flash-driver-failed-to-initialize-quot-on-LPXpresso802/m-p/817215#M32718</guid>
      <dc:creator>drsmith_yorku</dc:creator>
      <dc:date>2018-11-14T14:06:17Z</dc:date>
    </item>
  </channel>
</rss>

