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.

AWR2243: 关于AWR2243-LVDS-HSI-TEST-MODE的设置

Part Number: AWR2243
Other Parts Discussed in Thread: DCA1000EVM

5.16.12 Sub block 0x404B – AWR_DEV_TESTPATTERN_GEN_SET_SB

This sub block contains the confifigurations to setup the test pattern to be generated and trans

ferred over the selected high speed interface (LVDS). This command has to be issued after the

data path confifigurations commands are issued. This can be used to perform a sanity test of the

high speed interface connectivity and correct reception.

Table 5.137 describes the contents of this sub block.

关于AWR2243-LVDS-HSI-TEST-MODE的设置,我想咨询一下关于Sub block 0x404B – AWR_DEV_TESTPATTERN_GEN_SET_SB此命令的使用,配置的顺序是否有特殊要求,文档上面说的是需要放在datapath之后,就可以了,但是我通过读回指令,读回设置的参数,发现读回这个功能对应的参数都是零,并非我设置的值,请问是什么原因导致的呢?如下是我相关部分的代码:

参数设置函数:

#ifdef HSI_TEST_ENABLE

int MMWL_HSItestCfg(unsigned int deviceMap)

{
int32_t retVal = 0;
rltestPattern_t hsitestdata;
hsitestdata.testPatGenCtrl = 1;

hsitestdata.testPatGenTime = 1;
hsitestdata.testPatrnPktSize = 64;

hsitestdata.numTestPtrnPkts = 0;
hsitestdata.testPatRx0Icfg = 0x00010001;

hsitestdata.testPatRx0Qcfg = 0x00020002;
hsitestdata.testPatRx1Icfg = 0x00030003;

hsitestdata.testPatRx1Qcfg = 0x00040004;
hsitestdata.testPatRx2Icfg = 0x00050005;

hsitestdata.testPatRx2Qcfg = 0x00060006;
hsitestdata.testPatRx3Icfg = 0x00070007;

hsitestdata.testPatRx3Qcfg   = 0x00080008;

retVal = rlDeviceSetTestPatternConfig(deviceMap, &hsitestdata);
return retVal;

}

参数配置函数配置顺序如下:

retVal = MMWL_dataPathConfig(deviceMap);
if (retVal != RL_RET_CODE_OK)
{

#ifdef UART_DEBUG_INFO
UART_WriteStr(UART0,"MMWL_dataPathConfig fail!!!\n\r");
#endif

return -1;
}
#ifdef UART_DEBUG_INFO

UART_WriteStr(UART0,"MMWL_dataPathConfig success!!!\n\r");
#endif

#ifdef HSI_TEST_ENABLE
retVal = MMWL_HSItestCfg(deviceMap);

if (retVal != RL_RET_CODE_OK)
{
#ifdef UART_DEBUG_INFO

UART_WriteStr(UART0,"MMWL_HSItestCfg fail!!!\n\r");
#endif
return -1;

#ifdef UART_DEBUG_INFO
UART_WriteStr(UART0,"MMWL_HSItestCfg success!!!\n\r");
#endif

#endif

retVal = MMWL_hsiClockConfig(deviceMap);
if (retVal != RL_RET_CODE_OK)
{

#ifdef UART_DEBUG_INFO
UART_WriteStr(UART0,"MMWL_hsiClockConfig fail!!!\n\r");
#endif

return -1;
}
#ifdef UART_DEBUG_INFO

UART_WriteStr(UART0,"MMWL_hsiClockConfig success!!!\n\r");
#endif

#ifdef UART_DEBUG_INFO
UART_WriteStr(UART0,"MMWL_hsiLaneConfig fail!!!\n\r");

#endif
return -1;
}
#ifdef UART_DEBUG_INFO

UART_WriteStr(UART0,"MMWL_hsiLaneConfig success!!!\n\r");
#endif