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.

RTOS/AM3352: board config about mmc2

Part Number: AM3352


Tool/software: TI-RTOS

hello

I am using the board of AM3352 for the example of EMMC in MMCSD.

The official reference example has the board configuration of MMC0 and MMC1.

The board hardware I use USES the MMC2 interface.

May I ask what modifications I need to make regarding the board configuration?

I've tried it a little bit:

1. In the function Board_STATUS Board_pinmuxConfig (void), add pinmux.

if (S_PASS = = status)

{

Status = PINMUXModuleConfig(CHIPDB_MOD_ID_MMCSD, 2U, NULL);//add mmc2 pinmux

}

2. {2, TRUE, gMmcsd2PinCfg} is added in static pinmuxModuleCfg_t gMmcsdPinCfg[];//pinmux_data.c

Static pinmuxPerCfg_t gMmcsd2PinCfg[] has been configured.

3. In Board_moduleClockInit, I plan to add the configuration of mmc2. However, the MMC module only supports 0 and 1 instnum configurations.

Please help me modify my thinking or tell me the correct configuration steps.

BR

  • Is there any feedback?
  • BR,

    Did you use TI pinmux tools to configure MMCSD2 or did you manually update the pinmux_data.c file. Please refer to example for changing the UART instance in the board library and repeat the steps for EMMC usage on AM335x:

    We have also gone into a little more details here to describe this process:

    7607.AM335x_AMIC110_Board_Porting_using_PRSDK.pdf

    In addition to board library changes. Please also look at the file MMCSD_soc.c file for aM335x in the MMCSD driver located at pdk_am335x_1_0_xx\packages\ti\drv\mmcsd\soc\am335x

    There are three instance of MMC defined but the MMC2 instance defaults to MMCSD_CARD_SD so you will need to change that to MMCSD_CARD_EMMC similar to instance 1 in that file. Please note AM335x TRM indicates by connecting eMMC to MMCSD2, you can`t boot from it so make sure that the eMMC is not used for booting.

    Regards,

    Rahul

  • Part Number: AM3352

    Tool/software: TI-RTOS

    Hi

          I want to use MMC2 instance for my test,I have use TI pinmux tools to configure MMCSD2 and do manually update the pinmux_data.c file.

    on Board_pinmuxConfig function ,I add:

    if(S_PASS == status)
    {
    status = PINMUXModuleConfig(CHIPDB_MOD_ID_MMCSD, 2U, NULL);
    }

    and in Board_moduleClockInit founction,I add 

    if(S_PASS == status)
    {
    status = PRCMModuleEnable(CHIPDB_MOD_ID_MMCSD, 2U, 0U);
    }

    but in fouction 

    int32_t PRCMModuleEnable(chipdbModuleID_t moduleId, uint32_t instNum,uint32_t isBlockingCall)

    there is no instNum 2 for mmc2.only 0 and 1 for mmc0 and mmc1.

    AMM3352 don't support MMC2?

    if no,how can I enable PRCMModule for mmc 2?

    my PKD version is pdk_am335x_1_0_13.

    thansk!