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 !
解決済! 解決策の投稿を見る。
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:
(Left side Cortex - A55 and Right side Cortex - M33)
I booted the Cortex M33 on Uboot, then boot linux and sleep it:
Finally, I have a button connected to GPIO_IO2, and when pressend Linux will wake up:
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.
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.
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
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:
(Left side Cortex - A55 and Right side Cortex - M33)
I booted the Cortex M33 on Uboot, then boot linux and sleep it:
Finally, I have a button connected to GPIO_IO2, and when pressend Linux will wake up:
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.
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