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.

[参考译文] AWRL1432BOOST-BSD:文档的说明和 AWRL1432 BOOST BSD 中的代码不一致。

Guru**** 2013480 points
Other Parts Discussed in Thread: AWRL1432
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1444821/awrl1432boost-bsd-there-is-an-inconsistency-within-the-description-of-the-document-and-the-code-in-awrl1432-boost-bsd

器件型号:AWRL1432BOOST-BSD
主题中讨论的其他器件:AWRL1432

工具与软件:

您好! TI 团队!

 

我使用的是这块电路板、 www.ti.com/.../AWRL1432BOOST-BSD。

我目前正在探究 AWRL1432 BOOST BSD 的代码。 在这个板中、我尝试转储 RangeProfile 和 RangeStep、Rx 之类的一些基本参数。

现在、我想转储 距离多普勒热图。

https://dev.ti.com/tirex/explore/node?node=A__ADnbI7zK9bSRgZqeAxprvQ__radar_toolbox__1AslXXD__1.30.00.05

 

根据上面的文档、距离多普勒热图中每个单元的长度为2个字节。 类型标识符= 5、类型值为 MMWDEMO_OUTPUT_MSG_RANGE_MPLE_HEAT_MAP。

 

但在代码 mmwave_demo.c 中、

 

if (pGuiMonSel->rangeDopplerHeatMap)&&(pResult->rngDopplerHeatMap != NULL )

           {

               MMW_UartWrite (uartHandle、

                               (uint8_t*)&tl[tlvIdx]、

                               sizeof (MmwDemo_output_message_tl));

 

               {

                   内部 ii;

                   对于(ii = 0;ii <gMmwMssMCB.numRangeBins;ii +)

                   {

                       MMW_UartWrite (uartHandle、

                               (uint8_t *)&Result->rngDopplerHeatMap[ii*gMmwMssMCB.numDopplerBins]、

                               gMmwMssMCB.numDopplerBins * sizeof (uint32_t);

                   }

               }

 

               tlvIdx++;

           }

 

sizeof (uint32_t)、表示它是4字节、而不是2字节

 

我尝试了转储该4个字节。

 

可表示为:

 

da03 0000 e402 0000 5d03 0000 df03 0000

1204 0000 f304 0000 5606 0000 d005 0000

7e01 0000 fc00 9e06 0000 5107 0000

F300 0000 3605 0000 8003 0000 2902 0000

7d00 0000 8203 0000 c402 0000 eb03 0000

3707 0000 ee05 0000 9202 0000 fd08 0000

920a 0000 cd0b 0000 770c 0000 aa1a 0000

b13c 0000 20d0 1600 fb88 2200 31b2 1100

c82f 0000 c215 0000 1d09 0000 e30a 0000

d50a 0000 7807 0000 dd01 0000 e205 0000

bc06 0000 5a03 0000 0c02 0000 1b03 0000

9001 0000 5001 0000 7d03 0000 9504 0000

5a00 0000 2706 0000 7f05 0000 ba00 0000

1503 0000 3a07 0000 1807 0000 6b05 0000

0404 0000 5c04 0000 1c04 0000 3002 0000

E102 0000 5d00 0000 9b00 0000 cb00 0000

1005 0000 c303 0000 0f03 0000 9c03 0000

4704 0000 3304 0000 E104 0000 1504 0000

A301 0000 5f01 0000 2907 0000 2508 0000

 

实际上有2字节数据和另一个2字节补零、但一些数据仍然是4字节。

 

代码来自 Radar Toolbox–2.20.00.05 -> Example Projects -> mmWave Demo->mmWave Demo xWRL1432、请从三个点导入。

 

那么、哪一个是正确的? 2字节还是4字节?  

有人可以帮我吗? 谢谢!

 

此致、
Webb

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请使用代码中实现的内容、即4个字节

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    大小由该代码位决定

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    根据 cfg 的输入参数、选择大小