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.

AM437x : Board porting with TI RTOS sdk : Integrating pinux tool outputs in-place of idk evm

Expert 1700 points
Other Parts Discussed in Thread: SYSCONFIG

Hi Team,

as part of the work of migration to a custom board ,  I replaced am43xx_idkevm_pinmux_data.c with the output ofthe pinmux tool

after doing so , I got the following compilation errors :

# Compiling am43xx-evm:a9host:debug:board: am43xx/am43xx_idkevm_pinmux_data.c
am43xx/am43xx_idkevm_pinmux_data.c:1997:6: error: 'CHIPDB_MOD_ID_ARM' undeclared here (not in a function); did you mean 'CHIPDB_MOD_ID_ELM'?
{CHIPDB_MOD_ID_ARM, gArmPinCfg},
^~~~~~~~~~~~~~~~~
CHIPDB_MOD_ID_ELM
am43xx/am43xx_idkevm_pinmux_data.c:2009:6: error: 'CHIPDB_MOD_ID_GLUE' undeclared here (not in a function); did you mean 'CHIPDB_MOD_ID_GPU'?
{CHIPDB_MOD_ID_GLUE, gGluePinCfg},
^~~~~~~~~~~~~~~~~~
CHIPDB_MOD_ID_GPU
am43xx/am43xx_idkevm_pinmux_data.c:2021:6: error: 'CHIPDB_MOD_ID_OSC' undeclared here (not in a function); did you mean 'CHIPDB_MOD_ID_RTC'?
{CHIPDB_MOD_ID_OSC, gOscPinCfg},
^~~~~~~~~~~~~~~~~
CHIPDB_MOD_ID_RTC
g

 

I had changed the chipdb_mod_adc to  chipdb_mod_adc0, but could not find how to resolve those errors. Can you suggest how to resolve this ?

  • Hi,

    Which pinmux tool did you use?

    There is a previous thread with similar question:  Can you check if it applies to your case as well? Please note that the link in the response seems not existing. 

    Regards,

    Jianzhong

  • we used SysConfig Tool version 1.6.0+1543.

    this item in the link is similar , but , the thread does not offer a solution for the missing chip db defines.

  • Hi,

    The problem you were faced with was caused by missing definitions of the following names:

    • CHIPDB_MOD_ID_ARM
    • CHIPDB_MOD_ID_GLUE
    • CHIPDB_MOD_ID_OSC

    They are supposed to be defined in <pdk>\packages\ti\starterware\include\am43xx\chipdb_defs.h, but are missing. You can work around this problem by adding the definitions of these names in chipdbModuleID_t of chipdb_defs.h, changing the following code

    typedef enum
    {
        CHIPDB_MOD_ID_MPU_CORE = 0U,
        CHIPDB_MOD_ID_DSP = 1U,
    …
        CHIPDB_MOD_ID_USB_OTG_SS = 141U,
        CHIPDB_MOD_ID_COUNT = 142U,
        CHIPDB_MOD_ID_INVALID = UINT32_MAX
    } chipdbModuleID_t;

    to

    typedef enum
    {
        CHIPDB_MOD_ID_MPU_CORE = 0U,
        CHIPDB_MOD_ID_DSP = 1U,
    …
        CHIPDB_MOD_ID_USB_OTG_SS = 141U,
        CHIPDB_MOD_ID_ARM = 142U,
        CHIPDB_MOD_ID_GLUE = 143U,
        CHIPDB_MOD_ID_OSC = 144U,
        CHIPDB_MOD_ID_COUNT = 145U,
        CHIPDB_MOD_ID_INVALID = UINT32_MAX
    } chipdbModuleID_t;
    

    This should fix the problem. Can you please give it a try?

    Thanks and regards,

    Jianzhong

  • Hi Inno,

    After some analysis, we've found two additional enumerators CHIPDB_MOD_ID_xxx missing in <pdk>\packages\ti\starterware\include\am43xx\chipdb_defs.h:

    • CHIPDB_MOD_ID_ADC
    • CHIPDB_MOD_ID_HDQ_1W

    I attached a new chipdb_defs.h which added all missing CHIPDB_MOD_ID_xxx's. You can replace <pdk>\packages\ti\starterware\include\am43xx\chipdb_defs.h with the attached one.

    4505.chipdb_defs.h

    Thank you.

    Regards,

    Jianzhong