I got an error code 49 while configuring the AWR1243 with the following Frame, Profile and Chirp Config:
#define RL_RET_CODE_PF_DFE_SAMP_RATE_INVAL_IN (49U) /* Output sampling rate is not
within [2, 37.5]Msps */
We use 22500 for digOutSampleRate below. WHy do we get the error?
Thanks,
--Khai
static rlFrameCfg_t gAr1243FrmArgs =
{
.chirpStartIdx = (rlUInt16_t) 0,
.chirpEndIdx = (rlUInt16_t) CHAINS_RADAR_NUM_TX_ANTENNA - (rlUInt16_t)1, /* 1 */
.numLoops = (rlUInt16_t) AR1243_RADAR_HEIGHT, /* 128 */
.numFrames = (rlUInt16_t) 0,
/* profileCfgArgs[1].numAdcSamples * 2 - 512 * 2*/
.numAdcSamples = (rlUInt16_t) AR1243_PROFILE1_RADAR_WIDTH * (rlUInt16_t)2, /* 512 * 2 */
.framePeriodicity = (rlUInt32_t) CHAINS_AR1243_TIME_MS_TO_5NS(66U), /* 33 ms / 30 FPS, 20 ms / 50fps */
.triggerSelect = (rlUInt16_t) RL_FRAMESTRT_API_TRIGGER,
.reserved = (rlUInt32_t) 0,
.reserved2 = (rlUInt32_t) 0,
.frameTriggerDelay = (rlUInt32_t) 0
};
static rlProfileCfg_t gAr1243ProfileArgs[] = {
{
.profileId = (rlUInt16_t) 0,
.pfVcoSelect = (rlUInt8_t) 0,
.pfCalLutUpdate = (rlUInt8_t) 0,
.startFreqConst = (rlUInt32_t) CHAINS_AR1243_FREQ_GHZ_CONV(76),
.idleTimeConst = (rlUInt32_t) CHAINS_AR1243_TIME_US_TO_10NS(2),
.adcStartTimeConst = (rlUInt32_t) CHAINS_AR1243_TIME_US_TO_10NS(2.37),
.rampEndTime = (rlUInt32_t) CHAINS_AR1243_TIME_US_TO_10NS(30.85),
.txOutPowerBackoffCode = (rlUInt32_t) 0,
.txPhaseShifter = (rlUInt32_t) 0,
.freqSlopeConst = (rlInt16_t) CHAINS_AR1243_FREQ_MHZ_PER_MICRO_S_SLOPE_CONV(5.688), /* [MHz/us] */
.txStartTime = (rlInt16_t) CHAINS_AR1243_TIME_US_TO_10NS(1U),
.numAdcSamples = (rlUInt16_t) AR1243_PROFILE1_RADAR_WIDTH,
.digOutSampleRate = (rlUInt16_t) 22500, /* Kilo Samples per second */
.hpfCornerFreq1 = (rlUInt8_t) RL_RX_HPF1_175_KHz,
.hpfCornerFreq2 = (rlUInt8_t) RL_RX_HPF2_350_KHz,
.reserved0 = (rlUInt16_t) 0,
.rxGain = (rlUInt16_t) 38
}
};
static rlChirpCfg_t gAr1243ChirpCfgArgs[] =
{
{
.chirpStartIdx = (rlUInt16_t) 0x0,
.chirpEndIdx = (rlUInt16_t) 0x0,
.profileId = (rlUInt16_t) 0x0, /* First profile */
.startFreqVar = (rlUInt32_t) 0x0,
.freqSlopeVar = (rlInt16_t) 0x0,
.idleTimeVar = (rlUInt16_t) 0x0,
.adcStartTimeVar = (rlUInt16_t) 0x0,
.txEnable = (rlUInt16_t) 0x1, /* TX1 */
.reserved = (rlUInt16_t) 0x0
}
};