微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > cc3200 无法进入LPDS

cc3200 无法进入LPDS

时间:10-02 整理:3721RD 点击:

各位大神,我想让uart1在LPDS之后可以继续工作,我发现UART0在LPDS之后可以直接使用,它应该是在user_app_config.h的module里注册

于是我模仿uart0在modules增加了uart1,可是加上之后,就无法进入LPDS了。

如果不在modules选项中加uart1 每次出来LPDS之后还需要在初始化

struct soc_module modules[ ] = {
        /* ----------- Mandatory for Link SPI for networking ----------*/
        {
                PRCM_LSPI,                    /* Module ID */
                LSPI_BASE,                    /* Base Addr */
                INT_LSPI,                     /* Interrupt */
                e_freq_mhz80,                 /* Frequency */
                (volatile unsigned long*)(ARCM_BASE +
                    APPS_RCM_O_MCSPI_A2_CLK_GATING), /* Clock Reg */
                e_pm_S1,                      /* Lowest PM */
                &link_spi_settings,           /* Specifics */
                NULL,                         /* SW Driver */
                NULL,                         /* Next item */
                clk_enbl_op,              /* Clk en op */
                clk_dsbl_op,              /* Clk ds op */
                spi_driver_load               /* Driver LD */
        },

#endif


#if  1
        /* ----------- Add any application specific modules here ----------*/
        {
                PRCM_UARTA0,                /* Module ID */
                UARTA0_BASE,                /* Base Addr */
                INT_UARTA0,                 /* Interrupt */
                e_freq_mhz80,               /* Frequency */
                (volatile unsigned long*)(ARCM_BASE +
                        APPS_RCM_O_UART_A0_CLK_GATING), /* Clock Reg */
                e_pm_S1,                    /* Lowest PM */
                &uart_settings,             /* Specifics */
                NULL,                       /* SW Driver */
                NULL,                       /* Next item */
                clk_enbl_op,                /* Clk en op */
                clk_dsbl_op,                /* Clk ds op */
                uart_driver_load            /* Driver LD */
        },

以下是我增加的内容
#if 1     
        
        {
                PRCM_UARTA1,                /* Module ID */
                UARTA1_BASE,                /* Base Addr */
                INT_UARTA1,                 /* Interrupt */
                e_freq_mhz80,               /* Frequency */
                (volatile unsigned long*)(ARCM_BASE +
                        APPS_RCM_O_UART_A1_CLK_GATING), /* Clock Reg */
                e_pm_S1,                    /* Lowest PM */
                &MODBUS_settings,             /* Specifics */
                NULL,                       /* SW Driver */
                NULL,                       /* Next item */
                clk_enbl_op,                /* Clk en op */
                clk_dsbl_op,                /* Clk ds op */
                uart_driver_load            /* Driver LD */
        },
#endif       

};

进入LPDS模式后Processor and peripheral registers are not retained. 串口是无法使用的,

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top