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.

AWR6843AOP: GPADC

Part Number: AWR6843AOP

你好,

      我该如何读取GOADC的AD值?

  • 谢谢反馈,我先尝试下

  • 你好,如果我想周期去读GPADC的值,我该怎么去调用MmwaveLink_setGpAdcConfig()这个函数

  • 可以用usleep函数等待周期时间。

  • 我创建了一个周期为 100 毫秒的任务,并定期调用 MmwaveLink_setGpAdcConfig() 函数。 DSS 内核将在仿真期间进入 abort()。不知道该如何调用MmwaveLink_setGpAdcConfig() 函数比较好

  •  图片不能放大,看不清代码。在周期为100 毫秒的任务里,调用其他函数也会进入abort()吗?

  • Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /**
    * @file mss_main.c
    *
    * @brief
    * MSS main implementation of the millimeter wave Demo
    *
    * \par
    * NOTE:
    * (C) Copyright 2016 Texas Instruments, Inc.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the
    * distribution.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    其他的函数我没加,我是debug全速运行后会有以下提示

    [C674X_0] Debug: MMWDemoDSS mmWave Control Initialization succeeded
    [Cortex_R4_0] **********************************************
    Debug: Launching the Millimeter Wave Demo
    **********************************************
    Debug: MMWDemoMSS Launched the Initialization Task
    Debug: MMWDemoMSS mmWave Control Initialization was successful
    ============MmDebug: Finished rlSetGpAdcConfig
    GPADC1 value: 132 V
    GPADC2 value: 102 V
    GPADC3 value: 91 V
    GPADC4 value: 78 V
    GPADC5 value: 89 V
    GPADC6 value: 296 V
    wDemo_CLIInit:947
    Debug: CLI is operational
    Sensor has been stopped
    ============MmwDemo_CLIADCBufCfg:387 argc:6
    ============perform_cmdline:838 adcbufCfg
    Debug: MMWDemoMSS Received CLI sensorStart Event
    [C674X_0] Error: Asynchronous Event SB Id 12 not handled
    Debug: MMWDemoDSS Data Path init succeeded
    Debug: MMWDemoDSS initTask exit
    [Cortex_R4_0] Debug: Finished rlSetGpAdcConfig
    GPADC1 value: 128 V
    GPADC2 value: 99 V
    GPADC3 value: 90 V
    GPADC4 value: 77 V
    GPADC5 value: 79 V
    GPADC6 value: 296 V
    [C674X_0] Error: Asynchronous Event SB Id 12 not handled
    Heap L2 : size 49152 (0xc000), free 46848 (0xb700)
    Heap L3 : size 720896 (0xb0000), free 196608 (0x30000)
    [Cortex_R4_0] Debug: Finished rlSetGpAdcConfig
    GPADC1 value: 126 V
    GPADC2 value: 100 V
    GPADC3 value: 90 V
    GPADC4 value: 77 V
    GPADC5 value: 87 V
    GPADC6 value: 296 V
    [C674X_0] Error: Asynchronous Event SB Id 12 not handled
    {module#8}: "../dss_main.c", line 2008: error {id:0x10000, args:[0x81a3cc, 0x81a3cc]}
    xdc.runtime.Error.raise: terminating execution
    [Cortex_R4_0] Debug: Finished rlSetGpAdcConfig
    GPADC1 value: 128 V
    GPADC2 value: 101 V
    GPADC3 value: 90 V
    GPADC4 value: 78 V
    GPADC5 value: 87 V
    GPADC6 value: 296 V

  • 看到e2e工程师已回复您的问题。
    https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1016216/awr6843aop-awr9843aop-gpadc

  • 不知道怎样去修改,有什么建议么

  • You can check the execution time, and then  try lower task priority and longer function call period.

  • 有没有周期读取GPADC的示例啊

  • 抱歉,没有示例。

x 出现错误。请重试或与管理员联系。