Tool/software:
Hello,
CCS: Version: 12.7.1.00001
SDK MMWAVE_L_SDK_05_04_00_01
IWRL6432BOOST PROC117 Rev.B
I'm just working on building an application from scratch using the various APIs available in the SDK. I'm following the mmWave API documentation and stuck on the first step, initialising the module!
Debugging the code shows that it hangs at rl_mmWaveLinkInit(). The debugger stops at the line above this in mmwave_link_xWRLx4xx.c, pressing Step In doesn't do anything, it won't progress any further. No errors are reported back, the application just endlessly hangs.
MMWave_init()
MMWave_initLink()
MMWave_initMMWaveLink()
rl_mmWaveLinkInit()
#include <stdio.h> #include "ti_drivers_config.h" #include "ti_drivers_open_close.h" #include "ti_board_open_close.h" /* mmWave SDK Include Files: */ #include <control/mmwave/mmwave.h> /* Global Variable: This is the handle to the mmWave module */ MMWave_Handle gMMWaveHandle; void empty_main(void *args) { /* Open drivers to open the UART driver for console */ Drivers_open(); Board_driversOpen(); int32_t err = 0; MMWave_InitCfg gMMWaveInitCFG; gMMWaveInitCFG.fecDevClkCtrlCmd.c_ApllClkCtrl = M_RL_FECSS_APLL_CTRL_ON_CAL; gMMWaveInitCFG.fecDevClkCtrlCmd.c_DevClkCtrl = M_RL_FECSS_DEV_CLK_SRC_FCLK; gMMWaveInitCFG.fecDevClkCtrlCmd.c_FtClkCtrl = M_RL_FECSS_FT_CLK_SRC_XTAL; gMMWaveInitCFG.fecDevPwrOnCmd.c_PowerMode = M_RL_FECSS_PWR_ON_MODE_COLD; gMMWaveInitCFG.fecDevPwrOnCmd.c_ChirpTimerResol = M_RL_FECSS_CHIRP_TIMER_RES_00; gMMWaveInitCFG.fecDevPwrOnCmd.c_ClkSourceSel = M_RL_FECSS_DEV_CLK_SRC_FCLK; gMMWaveInitCFG.fecDevPwrOnCmd.c_FecBootCfg = 0U; gMMWaveInitCFG.fecDevPwrOnCmd.h_XtalClkFreq = M_RL_FECSS_XTAL_CLK_FREQ_40M; gMMWaveHandle = MMWave_init(&gMMWaveInitCFG, &err); if (err != 0) { DebugP_log ("Debug: MMWave_init returned error %d\n", err); DebugP_assert (0); } DebugP_log("All tests have passed!!\r\n"); Board_driversClose(); Drivers_close(); }
Thanks