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.

AWR1843BOOST: 使用HWA:初始化 HWA_init();

Part Number: AWR1843BOOST

你好,我在TI的demo中尝试启动HWA,但是却发现有问题,我的初始化步骤如下

1.对照C:\ti\mmwave_sdk_03_03_00_03\mmwave_sdk_03_03_00_03\packages\ti\drivers\hwa\test\common中main.c中的文件,首先添加所有的头文件

* Standard Include Files. */
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>

/* BIOS/XDC Include Files. */
#include <xdc/std.h>
#include <xdc/cfg/global.h>
#include <xdc/runtime/IHeap.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
#include <xdc/runtime/Memory.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/knl/Event.h>
#include <ti/sysbios/knl/Semaphore.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/heaps/HeapBuf.h>
#include <ti/sysbios/heaps/HeapMem.h>
#include <ti/sysbios/knl/Event.h>

/* mmWave SK Include Files: */
#include <ti/common/sys_common.h>
#include <ti/drivers/osal/SemaphoreP.h>
#include <ti/drivers/esm/esm.h>
#include <ti/drivers/hwa/hwa.h>
#include <ti/drivers/soc/soc.h>
#include <ti/utils/testlogger/logger.h>

2.在dss端的main.c中初始化一个进程

/* Initialize the SOC Module: This is done as soon as the application is started
        * to ensure that the MPU is correctly configured. */
       gSOCHandle = SOC_init (&socCfg, &errCode);
       if (gSOCHandle == NULL)
       {
           System_printf ("Error: SOC Module Initialization failed [Error code %d]\n", errCode);
           return -1;
       }

       /* Initialize test logger */
      // MCPI_Initialize();

       /* Initialize the Task Parameters. */
       Task_Params_init(&taskParams);
       taskParams.stackSize = 4*1024;
       Task_create(Test_initTask, &taskParams, NULL);

3.该进程的的初始化函数内容为

static void Test_initTask(UArg arg0, UArg arg1)
 {
     HWA_Handle              handle;
     int32_t                 errCode, compareCode1, compareCode2;
     uint8_t                 paramsetIdx = 0, pingParamSetIdx = 0;// pongParamSetIdx = 0;
     uint8_t                *srcAddr = (uint8_t*)SOC_HWA_MEM0;
     uint8_t                *dstAddr = (uint8_t*)SOC_HWA_MEM2;
 #ifdef TEST_PARAMSET_INTERRUPT
     HWA_InterruptConfig     paramISRConfig;
     SemaphoreP_Handle       paramSetSem;
 #endif
     SemaphoreP_Handle       doneSem;
     SemaphoreP_Params       semParams;
     SemaphoreP_Status       status;



     /**************************************************************************
          * Initialize the HWA
      **************************************************************************/
     HWA_init();
    // MCPI_setFeatureTestResult("API HWA_init()", MCPI_TestResult_PASS);

     /* Debug Message: */
        System_printf ("Debug: HWA has been initialized\n");











 }

完成上述操作之后,我尝试debug该程序,给出的系统日志如下

我想请问可能是哪方面的原因呢?

谢谢!