<?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: MCXN947 failed to control GPIO in slave core (CPU1) in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2251110#M4425</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226561" target="_self"&gt;&lt;SPAN class=""&gt;Logiase&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I will take test with your example.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Any question, I will give a feedback soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Nov 2025 09:48:57 GMT</pubDate>
    <dc:creator>jimmyli</dc:creator>
    <dc:date>2025-11-28T09:48:57Z</dc:date>
    <item>
      <title>MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250120#M4415</link>
      <description>&lt;P&gt;Hello NXP,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I need to control GPIO or other interface in MCXN947 slave core (or CPU1, not CPU0).&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Based on example &amp;lt;multicore_examples\rpmsg_lite_pingpong&amp;gt; in v25.06 FRDM-MCXN947 sdk, then take a P0_10（RED_LED）configuration and create control code to salve core main function. After built, I find that RED_LED can't be controlled.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hope you can help me find the reason and fix it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----Test code&lt;/P&gt;&lt;P&gt;1&amp;gt;for RED_LED pin configuration, I used MCUXPresso IDE to config and generate code automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;shown as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimmyli_0-1764226277596.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367517i381CB6D1B7CECBED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimmyli_0-1764226277596.png" alt="jimmyli_0-1764226277596.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;for RED_LED control, below is the code I&amp;nbsp; create in&amp;nbsp;&lt;FONT color="#FF0000"&gt;slave&lt;/FONT&gt; core project.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;//---------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"fsl_gpio.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"fsl_clock.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"fsl_common.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"pin_mux.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;delay_1ms&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; dt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; Core_Freq;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Core_Freq = CLOCK_GetCoreSysClkFreq();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; i=0; i&amp;lt;dt; i++)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDK_DelayAtLeastUs(1000,Core_Freq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//----------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimmyli_1-1764226381308.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367519i0018C111B19F7BBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimmyli_1-1764226381308.png" alt="jimmyli_1-1764226381308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GPIO_PinWrite(BOARD_INITPINS_CORE1_LED_RED_GPIO,BOARD_INITPINS_CORE1_LED_RED_GPIO_PIN,0U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;delay_1ms(1000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GPIO_PinWrite(&lt;/SPAN&gt;&lt;SPAN&gt;BOARD_INITPINS_CORE1_LED_RED_GPIO&lt;/SPAN&gt;&lt;SPAN&gt;,BOARD_INITPINS_CORE1_LED_RED_GPIO_PIN,1U);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;delay_1ms(1000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimmyli_2-1764226445565.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367522i13D2B66193FF0C96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimmyli_2-1764226445565.png" alt="jimmyli_2-1764226445565.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;BTW, I have tested that the code shown above can work in single example, as &amp;lt;demo_apps\hello_world\cm33_core0&amp;gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 06:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250120#M4415</guid>
      <dc:creator>jimmyli</dc:creator>
      <dc:date>2025-11-27T06:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250828#M4418</link>
      <description>&lt;P&gt;Hi, jimmyli&lt;/P&gt;
&lt;P&gt;Please configure the register `&lt;STRONG&gt;PCNS&lt;/STRONG&gt;` in GPIO peripheral. This register controls if the corresponding pin‘s registers can be modified in &lt;STRONG&gt;Secure/NonSecure&lt;/STRONG&gt; state.&lt;/P&gt;
&lt;P&gt;The Core1 in MCXN947 does not implement SAU(Security Attribute Unit), which means that the Core1 is always in &lt;STRONG&gt;NonSecure&lt;/STRONG&gt; state, so register read/write to corresponding pin's registers under Core1 has no effect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Logiase_0-1764310457460.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367710i8717C2D91A4433A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Logiase_0-1764310457460.png" alt="Logiase_0-1764310457460.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;Best Regards,&lt;/P&gt;
&lt;P&gt;Logiase Song&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250828#M4418</guid>
      <dc:creator>Logiase</dc:creator>
      <dc:date>2025-11-28T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250829#M4419</link>
      <description>&lt;P&gt;Hi, jimmyli&lt;/P&gt;
&lt;P&gt;Please configure the register `&lt;STRONG&gt;PCNS&lt;/STRONG&gt;` in GPIO peripheral. This register controls if the corresponding pin‘s registers can be modified in &lt;STRONG&gt;Secure/NonSecure&lt;/STRONG&gt; state.&lt;/P&gt;
&lt;P&gt;The Core1 in MCXN947 does not implement SAU(Security Attribute Unit), which means that the Core1 is always in &lt;STRONG&gt;NonSecure&lt;/STRONG&gt; state, so register read/write to corresponding pin's registers under Core1 has no effect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Logiase_0-1764310457460.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367710i8717C2D91A4433A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Logiase_0-1764310457460.png" alt="Logiase_0-1764310457460.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;Best Regards,&lt;/P&gt;
&lt;P&gt;Logiase Song&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250829#M4419</guid>
      <dc:creator>Logiase</dc:creator>
      <dc:date>2025-11-28T06:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250840#M4420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226561" target="_self"&gt;&lt;SPAN class=""&gt;Logiase&lt;/SPAN&gt;&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks very much for your replying.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Yes, I have found that before booting core1, it needs to config the referent pin to non secure state and can be controlled by core1 , and the pin can be controlled by core1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ----below code is added to initHardware() in core0 project&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;CLOCK_EnableClock(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_Gpio0&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GPIO_EnablePinControlNonSecure(&lt;/SPAN&gt;&lt;SPAN&gt;BOARD_LED_RED_GPIO&lt;/SPAN&gt;&lt;SPAN&gt;, (1 &amp;lt;&amp;lt; BOARD_LED_RED_GPIO_PIN));&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jimmyli_0-1764311025523.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367712i5EC3D27E7C135022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jimmyli_0-1764311025523.png" alt="jimmyli_0-1764311025523.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp; But, I have a new question that when I only config uart pin to non secure state and initialize uart model in core1 project, the uart interface can't work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Do you have some tips for this problem ?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Thanks very much.&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Nov 2025 06:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250840#M4420</guid>
      <dc:creator>jimmyli</dc:creator>
      <dc:date>2025-11-28T06:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250887#M4423</link>
      <description>&lt;P&gt;Hi jimmyli&lt;/P&gt;
&lt;P&gt;Could you please share your code snippet?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use LPUART peripheral does not require GPIO's configuration.&lt;/P&gt;
&lt;P&gt;The attachment is demo code which print message from both Core0 and Core1.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Logiase Song&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 07:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2250887#M4423</guid>
      <dc:creator>Logiase</dc:creator>
      <dc:date>2025-11-28T07:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN947 failed to control GPIO in slave core (CPU1)</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2251110#M4425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226561" target="_self"&gt;&lt;SPAN class=""&gt;Logiase&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I will take test with your example.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Any question, I will give a feedback soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 09:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN947-failed-to-control-GPIO-in-slave-core-CPU1/m-p/2251110#M4425</guid>
      <dc:creator>jimmyli</dc:creator>
      <dc:date>2025-11-28T09:48:57Z</dc:date>
    </item>
  </channel>
</rss>

