TI中文支持网
TI专业的中文技术问题搜集分享网站

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

Part Number:AWR2243Other 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

Chris Meng:

你好,

建议配置完LVDS,在使能test pattern。你是否有测量LVDS信号是否有输出?

下面的论坛讨论FYI:

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/671795/awr1243-test-pattern-generation-configuration 

,

liao junsen:

通过测量可以得到LVDS输出的FR正常,但是输出的数据为全零

搜索

复制

,

Chris Meng:

liao junsen 说:通过测量可以得到LVDS输出的FR正常,但是输出的数据为全零

请问是在配置完LVDS后,再使能的test pattern么?

你有AWR2243BOOST+DCA1000EVM么?有在mmwave studio里尝试test pattern么?

,

liao junsen:

通过上面您这边给的链接,我发现我的设置的生成数据的时钟频率过大,导致总带宽超过了我的LVDS传输带宽,更改以后,可以接收到LVDS输出的测试数据。

搜索

复制

赞(0)
未经允许不得转载:TI中文支持网 » AWR2243: 关于AWR2243-LVDS-HSI-TEST-MODE的设置
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1