MCXN947 failed to control GPIO in slave core (CPU1)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCXN947 failed to control GPIO in slave core (CPU1)

Jump to solution
411 Views
jimmyli
Contributor IV

Hello NXP,

       I need to control GPIO or other interface in MCXN947 slave core (or CPU1, not CPU0).

       Based on example <multicore_examples\rpmsg_lite_pingpong> 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.

        Hope you can help me find the reason and fix it.

        Thanks very much.

 

----Test code

1>for RED_LED pin configuration, I used MCUXPresso IDE to config and generate code automatically.

   shown as below.

jimmyli_0-1764226277596.png

2>for RED_LED control, below is the code I  create in slave core project.

//---------------------------

#include "fsl_gpio.h"

#include "fsl_clock.h"

#include "fsl_common.h"

#include "pin_mux.h"

 

void delay_1ms(uint32_t dt)

{

uint32_t Core_Freq;

Core_Freq = CLOCK_GetCoreSysClkFreq();

 

for(uint32_t i=0; i<dt; i++)

{

SDK_DelayAtLeastUs(1000,Core_Freq);

}

}

//----------------------------

 

jimmyli_1-1764226381308.png

 

while(1)

{

GPIO_PinWrite(BOARD_INITPINS_CORE1_LED_RED_GPIO,BOARD_INITPINS_CORE1_LED_RED_GPIO_PIN,0U);

delay_1ms(1000);

 

GPIO_PinWrite(BOARD_INITPINS_CORE1_LED_RED_GPIO,BOARD_INITPINS_CORE1_LED_RED_GPIO_PIN,1U);

delay_1ms(1000);

}

 

jimmyli_2-1764226445565.png

 

 BTW, I have tested that the code shown above can work in single example, as <demo_apps\hello_world\cm33_core0>

 

 

Labels (1)
0 Kudos
Reply
1 Solution
332 Views
Logiase
NXP Employee
NXP Employee

Hi jimmyli

Could you please share your code snippet? 

To use LPUART peripheral does not require GPIO's configuration.

The attachment is demo code which print message from both Core0 and Core1.

Best Regards,

Logiase Song

View solution in original post

0 Kudos
Reply
5 Replies
333 Views
Logiase
NXP Employee
NXP Employee

Hi jimmyli

Could you please share your code snippet? 

To use LPUART peripheral does not require GPIO's configuration.

The attachment is demo code which print message from both Core0 and Core1.

Best Regards,

Logiase Song

0 Kudos
Reply
310 Views
jimmyli
Contributor IV

Hi Logiase,

      Thanks very much.

      I will take test with your example.

      Any question, I will give a feedback soon.

 

0 Kudos
Reply
344 Views
Logiase
NXP Employee
NXP Employee

Hi, jimmyli

Please configure the register `PCNS` in GPIO peripheral. This register controls if the corresponding pin‘s registers can be modified in Secure/NonSecure state.

The Core1 in MCXN947 does not implement SAU(Security Attribute Unit), which means that the Core1 is always in NonSecure state, so register read/write to corresponding pin's registers under Core1 has no effect.

Logiase_0-1764310457460.png

 

 

Best Regards,

Logiase Song

0 Kudos
Reply
344 Views
Logiase
NXP Employee
NXP Employee

Hi, jimmyli

Please configure the register `PCNS` in GPIO peripheral. This register controls if the corresponding pin‘s registers can be modified in Secure/NonSecure state.

The Core1 in MCXN947 does not implement SAU(Security Attribute Unit), which means that the Core1 is always in NonSecure state, so register read/write to corresponding pin's registers under Core1 has no effect.

Logiase_0-1764310457460.png

 

 

Best Regards,

Logiase Song

0 Kudos
Reply
340 Views
jimmyli
Contributor IV

Hi Logiase,

     Thanks very much for your replying.

     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.

  ----below code is added to initHardware() in core0 project  

CLOCK_EnableClock(kCLOCK_Gpio0);

 

GPIO_EnablePinControlNonSecure(BOARD_LED_RED_GPIO, (1 << BOARD_LED_RED_GPIO_PIN));

jimmyli_0-1764311025523.png

 

  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.

Do you have some tips for this problem ?

 

Thanks very much.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2250120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BI%20need%20to%20control%20GPIO%20or%20other%20interface%20in%20MCXN947%20slave%20core%20(or%20CPU1%2C%20not%20CPU0).%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BBased%20on%20example%20%3CMULTICORE_EXAMPLES%3E%20in%20v25.06%20FRDM-MCXN947%20sdk%2C%20then%20take%20a%20P0_10%EF%BC%88RED_LED%EF%BC%89configuration%20and%20create%20control%20code%20to%20salve%20core%20main%20function.%20After%20built%2C%20I%20find%20that%20RED_LED%20can't%20be%20controlled.%3C%2FMULTICORE_EXAMPLES%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Hope%20you%20can%20help%20me%20find%20the%20reason%20and%20fix%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Thanks%20very%20much.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E----Test%20code%3C%2FP%3E%3CP%3E1%26gt%3Bfor%20RED_LED%20pin%20configuration%2C%20I%20used%20MCUXPresso%20IDE%20to%20config%20and%20generate%20code%20automatically.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3Bshown%20as%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jimmyli_0-1764226277596.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jimmyli_0-1764226277596.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367517i381CB6D1B7CECBED%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jimmyli_0-1764226277596.png%22%20alt%3D%22jimmyli_0-1764226277596.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E2%26gt%3Bfor%20RED_LED%20control%2C%20below%20is%20the%20code%20I%26nbsp%3B%20create%20in%26nbsp%3B%3CFONT%20color%3D%22%23FF0000%22%3Eslave%3C%2FFONT%3E%20core%20project.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3E%2F%2F---------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%23include%3C%2FSPAN%3E%20%3CSPAN%3E%22fsl_gpio.h%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%23include%3C%2FSPAN%3E%20%3CSPAN%3E%22fsl_clock.h%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%23include%3C%2FSPAN%3E%20%3CSPAN%3E%22fsl_common.h%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%23include%3C%2FSPAN%3E%20%3CSPAN%3E%22pin_mux.h%22%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Evoid%3C%2FSPAN%3E%20%3CSPAN%3Edelay_1ms%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3Euint32_t%3C%2FSPAN%3E%3CSPAN%3E%20dt)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Euint32_t%3C%2FSPAN%3E%3CSPAN%3E%20Core_Freq%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECore_Freq%20%3D%20CLOCK_GetCoreSysClkFreq()%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Efor%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3Euint32_t%3C%2FSPAN%3E%3CSPAN%3E%20i%3D0%3B%20i%3CDL%3E%3CDT%3E%3C%2FDT%3E%3C%2FDL%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESDK_DelayAtLeastUs(1000%2CCore_Freq)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%2F%2F----------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jimmyli_1-1764226381308.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jimmyli_1-1764226381308.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367519i0018C111B19F7BBD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jimmyli_1-1764226381308.png%22%20alt%3D%22jimmyli_1-1764226381308.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3Ewhile%3C%2FSPAN%3E%3CSPAN%3E(1)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EGPIO_PinWrite(BOARD_INITPINS_CORE1_LED_RED_GPIO%2CBOARD_INITPINS_CORE1_LED_RED_GPIO_PIN%2C0U)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Edelay_1ms(1000)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EGPIO_PinWrite(%3C%2FSPAN%3E%3CSPAN%3EBOARD_INITPINS_CORE1_LED_RED_GPIO%3C%2FSPAN%3E%3CSPAN%3E%2CBOARD_INITPINS_CORE1_LED_RED_GPIO_PIN%2C1U)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Edelay_1ms(1000)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jimmyli_2-1764226445565.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jimmyli_2-1764226445565.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367522i13D2B66193FF0C96%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jimmyli_2-1764226445565.png%22%20alt%3D%22jimmyli_2-1764226445565.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3BBTW%2C%20I%20have%20tested%20that%20the%20code%20shown%20above%20can%20work%20in%20single%20example%2C%20as%20%3CDEMO_APPS%3E%3C%2FDEMO_APPS%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2250120%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2251110%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2251110%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226561%22%20target%3D%22_self%22%3E%3CSPAN%20class%3D%22%22%3ELogiase%3C%2FSPAN%3E%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Thanks%20very%20much.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20I%20will%20take%20test%20with%20your%20example.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Any%20question%2C%20I%20will%20give%20a%20feedback%20soon.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20jimmyli%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20your%20code%20snippet%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20use%20LPUART%20peripheral%20does%20not%20require%20GPIO's%20configuration.%3C%2FP%3E%0A%3CP%3EThe%20attachment%20is%20demo%20code%20which%20print%20message%20from%20both%20Core0%20and%20Core1.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ELogiase%20Song%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250840%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250840%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226561%22%20target%3D%22_self%22%3E%3CSPAN%20class%3D%22%22%3ELogiase%3C%2FSPAN%3E%3C%2FA%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BThanks%20very%20much%20for%20your%20replying.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BYes%2C%20I%20have%20found%20that%20before%20booting%20core1%2C%20it%20needs%20to%20config%20the%20referent%20pin%20to%20non%20secure%20state%20and%20can%20be%20controlled%20by%20core1%20%2C%20and%20the%20pin%20can%20be%20controlled%20by%20core1.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%20----below%20code%20is%20added%20to%20initHardware()%20in%20core0%20project%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3ECLOCK_EnableClock(%3C%2FSPAN%3E%3CSPAN%3EkCLOCK_Gpio0%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EGPIO_EnablePinControlNonSecure(%3C%2FSPAN%3E%3CSPAN%3EBOARD_LED_RED_GPIO%3C%2FSPAN%3E%3CSPAN%3E%2C%20(1%20%26lt%3B%26lt%3B%20BOARD_LED_RED_GPIO_PIN))%3B%3C%2FSPAN%3E%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jimmyli_0-1764311025523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jimmyli_0-1764311025523.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367712i5EC3D27E7C135022%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jimmyli_0-1764311025523.png%22%20alt%3D%22jimmyli_0-1764311025523.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CP%3E%3CFONT%20face%3D%22terminal%2Cmonaco%22%3E%26nbsp%3B%20But%2C%20I%20have%20a%20new%20question%20that%20when%20I%20only%20config%20uart%20pin%20to%20non%20secure%20state%20and%20initialize%20uart%20model%20in%20core1%20project%2C%20the%20uart%20interface%20can't%20work.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22terminal%2Cmonaco%22%3EDo%20you%20have%20some%20tips%20for%20this%20problem%20%3F%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CFONT%20face%3D%22terminal%2Cmonaco%22%3EThanks%20very%20much.%3C%2FFONT%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250829%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20jimmyli%3C%2FP%3E%0A%3CP%3EPlease%20configure%20the%20register%20%60%3CSTRONG%3EPCNS%3C%2FSTRONG%3E%60%20in%20GPIO%20peripheral.%20This%20register%20controls%20if%20the%20corresponding%20pin%E2%80%98s%20registers%20can%20be%20modified%20in%20%3CSTRONG%3ESecure%2FNonSecure%3C%2FSTRONG%3E%20state.%3C%2FP%3E%0A%3CP%3EThe%20Core1%20in%20MCXN947%20does%20not%20implement%20SAU(Security%20Attribute%20Unit)%2C%20which%20means%20that%20the%20Core1%20is%20always%20in%20%3CSTRONG%3ENonSecure%3C%2FSTRONG%3E%20state%2C%20so%20register%20read%2Fwrite%20to%20corresponding%20pin's%20registers%20under%20Core1%20has%20no%20effect.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Logiase_0-1764310457460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Logiase_0-1764310457460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367710i8717C2D91A4433A7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Logiase_0-1764310457460.png%22%20alt%3D%22Logiase_0-1764310457460.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ELogiase%20Song%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2250828%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MCXN947%20failed%20to%20control%20GPIO%20in%20slave%20core%20(CPU1)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2250828%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20jimmyli%3C%2FP%3E%0A%3CP%3EPlease%20configure%20the%20register%20%60%3CSTRONG%3EPCNS%3C%2FSTRONG%3E%60%20in%20GPIO%20peripheral.%20This%20register%20controls%20if%20the%20corresponding%20pin%E2%80%98s%20registers%20can%20be%20modified%20in%20%3CSTRONG%3ESecure%2FNonSecure%3C%2FSTRONG%3E%20state.%3C%2FP%3E%0A%3CP%3EThe%20Core1%20in%20MCXN947%20does%20not%20implement%20SAU(Security%20Attribute%20Unit)%2C%20which%20means%20that%20the%20Core1%20is%20always%20in%20%3CSTRONG%3ENonSecure%3C%2FSTRONG%3E%20state%2C%20so%20register%20read%2Fwrite%20to%20corresponding%20pin's%20registers%20under%20Core1%20has%20no%20effect.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Logiase_0-1764310457460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Logiase_0-1764310457460.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367710i8717C2D91A4433A7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Logiase_0-1764310457460.png%22%20alt%3D%22Logiase_0-1764310457460.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ELogiase%20Song%3C%2FP%3E%3C%2FLINGO-BODY%3E