none
error C2039: 'CONF_UART3_CTSN' : is not a member of 'AM33X_SYSC_PADCONFS_REGS' in bsp_padcf.c RRS feed

  • Question

  • I am enabling UART3 for AM335x and I am making changes in bsp_padcf.h and bsp_padcf.c. I am uinsg WINCE 7 platform builder.

    One definition is as in .h file

    #define ALL_ALLOWED_PADS \

    it contains the various PAD entries like

    PAD_ENTRY(GPMC_AD0           ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(GPMC_AD1           ,HW_DEFAULT_PAD_CONFIG)

    and default entries for UART0 and UART1 as

    AD_ENTRY(UART0_CTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART0_RTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART0_RXD          ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART0_TXD          ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART1_CTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART1_RTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART1_RXD          ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART1_TXD          ,HW_DEFAULT_PAD_CONFIG)        \

    I made change here, I added one more entry for UART3 as

    PAD_ENTRY(UART3_CTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART3_RTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART3_RXD          ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART3_TXD          ,HW_DEFAULT_PAD_CONFIG)        \

    and one default entry for UART3 as

    #define UART3_PADS \
    PAD_ENTRY(SPI0_CS1, (MODE(1) | PULLUDEN | RXACTIVE)) /* UART3_RXD */ \
    PAD_ENTRY(ECAP0_IN_PWM0_OUT,(MODE(1) | PULLUDEN)) /* UART3_TXD */ \

    I made one more change here as 

    #define UART3_PADS   \
    PAD_ENTRY(UART3_RXD,        (MODE(0) | PULLUP_EN | RXACTIVE)) /* UART0_RXD */ \
    PAD_ENTRY(UART3_TXD,        (MODE(0) | PULLUDEN)) /* UART0_TXD */ \

    and i saved and build it 

    but i got some errors as :

    error C2039: 'CONF_UART3_CTSN' : is not a member of 'AM33X_SYSC_PADCONFS_REGS'  c:\wince700\platform\am335xphytec\src\bsp_common\bsp_padcfg\bsp_padcfg.c 34

    error C2039: 'CONF_UART3_RTSN' : is not a member of 'AM33X_SYSC_PADCONFS_REGS'  c:\wince700\platform\am335xphytec\src\bsp_common\bsp_padcfg\bsp_padcfg.c 34

    ;

    ;

    etc

    These entries are stored in the array that is defined in .c file as

    static PAD_INFO g_allowedPadCfg[] = ALL_ALLOWED_PADS;

    Any body help me for this.....

    Saturday, November 9, 2013 6:20 AM

All replies

  • It is not able to find "CONF_UART3_CTSN" and "CONF_UART3_RTSN"

    where are these macros declared ?

    Although CONF_UART0_CTSN and CONF_UART1_CTSN is declared at am335x_config.h

    If i remember correctly for UART3 there pins are multiplexed ... check this ...

    May be you need this, please verify in your case ...

    #define UART3_PADS   \
        PAD_ENTRY(MII1_RXCLK, (IDIS | PD | MODE1 )) /* UART3_TXD_MUX0 */\
        PAD_ENTRY(MII1_RXD3, (IEN | PD | MODE1 )) /* UART3_RXD_MUX0 */\

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Marked as answer by salathia Wednesday, November 13, 2013 3:45 AM
    • Unmarked as answer by salathia Friday, April 4, 2014 6:26 AM
    Monday, November 11, 2013 11:19 AM
  • Yes, the mentioned problem is solved by adding certain entries in the am33x_config.h files as

    REG32 CONF_UART2_CTSN ; // 978H 8.1.6.162
    REG32 CONF_UART2_RTSN ; // 97CH 8.1.6.163
    REG32 CONF_UART2_RXD ; // 980H 8.1.6.164
    REG32 CONF_UART2_TXD ; // 984H 8.1.6.165

    REG32 CONF_UART3_CTSN ; // 978H 8.1.6.162
    REG32 CONF_UART3_RTSN ; // 97CH 8.1.6.163
    REG32 CONF_UART3_RXD ; // 980H 8.1.6.164
    REG32 CONF_UART3_TXD ; // 984H 8.1.6.165

    //************************************

    //************************************

    and in bsp_padcfg.h

    #define ALL_ALLOWED_PADS \

    PAD_ENTRY(UART2_CTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART2_RTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART2_RXD          ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART2_TXD          ,HW_DEFAULT_PAD_CONFIG)        \
    PAD_ENTRY(UART3_CTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART3_RTSN         ,HW_DEFAULT_PAD_CONFIG)        \
        PAD_ENTRY(UART3_RXD          ,HW_DEFAULT_PAD_CONFIG)        \

    and 

    #define UART2_PADS   \
    PAD_ENTRY(UART2_RXD,        (MODE(0) | PULLUP_EN | RXACTIVE)) /* UART0_RXD */ \
    PAD_ENTRY(UART2_TXD,        (MODE(0) | PULLUDEN)) /* UART0_TXD */ \

    #define UART3_PADS   \
    PAD_ENTRY(UART3_RXD,        (MODE(0) | PULLUP_EN | RXACTIVE)) /* UART0_RXD */ \
    PAD_ENTRY(UART3_TXD,        (MODE(0) | PULLUDEN)) /* UART0_TXD */ \

    //*******************************************

    Wednesday, November 13, 2013 3:44 AM