Hi,
I am trying to use the Deep Sleep mode of my AM3359 (ICE board).
The thing is, in the SDK, I can found that code:
/** * \file cm3wkup_proxy.h */ /******************** COMMAND STATUS *********************/ /* In init phase this denotes that CM3 was initialized successfully. When other commands are to be executed, this indicates completion of command */ #define PM_CMD_PASS (0x0) /* Early indication of command being carried out */ #define PM_IN_PROGRESS (0x3) /* In init phase 0x2 denotes CM3 could not initialize properly. When other tasks are to be done, this indicates some error in carrying out the task. */ #define PM_CMD_FAIL (0x1) /* CM3 INTC will catch the next WFI of A8 and continue with the pre-defined sequence */ #define PM_WAIT4OK (0x2) |
And:
/** * \file cm3wkup_proxy.c */ #define PM_STATUS_SHIFT 16 unsigned short readCmdStatus(void) { return ((HWREG(SOC_CONTROL_REGS + CONTROL_IPC_MSG_REG(1))) >> PM_STATUS_SHIFT); } |
But in the TRM, page 516, Table 8-15. CMD_STAT Field, every value is incremented by one.
Can you clear this out for me please?
Thanks,
Paul