SEMC_SendIPCommand() with argument kSEMC_SRAMCM_ArrayRead

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SEMC_SendIPCommand() with argument kSEMC_SRAMCM_ArrayRead

1,032 次查看
nickwallis
Senior Contributor I

Hi,

Does anyone know the format/syntax of IP command SEMC_SendIPCommand() with argument kSEMC_SRAMCM_ArrayRead?

In particular, how do you tell it how much data you want to read?

thanks

-Nick

0 项奖励
回复
1 回复

1,024 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi nickwallis,

  I think you can refer to the other SEMC IP read commander, eg.

SEMC_IPCommandNorRead in fsl_semc.c

  You will find the IP command SEMC_SendIPCommand with read method.

    while (size_bytes >= SEMC_IPCOMMANDDATASIZEBYTEMAX)
    {
        result =
            SEMC_SendIPCommand(base, kSEMC_MemType_NOR, address, (uint16_t)kSEMC_NORDBICM_Read, 0, tmpData.u32Data);
        if (result != kStatus_Success)
        {
            break;
        }

        data += SEMC_IPCOMMANDDATASIZEBYTEMAX;
        size_bytes -= SEMC_IPCOMMANDDATASIZEBYTEMAX;
    }

You can find :

SEMC_SendIPCommand(base, kSEMC_MemType_NOR, address, (uint16_t)kSEMC_NORDBICM_Read, 0, tmpData.u32Data);

You can replace the kSEMC_NORDBICM_Read to your kSEMC_SRAMCM_ArrayRead

About how much data, it determined by your code, you can consider each IP read just read 4Bytes, then if you need more, you just call more IP read.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

0 项奖励
回复