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.

Compiler/AWR1642BOOST: Changing the sample rate in "srr_demo_16xx project "

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: CCSTUDIO, AWR1642

Tool/software: TI C/C++ Compiler

Hi all,

I am running the "srr_demo_16xx" project
I use only the SRR profile for our needs (no USRR)

I modified "srr_config_const.h" files in both projects "dss" and "mss":
/**! @brief The multi-mode Radar mode of operation. */
//#define SUBFRAME_CONF_SRR_USRR /* Two subframes, SRR80 followed by USRR20. */ //Source
/**! @brief The USRR only mode of operation. */
//#define SUBFRAME_CONF_USRR /* One subframe USRR20. */
/**! @brief The SRR only mode of operation. */
#define SUBFRAME_CONF_SRR /* One subframe SRR80. */

I modify some profile parameters for testing in "srr_config_chirp_design_SRR80.h" for "dss" and "mss" projects
Everyhing is ok until I want a sample rate higher than 6 Msps
#define PROFILE_SRR_DIGOUT_SAMPLERATE_VAL (7000U) // <<<<---- Causes[Error 49]
#define PROFILE_SRR_ADC_SAMPLE_VAL (256U) //
#define PROFILE_SRR_IDLE_TIME_VAL (300U) // modified (Ok!)
#define PROFILE_SRR_RAMP_END_TIME_VAL (5500U) //
#define PROFILE_SRR_START_FREQ_GHZ (77.0f) // modified (Ok!)
#define PROFILE_SRR_START_FREQ_VAL (CONV_FREQ_GHZ_TO_CODEWORD(PROFILE_SRR_START_FREQ_GHZ))
#define PROFILE_SRR_TXOUT_POWER_BACKOFF (0U) //
#define PROFILE_SRR_TXPHASESHIFTER_VAL (0U) //
#define PROFILE_SRR_FREQ_SLOPE_MHZ_PER_US (8.0f)//
#define PROFILE_SRR_FREQ_SLOPE_VAL (CONV_SLOPE_MHZ_PER_US_TO_CODEWORD(PROFILE_SRR_FREQ_SLOPE_MHZ_PER_US))
#define PROFILE_SRR_TX_START_TIME_VAL (0U) // modified 0.0us (Ok!)
#define PROFILE_SRR_ADC_START_TIME_VAL (300U) //modified 3.0us (Ok!)

if PROFILE_SRR_DIGOUT_SAMPLERATE_VAL > (6000U)
After the "srr_visualization" GUI sends the command:
61 64 76 46 72 61 6D 65 43 66 67 0A advFrameCfg.
AWR1642BOOST reponds:
61 64 76 46 72 61 6D 65 43 66 67 0A 45 72 72 6F 72 20 2D 31 0A 0D 53 72 72 54 49 44 65 73 69 67 6E 3A 2F 3E advFrameCfg.Error -1..SrrTIDesign:/>

I see in the CCStudio 8.2.0 Console:
[Cortex_R4_0] Error: Unable to configure the profile 0 [Error 49]
Error: Please ensure that the XXXCfg CLI command is invoked before starting the sensor

According to SDK file: "mmwavelink.h" [Error 49]
#define RL_RET_CODE_PF_DFE_SAMP_RATE_INVAL_IN (49U) /* Output sampling rate is not within [2, 37.5]Msps */

(PROFILE_SRR_DIGOUT_SAMPLERATE_VAL is defined in kbps, [2000..37500] should be accepted)

Thanks,
Claudio