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.

[参考译文] CC3220SF:定制板可以#39;t 从休眠模式唤醒

Guru**** 2540720 points
Other Parts Discussed in Thread: CC3220SF

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1012876/cc3220sf-custom-board-can-t-wake-up-from-hibernate-mode

器件型号:CC3220SF

您好的团队:

    我使用 CC3220SF 作为我的定制板的 IC。 进入休眠模式后、除了使用硬件复位、一些定制板无法再唤醒。但某些定制板 会按我的预期执行。

    我使用测试代码来检查导致此问题的部件。 我的测试代码 如下所示。

#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

/* POSIX Header files */
#include <pthread.h>
#include <semaphore.h>
#include <unistd.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>

/* Driver Header files */
#include <ti/drivers/GPIO.h>
#include <ti/drivers/SPI.h>
#include <ti/display/Display.h>
#include <ti/drivers/UART.h>
#include <ti/drivers/Power.h>
#include <ti/drivers/GPIO.h>
/* Driver configuration */
#include "ti_drivers_config.h"
// PRCM API stuff
#include <ti/devices/cc32xx/inc/hw_types.h>
#include <ti/devices/cc32xx/driverlib/prcm.h>
#include <ti/drivers/power/PowerCC32XX.h>

/*
 *  ======== mainThread ========
 */
void *mainThread(void *arg0)
{
    GPIO_init();
    GPIO_setConfig(LED, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
    GPIO_write(LED,0);

    PRCMHibernateWakeupSourceDisable(0x007F0001);

    sleep(3);
    GPIO_write(LED,1);

    PRCMHibernateWakeUpGPIOSelect(PRCM_HIB_GPIO4 | PRCM_HIB_GPIO11 | PRCM_HIB_GPIO17, PRCM_HIB_RISE_EDGE);
    PRCMHibernateWakeupSourceEnable(PRCM_HIB_GPIO4 | PRCM_HIB_GPIO11 | PRCM_HIB_GPIO17);
    PRCMHibernateEnter();

    return (NULL);
}
 

    在此测试代码中、仍然遇到一些定制板无法从休眠模式唤醒的情况。

    我想检查一下、我使用休眠功能的方法是否错误、或者有其他 原因会导致这个问题?