We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Good Morning. I just have a question for the benefit of my understanding. I setup Console UART0 (Debug COM port) as wake source from sleep. It works for both Rx and Tx signals. My question is: what is reason that RX signal (RX on PC host end) can wake up the micro? Suppose the RX is connected to the TX signal of the micro. Why an output gpio is enable to generate an interrupt to the CPU?
Hi @dzhou , oh this is custom to the AM335x, I don’t remember the exact details, but any pin on the GPIO0 bank is automatically setup as wakeup source from a deep sleep (the UART0 is also able to do this). Since uart0’s RX and TX’s are both on GPIO0, they both can trigger a startup situation.
Thank you for your answer.
Only the GPIOs on BANK0 are capable for wake-up. But GPIO pin exports under /sys/class/gpio seem not including the wakeup attributes ( writable state for registering as enabled/disabled) .
Power folder:
Anything needs to be done for a specific GPIO, such as GPIO0_26, in order to be enabled for wakeup?
Hi Robert,
I think I figured out that why Uart Tx can be used for triggering wake up from sleep. It is eventually through an interrupt for the port. If USB-To-SERIAL is connected to the UART0, then a pulse to Tx or Rx pin will wake up. If the cable is not connected to the UART port, then any pulses to Tx pin will not wake up, but a pulse to Rx pin will wake up.