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.

[参考译文] AWR2944:GPADC 在 GPADC_SWTrigger 中置为有效

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

https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1637537/awr2944-gpadc-assert-in-gpadc_swtrigger

器件型号: AWR2944

你(们)好
我使用 GPADC 每秒采样、代码和 syscfg 如下、它始终在 GPADC_SWTrigger 中置位、我已经在每个循环中使用 Board_driversOpen () 和 Board_driverClose ()、
image.png
nt gpadc_vi_collect ()
  int32_t 状态= SystemP_Success;
  int32_t 通道计数= 0;

 

  GPADC_channelsGroupSelectType 通道;
  GPADC_ConvResultType convRes = GPADC_CONV_ERROR;

 

  uint16_t gpadc_Result[MAX_GPADC_MEAS_SOURCE]={0};
  uint32_t adcInMv[MAX_GPADC_MEAS_SOURCE]={0};
  BOARD_DRIVERSOpen ();
  ClockP_USleep (10 * 1000U);

 

  for (channelCount=0;channelCount<CONFIG_GPADC_CHANNEL_NUM_Instances;channelCount++)
  {
    convRes = GPADC_startSingleChannelConversion (gCfgPtr.channelConfig[channelCount].channelID、&gpadc_Result[channelCount]);

 

    if (GPADC_CONV_DONE = convRes)
    {
      DebugP_logInfo(“Channel ADC 转换成功\r\n“);
      状态= SystemP_Success;
    }
    否则 if (GPADC_CONV_CHANNEL_CONFIG_MISSING == convRes)
    {
      DebugP_logInfo(“Channel ADC configuration missing\r\n“);
      状态= SystemP_FAILURE;
    }
    暴露
    {
      DebugP_logInfo(“Channel ADC 转换错误\r\n“);
      状态= SystemP_FAILURE;
    }

 

  }

 

  Board_driversClose();
  返回状态;
}
image.png
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、  

    您能否提供以下详细信息-  

    您要在此处测试的用例是什么?

    您是否尝试从 SDK 运行以下示例-  

    mmwave_mcuplus_sdk_04_07_01_04\mcu_plus_sdk_awr294x_10_01_00_04\examples\drivers\gpadc\gpadc_single_channel_read\gpadc_single_channel_read.c

    您是否在函数  GPADC_SWTrigger () 中也面临类似的断言?

    您是否对默认示例进行了任何修改? 如果是、请在此处共享差异列表。

    此致、

    Shruti