<?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>topic Re: MCXA153 Hard Fault on GPIO_PinInit in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1911790#M1229</link>
    <description>&lt;P&gt;hi,&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/113456" target="_self" aria-label="View Profile of aberger"&gt;&lt;SPAN class=""&gt;aberger&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP products and opportunity to serve you,I will gladly help you with this.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The clock has not been enabled in your code.&amp;nbsp;After adding&amp;nbsp;&lt;CODE class=" inline"&gt;CLOCK_EnableClock(kCLOCK_GateGPIO3)&lt;/CODE&gt;&amp;nbsp;to your demo, the error was successfully resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1721358750667.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289288i4AFB1AFB781650D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1721358750667.png" alt="XuZhang_0-1721358750667.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this can help you. If you have any other questions, contact me again. The fixed code is also attached.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xu Zhang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 03:18:15 GMT</pubDate>
    <dc:creator>Joey_z</dc:creator>
    <dc:date>2024-07-19T03:18:15Z</dc:date>
    <item>
      <title>MCXA153 Hard Fault on GPIO_PinInit</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1910737#M1221</link>
      <description>&lt;P&gt;I'm trying to initialize a pin on the FRDM-MXCA153 as GPIO Output, but the GPIO_PinWrite throws a HardFault.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is code execution, paused at the write to the PSOR register for GPIO3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GPIO_PinWrite().png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289007i26A192CA55FCAF5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="GPIO_PinWrite().png" alt="GPIO_PinWrite().png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Hard Fault occurs immediately upon execution of the base-&amp;gt;PSOR write.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HardFault_Handler().png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289008i6912130372F31DD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="HardFault_Handler().png" alt="HardFault_Handler().png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can also see in the call stack &amp;lt;signal handler called&amp;gt;() at 0xffffffb8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no custom code here, just a call to the library code from fsl_gpio. I am using SDK_2.16.000 for the MXCA153.&lt;/P&gt;&lt;P&gt;Minimum example project is also attached.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 18:15:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1910737#M1221</guid>
      <dc:creator>aberger</dc:creator>
      <dc:date>2024-07-17T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153 Hard Fault on GPIO_PinInit</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1911790#M1229</link>
      <description>&lt;P&gt;hi,&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/113456" target="_self" aria-label="View Profile of aberger"&gt;&lt;SPAN class=""&gt;aberger&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP products and opportunity to serve you,I will gladly help you with this.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The clock has not been enabled in your code.&amp;nbsp;After adding&amp;nbsp;&lt;CODE class=" inline"&gt;CLOCK_EnableClock(kCLOCK_GateGPIO3)&lt;/CODE&gt;&amp;nbsp;to your demo, the error was successfully resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1721358750667.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289288i4AFB1AFB781650D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1721358750667.png" alt="XuZhang_0-1721358750667.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this can help you. If you have any other questions, contact me again. The fixed code is also attached.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xu Zhang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 03:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1911790#M1229</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-19T03:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153 Hard Fault on GPIO_PinInit</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1914466#M1279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/236188"&gt;@Joey_z&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the response. Can you explain the difference between&amp;nbsp;&lt;STRONG&gt;kCLOCK_GatePORT3&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;kCLOCK_GateGPIO3&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;You can see the the clock for PORT3&amp;nbsp;&lt;EM&gt;is enabled&lt;/EM&gt;&amp;nbsp;in my project inside BOARD_InitBootPins() (and this is auto-generated by Config Tools in the pin_mux.c file when I selected GPIO3, pin 12 to be routed). Why did Config Tools not enable the clock for GPIO3?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 22:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1914466#M1279</guid>
      <dc:creator>aberger</dc:creator>
      <dc:date>2024-07-22T22:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153 Hard Fault on GPIO_PinInit</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1916022#M1313</link>
      <description>&lt;P&gt;hi,aberger&lt;/P&gt;
&lt;P&gt;If pin P3_12 is used, kCLOCK_GatePORT3 should be enabled. If pin P3_12 is used as a common GPIO pin, kCLOCK_GateGPIO3 should be enabled.&lt;BR /&gt;When the GPIO pin is initialized in the Config Tools tool, the code will be updated to enable kCLOCK_GateGPIO3.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1721813608540.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/290093i404A0F5A81BA7244/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1721813608540.png" alt="XuZhang_0-1721813608540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_1-1721813727485.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/290094i4E88AFB150B0F476/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1721813727485.png" alt="XuZhang_1-1721813727485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this can help you. If you have any other questions, contact me again.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xu Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 09:37:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1916022#M1313</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-24T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: MCXA153 Hard Fault on GPIO_PinInit</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1916679#M1342</link>
      <description>&lt;P&gt;Thanks. It seems that routing a pin as GPIO (i.e. clicking the checkbox for the pin in the GPIO list in the "Peripheral Signals" tab), but leaving the Direction as "Not Specified" is not sufficient to generate the CLOCK_EnableClock(kCLOCK_GateGPIO3) call in pin_mux.c.&amp;nbsp;The Direction must be specified too.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 23:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXA153-Hard-Fault-on-GPIO-PinInit/m-p/1916679#M1342</guid>
      <dc:creator>aberger</dc:creator>
      <dc:date>2024-07-24T23:33:34Z</dc:date>
    </item>
  </channel>
</rss>

