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.

IWR6843AOP: calibDcRangeSig Error: Number of averaged chirps is not power of two

Genius 13655 points
Part Number: IWR6843AOP
Other Parts Discussed in Thread: IWR6843

Hello Champs,

HW:  IWR6843 + mmaveicboost

Customer wanted to use matlab to realize GUI like ..\68xx_vital_signs\gui\gui_exe.

He flashed vital_signs_demo_68xx.bin and executed the demo, ..\68xx_vital_signs\gui\gui_exe shows the correct result. 


But when he used matlab to configure, it prompted error when executing  calibDcRangeSig -1 0 0 0 0

calibDcRangeSig -1 0 0 0 0

Error: Number of averaged chirps is not power of two

Error -1

Below is the code in matlab 2021R2

clc,close,clear;

threshold_breath=10;
threshold_heart=0.1;
plot_yaxis_max_breath=1.0;
plot_yaxis_max_heart=0.5;

user_com=serialport("COM3",115200);
data_com=serialport("COM4",921600);

flush(user_com);
flush(data_com);

cfg=[
"sensorStop",...
"flushCfg",...
"dfeDataOutputMode 1",...
"channelCfg 15 3 0",...
"adcCfg 2 1",...
"adcbufCfg -1 0 0 1 0",...
"profileCfg 0 60.25 7 6 57 0 0 65 1 200 4000 0 0 40",...
"chirpCfg 0 0 0 0 0 0 0 1",...
"frameCfg 0 0 2 0 50 1 0",...
"lowPower 0 1",...
"guiMonitor 0 0 0 0 1",...
"calibDcRangeSig -1 0 0 0 0",...
"vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000",...
"motionDetection 1 20 2.0 0",...
"sensorStart",...
];

for index=1:15
writeline(user_com,cfg(index));
pause(0.5);
disp(read(user_com,user_com.NumBytesAvailable,"string"));
end

clear user_com;
clear data_com;




sensorStop
Done

mmwDemo:/>
flushCfg
Done

mmwDemo:/>
dfeDataOutputMode 1
Done

mmwDemo:/>
channelCfg 15 3 0
Done

mmwDemo:/>
adcCfg 2 1
Done

mmwDemo:/>
adcbufCfg -1 0 0 1 0
Done

mmwDemo:/>
profileCfg 0 60.25 7 6 57 0 0 65 1 200 4000 0 0 40
Done

mmwDemo:/>
chirpCfg 0 0 0 0 0 0 0 1
Done

mmwDemo:/>
frameCfg 0 0 2 0 50 1 0
Done

mmwDemo:/>
lowPower 0 1
Done

mmwDemo:/>
guiMonitor 0 0 0 0 1
Done

mmwDemo:/>
calibDcRangeSig -1 0 0 0 0
Error: Number of averaged chirps is not power of two

Error -1

mmwDemo:/>
vitalSignsCfg 0.3 0.9 256 512 4 0.1 0.05 100000 300000
Done

mmwDemo:/>
motionDetection 1 20 2.0 0
Done

mmwDemo:/>
sensorStart
Debug: Init Calibration Status = 0xffe

Done

mmwDemo:/>


Thanks.
Rgds
Shine