IMX93 M33 initialize GPIO2 and A55 not waking up normally

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX93 M33 initialize GPIO2 and A55 not waking up normally

ソリューションへジャンプ
3,426件の閲覧回数
barad
Contributor I

Hello,

I'm using both M33 and A55 (imx93). I want to toggle led from MCU ( GPIO2:IO4) and wakeup A55 with MU interrupt.

Config from MCU: BTN->PCNS=0x0; ( to initialise button and LED ( GPIO2:io23 and GPIO2:io4)

When i suspend the A55 and wake it up from button then the A55 is not waking up as normal.

When i don't use BTN->PCNS=0x0; A55 wake up as normal but this seems being necessary for initialisation.

If you can help !

@Manuel_Salas 

ラベル(2)
0 件の賞賛
返信
1 解決策
3,336件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @barad 

I hope you are doing very well.

I made some modifications to the power_mode_switch example of the SDK_2_16_000_MCIMX93-EVK, please see the attached patches.

I used the GPIO_IO2 to get an IRQ and wake up the A55 Core:

Alejandro_Salas_0-1724896293048.png

 

(Left side Cortex - A55 and Right side Cortex - M33)

I booted the Cortex M33 on Uboot, then boot linux and sleep it:

Alejandro_Salas_1-1724896463656.png

 

Finally, I have a button connected to GPIO_IO2, and when pressend Linux will wake up:

Alejandro_Salas_2-1724896522601.png

 

Please let me know if it worked for you. I am using SDK_2_16_000_MCIMX93-EVK and Linux imx93evk 6.1.22.

Also, I compiled the SDK example with arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.

 

Best regards,

Salas.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,396件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @barad 

I hope you are doing well!

How are you doing to wake up the A55 core?

Are you Setting the GCR[GIR1] Register?

 

The log is when you use BTN->PCNS=0x0, right?

 

Best regards,

Salas.

 

0 件の賞賛
返信
3,390件の閲覧回数
barad
Contributor I

Hello Salas, 

Yeah i'm doing good thanks and hope the same for you.

All right i set the register GCR(GIR1) that is the MU interruption to wakeup A55 once the button is clicked. 

Yes the log is when i initialise the GPIO : BTN->PCNS=0x0.

BTN = GPIO2 

Best regards,

Bara

0 件の賞賛
返信
3,337件の閲覧回数
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @barad 

I hope you are doing very well.

I made some modifications to the power_mode_switch example of the SDK_2_16_000_MCIMX93-EVK, please see the attached patches.

I used the GPIO_IO2 to get an IRQ and wake up the A55 Core:

Alejandro_Salas_0-1724896293048.png

 

(Left side Cortex - A55 and Right side Cortex - M33)

I booted the Cortex M33 on Uboot, then boot linux and sleep it:

Alejandro_Salas_1-1724896463656.png

 

Finally, I have a button connected to GPIO_IO2, and when pressend Linux will wake up:

Alejandro_Salas_2-1724896522601.png

 

Please let me know if it worked for you. I am using SDK_2_16_000_MCIMX93-EVK and Linux imx93evk 6.1.22.

Also, I compiled the SDK example with arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi.

 

Best regards,

Salas.

0 件の賞賛
返信
3,265件の閲覧回数
barad
Contributor I

Hello @Manuel_Salas,

Thanks for the reply.

I forgot to mention that i use a screen on the EVK.

The bug happend when i suspend the MPU and touch the screen after wakeup (with gpio interrupt / MU interrupt / touch screen). Touching the screen generate an interruption that can wakeup MPU.

This issue happen only when i use gpio initialisation on MCU.

If i use a mouse on EVK then there is no bug til i touch the screen.

If i don't initialise gpio on MCU then there is no bug even when i touch the screen after wakeup.

Best regards,

Bara DIOP

 

 

0 件の賞賛
返信