This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x gpio wakeup, how to see what gpio woke up the system.

Other Parts Discussed in Thread: SYSCONFIG

When Configuring the system to wake up on multiple gpio pins I have so far been able to see in the IRQ RAW register what source was waking up the M3. but now I have a situation that the M3 core gets an IRQ46 (GPIO) but I have no indication in any register why? all IRQ registers is 0. 

Is this expected ?? was it just pure luck that I used to get any indication ??. the manual is not very clear on what should happen.

  • The IRQ46? You read the register in the Operating System? 

    You can reference the TRM Page 4861,"Figure 25-1. GPIO0 Module Integration",

    Only the GPIO0 is Wakeup Source, 

    You can reference the TRM, read the

    "GPIO_SYSCONFIG Register", "GPIO_IRQWAKEN_0 Register"

    "GPIO_IRQWAKEN_1 Register",  "IRQWAKEUP Register"

    "WAKEUP_EN Register"

    /*******************************************/

    The TRM, Page 178,

    "Table 2-2. L4_WKUP Peripheral Memory Map"

  • the IRQ46 is the IRQ for the M3 cpu. 

    and yes I only read out from the GPIO0. in fact you cant read out from any other from the M3 core as the opther GPIO is not mapped.

    the strange thing I have is that I wakeup but have no indication of why ? 

  • According the TRM, the GPIO0 have 2 interrupt to CORTEX-A8 Core, 

    96   GPIOINT0A   GPIO   0   POINTRPEND1
    97   GPIOINT0B   GPIO   0   POINTRPEND2

    /****************************************************************/

    Reference the TRM,Page 1120, 

    /* CortexA8 context/register contents are lost and must be saved before entering standby.  */