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.

AM3358 StandBy/DeepSleep Question

Hello.
I'm developing bare metal application on Beaglebone Black and I'm trying to enter StandBy mode.
I copied code from Starterware demo and  changed it so beagle bone is waking up from interrupt on GPIO0 
It works very well when I have my J-link attached to Beaglebone. MCU enter stand by mode and wait in WFI instruction for
GPIO interrupt or Debugger pause request. However if I disconnect debugger before entering StandBy / DeepSleep or start
application from SD card it enters StandBy / DeepSleep but I'm unable to wake Beaglebone with GPIO0 PIN.
  • Moving this to the Starterware forum. Sitara forum supports only the Linux SDK.
  • Hi Wojciech,

    In order to assist, please specify your questions clearly.

    - Did you modify the "Timer wake source" or "UART wake source" example (I assume you are using Starterware version 2.0.1.1)?
    - Did you try the following: use the Timer wake method (6), go into Standby mode (5), disconnect your debugger and see if the example came out of Standby after the 20 seconds? Since your UART is still connected through J1, you can still see messages on your terminal (e.g Terraterm).

    Lali
  • Yes I'm using Starterware version 2.0.1.1.
    I've copied code from demoPwrMgmnt and I'm calling PowerSaveModeEnter with
    modified standbyData structure (I've changed wakeSources to WAKE_SOURCE_GPIO)
    and change PowerSaveModeEnter function so it doesn't put lcd screen to sleep

    -I don't have connected UART to J1. I only copied PowerSaveModeEnter part from demo (and removed parts responsible for UART communication).
    i've tried your suggestion and it works same as GPIO. When i have connected jlink debugger, beaglebone go into standby mode and wake up after 20 seconds. If i disconnect debugger before it goes into standby mode or during stand by mode it doesn't wake up and hangs in WFI