Tool/software: Code Composer Studio
Hi
Reference to the document 'AWR1xxx_Radar_Interface_Control.pdf', chapter 5.5.5 and 5.5.4,
We implement CLI function to enable continuous streaming mode on AWR1843. the function code like as below.
When the function 'rlEnableContMode()' is executed, the radar system reboot immediately.
Can you help us with this problem? Thanks a lot.
#define CONV_FREQ_GHZ_TO_CODEWORD(X) ROUND_TO_INT32(X * (1.0e9/53.644))
static int32_t CLI_continuous_mode (int32_t argc, char* argv[])
int32_t retVal;
int32_t nFreqCent;
rlContModeCfg_t contModeCfg;
rlContModeEn_t contModeEnable;
nFreqCent = 79;
contModeCfg.startFreqConst = (CONV_FREQ_GHZ_TO_CODEWORD(nFreqCent));
contModeCfg.txOutPowerBackoffCode = 0;
contModeCfg.txPhaseShifter = 0;
contModeCfg.digOutSampleRate = 10000;
contModeCfg.hpfCornerFreq1 = 0;
contModeCfg.hpfCornerFreq2 = 0;
contModeCfg.rxGain = 30;
contModeCfg.vcoSelect = 0x0;
contModeCfg.reserved0 = 0x0;
contModeEnable.contModeEn = 1;
retVal = rlSetContModeConfig(RL_DEVICE_MAP_INTERNAL_BSS, (rlContModeCfg_t*)&contModeCfg);
/* Check for mmWaveLink API call status */
if(retVal != 0)
{
System_printf("Error: rlSetContModeConfig retVal=%d\n", retVal);
return -1;
}
System_printf("Debug: Finished rlSetContModeConfig\n");
retVal = rlEnableContMode(RL_DEVICE_MAP_INTERNAL_BSS, (rlContModeEn_t*)&contModeEnable);
/* Check for mmWaveLink API call status */
if(retVal != 0)
{
/* Error: Link reported an issue. */
System_printf("Error: rlEnableContMode retVal=%d\n", retVal);
return -1;
}
System_printf("Debug: Finished rlEnableContMode\n");
/* Package the command with given data and send it to device */
return 0;
}