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.

IWR6843ISK: RS232 Not connected sometimes with IWR6843 and Booster board

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843

Hi,

We are using the IWR6843 radar board, booster board and a DCA1000 board for data collection with the mmwave studio software. After we connect all cables and open mmwave studio, click set -> then select com port an baud rate, and click connect. We got the error in the output tab of mmwave studio "Error: Connection Failed: Calling_Connect Target return 3.", and the RS232 connectivity status was shown as "disconnected" all the time 
(Please check the attached image). 

This issue happens sometimes and we have no way of solving it by resetting, power cycle, etc. The weird thing is that the board worked well two days ago and suddenly not working today. Can you help me with that?

Thanks,

Xiangyu

  • please check the screenshot of our issue here 

  • Hello.

    First I would make sure that the COM port you are selecting is the same as the input port for the board you are using on device manager.  In addition, in the guide, it is recommended that the baud rate be set to 115200.  The baud rate may not be an issue so I would first check the port number and make sure that is correct, but if that doesn't solve it, I would recommend following the steps on the guide verbatim to make sure it works with those settings.

    Sincerely,

    Santosh

    Link to DCA Guide: dev.ti.com/.../node

  • Hi Santosh,
    I tried what you said. Let me explain in detail what is actually going on.

    We followed the steps you mentioned to the letter. We were able to connect to the radar using mmwave studio and everythong worked.

    Then, we used the MATLAB api to connect to the mmwave studio and collect the data.

    Unfortunately no .bin files were saved as in the document you sent switch 2 in DCA board was turned off.

    So we followed this step:

    1. click on the disconnect button in mmwave studio and close the mmwave studio
    2. now remove the usb cables and ethernet port and then the DC in power cable to turn of the radar
    3. flip on switch 2 along with switch 5
    4. now plug in the Dcin along with usb cables,ethernet and start mmwave studio
    Error comes back again!

    Now if we follow the steps without 2 turned on & only 5 on, (as 5 only worked before) the error still remains!
    It is as if the radar board goes into some error state that no longer makes it connect to mmwave studio even after board reset & machine reboot.

    When we tried it for the first time, the board was off over the weekend for two days. And then we were able to connect .

    We noticed that switching off the board for a long period time and retrying does sometimes connect. But once the error comes, nothing we do is able to make it connect.

    Is there someother way to hard rest the board(clear chace, memeory etc.) other than the RST switch?

    Also is there a best practice connection order we have to follow while powering ON and OFF(eg: usb1 first, then usb2 ..then power)

  • We are discussing this internally and will get back to you as soon as possible.

    Sincerely,

    Santosh

  • Hi Santosh,
    A quick update. We changed the radar board and now we are able to connect.

    We replaced the radar board,attched to the booster. and followed the steps again.
    However we have a new problem:

    When we  click on DCA1000ARM : we get this message: NO LVDS data.
    When we run the DataCaptureDemo_xWR.lua it passes without any error.

    But no bin file is saved. 

    Please find attached images. Incase we are doing somethign wrong.

  • Hello.

    According to the DCA 1000 Guide, since you are using the ISK + ICBoost set up, the DCA switches should all be in the off position except for position 5.  In addition, please check the mmwavestudio_install/mmWaveStudio/PostProc folder for an adc_data.bin file as that is the default save location.

    Sincerely,

    Santosh

  • Hi Santosh,
    Yes we tried with only 5 on . The error still remains: NO LVDS data. Could the DCA board be defective?

    No bin file gets srored even using the DataCaptureDemo_xWR.lua script (but no error is shown in the output).
    Can you please help?

  • Hello.

    Looking at your images, I am not able to tell if you are using an SD card or not.  The bin file will not show up on the PC if the data is being stored on an SD card.  Is this the case with your set up?  

    Sincerely,

    Santosh

  • Hi Santosh,
    No SD card. That is why I had tried with 2 on in the DCA board and swritched to ethernet.
    I am tryint to dump the bin file on my machine. 
    I tried with both 5 on. 5 and 2 on. and 5,2 and 6 on.
    The result is alwasy the same: NO LVDS data.

  • Hello.

    Can you please send a copy of the log when you are configuring the DCA1000 board up until you press DCA ARM + a copy of the log when running the lua script?  I have also attached a link to another e2e with a similar issue, with a response that contains e2e links for possible solutions.  

    Sincerely,

    Santosh

    Link to E2E: https://e2e.ti.com/support/sensors-group/sensors/f/sensors-forum/1012318/iwr6843aopevm-no-lvds-data-with-mmwavestudio

  • Hi Santosh,
    Here are the detailed steps for GUI DCAARM method:

    1) Setup the switches on DCA board(only 5 on) , Ti board , Radar and connect power

    As you can see a single DCA in power goes into the booster board. Overall setup looks like the image attached.

    2) Connect cables to laptop, open mmwave studio and follow gui steps.

    changing the name to adc1000.bin:

    3. Now clock on DCA arm 100 trigger.

    [13:29:18] [RadarAPI]:
    [13:29:18] Start Record command : Success
    [13:29:18]
    [13:29:18] No LVDS data
    [13:29:18]
    [13:29:18] No Header
    [13:29:18]
    [13:29:18] Record stop is done successfully

    No Bin file has been saved in this folder:

    Attaching all the logs here including the output log: Log0101_0.txt.

    Question: Here is the weird part we noticed!

    After the DCA trigger has been clicked the data light on the DCA board still remains on. It never shuts off unless I press the FPGA reset button.

    Shown below after hitting DCA trigger button and NO LVDS message.

    Afrer hitting FPGA reset button on DCA board:

    We wonder if this has something to do with the data not being stored.

    I will send the log with the script in the following reply.

    Thanks a lot for your help!

    CLI_LogFile.txt
    Wed Sep 21 17:02:41 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:02:41 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:02:46 2022
    Reset FPGA Command (req)
    
    Wed Sep 21 17:02:46 2022
    Reset FPGA command : Success
    
    Wed Sep 21 17:02:46 2022
    Return status : 0
    
    Wed Sep 21 17:02:46 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:02:46 2022
    Configure Record command : Success
    
    Wed Sep 21 17:02:46 2022
    Return status : 0
    
    Wed Sep 21 17:02:46 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:02:46 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:02:53 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:02:53 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:02:53 2022
    Return status : 0
    
    Wed Sep 21 17:02:54 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:02:54 2022
    Configure Record command : Success
    
    Wed Sep 21 17:02:54 2022
    Return status : 0
    
    Wed Sep 21 17:02:54 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:02:54 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:03:13 2022
    Start Record Command (req)
    
    Wed Sep 21 17:03:13 2022
    Start Record command : Success
    
    Wed Sep 21 17:03:13 2022
    Return status : 0
    
    Wed Sep 21 17:03:43 2022
    No LVDS data
    
    Wed Sep 21 17:03:43 2022
    Record stop is done successfully
    
    Wed Sep 21 17:05:32 2022
    Start Record Command (req)
    
    Wed Sep 21 17:05:42 2022
    Start Record : 
    Timeout Error! System disconnected
    
    Wed Sep 21 17:05:42 2022
    Return status : -5
    
    Wed Sep 21 17:06:01 2022
    Start Record Command (req)
    
    Wed Sep 21 17:06:01 2022
    Start Record command : Success
    
    Wed Sep 21 17:06:01 2022
    Return status : 0
    
    Wed Sep 21 17:06:31 2022
    No LVDS data
    
    Wed Sep 21 17:06:31 2022
    Record stop is done successfully
    
    Wed Sep 21 17:06:51 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:06:51 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:06:59 2022
    Start Record Command (req)
    
    Wed Sep 21 17:07:00 2022
    Start Record command : Success
    
    Wed Sep 21 17:07:00 2022
    Return status : 0
    
    Wed Sep 21 17:07:30 2022
    No LVDS data
    
    Wed Sep 21 17:07:30 2022
    Record stop is done successfully
    
    Wed Sep 21 17:15:24 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:15:24 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:15:27 2022
    Reset FPGA Command (req)
    
    Wed Sep 21 17:15:27 2022
    Reset FPGA command : Success
    
    Wed Sep 21 17:15:27 2022
    Return status : 0
    
    Wed Sep 21 17:15:27 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:15:27 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:15:27 2022
    Return status : 0
    
    Wed Sep 21 17:15:27 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:15:27 2022
    Configure Record command : Success
    
    Wed Sep 21 17:15:27 2022
    Return status : 0
    
    Wed Sep 21 17:15:27 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:15:27 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:15:41 2022
    Start Record Command (req)
    
    Wed Sep 21 17:15:41 2022
    Start Record command : Success
    
    Wed Sep 21 17:15:41 2022
    Return status : 0
    
    Wed Sep 21 17:16:11 2022
    No LVDS data
    
    Wed Sep 21 17:16:11 2022
    Record stop is done successfully
    
    Wed Sep 21 17:21:51 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:21:51 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:21:55 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:21:55 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:21:55 2022
    Return status : 0
    
    Wed Sep 21 17:21:55 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:21:55 2022
    Configure Record command : Success
    
    Wed Sep 21 17:21:55 2022
    Return status : 0
    
    Wed Sep 21 17:21:55 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:21:55 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:28:33 2022
    Start Record Command (req)
    
    Wed Sep 21 17:28:33 2022
    Start Record command : Success
    
    Wed Sep 21 17:28:33 2022
    Return status : 0
    
    Wed Sep 21 17:29:02 2022
    No LVDS data
    
    Wed Sep 21 17:29:02 2022
    No Header
    
    Wed Sep 21 17:29:02 2022
    Record stop is done successfully
    
    Wed Sep 21 17:29:09 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:29:09 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:29:11 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:29:11 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:29:11 2022
    Return status : 0
    
    Wed Sep 21 17:29:11 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:29:11 2022
    Configure Record command : Success
    
    Wed Sep 21 17:29:11 2022
    Return status : 0
    
    Wed Sep 21 17:29:11 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:29:11 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:30:16 2022
    Start Record Command (req)
    
    Wed Sep 21 17:30:16 2022
    Start Record command : Success
    
    Wed Sep 21 17:30:16 2022
    Return status : 0
    
    Wed Sep 21 17:30:46 2022
    No LVDS data
    
    Wed Sep 21 17:30:46 2022
    Record stop is done successfully
    
    Wed Sep 21 17:31:10 2022
    Read DLL Verison Command (req)
    
    Wed Sep 21 17:31:10 2022
    DLL Version : 1.0
    
    Wed Sep 21 17:31:25 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:31:25 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:31:25 2022
    Return status : 0
    
    Wed Sep 21 17:31:25 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:31:25 2022
    Configure Record command : Success
    
    Wed Sep 21 17:31:25 2022
    Return status : 0
    
    Wed Sep 21 17:31:25 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:31:25 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:31:34 2022
    Start Record Command (req)
    
    Wed Sep 21 17:31:34 2022
    Start Record command : Success
    
    Wed Sep 21 17:31:34 2022
    Return status : 0
    
    Wed Sep 21 17:32:04 2022
    No LVDS data
    
    Wed Sep 21 17:32:04 2022
    Record stop is done successfully
    
    Wed Sep 21 17:33:21 2022
    Start Record Command (req)
    
    Wed Sep 21 17:33:21 2022
    Start Record command : Success
    
    Wed Sep 21 17:33:21 2022
    Return status : 0
    
    Wed Sep 21 17:33:51 2022
    No LVDS data
    
    Wed Sep 21 17:33:51 2022
    Record stop is done successfully
    
    Wed Sep 21 17:38:36 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:38:36 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:38:36 2022
    Return status : 0
    
    Wed Sep 21 17:38:36 2022
    Read FPGA version Command (req)
    
    Wed Sep 21 17:38:36 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Wed Sep 21 17:38:36 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:38:36 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:38:36 2022
    Return status : 0
    
    Wed Sep 21 17:38:37 2022
    FPGA Configuration Command (req)
    
    Wed Sep 21 17:38:37 2022
    FPGA Configuration command : Success
    
    Wed Sep 21 17:38:37 2022
    Return status : 0
    
    Wed Sep 21 17:38:37 2022
    Configure Record Command (req)
    
    Wed Sep 21 17:38:37 2022
    Configure Record command : Success
    
    Wed Sep 21 17:38:37 2022
    Return status : 0
    
    Mon Sep 26 13:27:16 2022
    Read DLL Verison Command (req)
    
    Mon Sep 26 13:27:16 2022
    DLL Version : 1.0
    
    Mon Sep 26 13:27:20 2022
    FPGA Configuration Command (req)
    
    Mon Sep 26 13:27:30 2022
    FPGA Configuration : 
    Timeout Error! System disconnected
    
    Mon Sep 26 13:27:30 2022
    Return status : -5
    
    Mon Sep 26 13:27:30 2022
    Configure Record Command (req)
    
    Mon Sep 26 13:27:30 2022
    Configure Record command : Success
    
    Mon Sep 26 13:27:30 2022
    Return status : 0
    
    Mon Sep 26 13:27:30 2022
    Read FPGA version Command (req)
    
    Mon Sep 26 13:27:30 2022
    
    FPGA Version : 2.8 [Record]
    
    
    Mon Sep 26 13:28:49 2022
    Start Record Command (req)
    
    Mon Sep 26 13:28:49 2022
    Start Record command : Success
    
    Mon Sep 26 13:28:49 2022
    Return status : 0
    
    Mon Sep 26 13:29:18 2022
    No LVDS data
    
    Mon Sep 26 13:29:18 2022
    No Header
    
    Mon Sep 26 13:29:18 2022
    Record stop is done successfully
    
    adc1000_Raw_LogFile.csv
    adc1000_LogFile.txt
    26-Sep-2022 13:13:46: IsFPGA:,0,0,
    26-Sep-2022 13:13:46: C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\RunTime,0,
    26-Sep-2022 13:13:48: API:select_capture_device,DCA1000,0,
    26-Sep-2022 13:17:48: API:select_chip_version,IWR6843,0,
    26-Sep-2022 13:19:15: API:select_chip_version,IWR6843,0,
    26-Sep-2022 13:21:17: API:ChannelConfig,7,15,0,
    26-Sep-2022 13:21:17: API:AdcOutConfig,2,2,0,
    26-Sep-2022 13:21:17: API:DataFmtConfig,15,2,1,0,1,0,
    26-Sep-2022 13:21:35: API:LowPowerConfig,0,0,0,
    26-Sep-2022 13:22:35: API:DataPathConfig,1,1,0,2,0,
    26-Sep-2022 13:22:46: API:LvdsClkConfig,1,1,0,
    26-Sep-2022 13:22:46: TSW1400 Sampling rate : 600000000 7500000,0,
    26-Sep-2022 13:22:46: API:SetHsiClock,9,0,
    26-Sep-2022 13:22:54: API:LaneConfig,3,0,
    26-Sep-2022 13:22:54: API:LvdsLaneConfig,0,1,0,
    26-Sep-2022 13:24:33: API:ProfileConfig,0,1491308089,10000,600,6000,0,0,828,0,256,10000,0,0,30,0,
    26-Sep-2022 13:24:44: API:ChirpConfig,0,0,0,0,0,0,0,1,0,
    26-Sep-2022 13:25:15: API:EnableTestSource,0,1,0,
    26-Sep-2022 13:25:15: API:FrameConfig,0,0,8,128,8000000,0,512,0,
    26-Sep-2022 13:25:15: API:AdvancedFrameConfig,1,0,0,0,1,128,8000000,0,1,1,8000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    26-Sep-2022 13:27:16: API:select_capture_device,DCA1000,0,
    

    Log0101_0.txt
    GM: Constructor
    GM: Mon Sep 26 13:13:32 2022
    RSTD.Transmit("/Settings")
    [13:13:33]  
    [13:13:33]  ### Running Startup script: "C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\Startup.lua" ###
    [13:13:33]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [13:13:33]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [13:13:33]  Scripter ignored: Attempt to UnBuild() again or before Build.
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [13:13:33]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [13:13:33]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [13:13:33]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [13:13:33]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [13:13:33]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [13:13:33]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [13:13:33]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [13:13:33]  RSTD.Transmit("/")
    [13:13:33]  RSTD.SaveSettings(): Settings saved to "C:\Users\ESLSSL\AppData\Roaming\RSTD\config.xml"
    [13:13:33]  RSTD.Build()
    [13:13:33]  RSTD.SaveSettings(): Settings saved to "C:\Users\ESLSSL\AppData\Roaming\RSTD\config.xml"
    [13:13:33]  RSTD.Transmit("/")
    [13:13:33]  RSTD.AL_Build()
    [13:13:33]  RSTD.AL_LoadXml()
    [13:13:33]  RSTD.Transmit("/")
    [13:13:33]  RSTD.AL_Init()
    [13:13:33]  RSTD.Clients_Build()
    [13:13:33]  GM: Init
    [13:13:33]  GM: Loaded 'C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Clients\\LabClient.dll'
    [13:13:33]  GM: 1 Guest (s) init
    [13:13:33]  GM: 1 Module(s) init
    [13:13:33]  GM: 2 Tab   (s) init
    [13:13:33]  RSTD.Client_LoadXml()
    [13:13:34]  [RadarAPI]: ar1.selectRadarMode(0)
    [13:13:34]  [RadarAPI]: Status: Passed
    [13:13:34]  Matlab Runtime Engine is installed
    [13:13:34]  [RadarAPI]: Starting Matlab Engine..
    [13:13:46]  [RadarAPI]: Matlab Engine Started!
    [13:13:48]  [RadarAPI]: ar1.selectCascadeMode(0)
    [13:13:48]  [RadarAPI]: Status: Passed
    [13:13:48]  [RadarAPI]: ar1.LoadSettings('C:\Users\ESLSSL\AppData\Roaming\RSTD\ar1gui.ini')
    [13:13:48]  TESTING = false
    [13:13:48]  RstdNet: Port 2777: Listening..
    [13:13:48]  
    [13:13:48]  ***Script completed successfully.***
    [13:14:01]  RSTD.ShowLogFile()
    [13:17:40]  [RadarAPI]: Opening Gpio Control Port()
    [13:17:40]  [RadarAPI]: Status: Passed
    [13:17:40]  [RadarAPI]: Opening Board Control Port()
    [13:17:40]  [RadarAPI]: Status: Passed
    [13:17:41]  [RadarAPI]: ar1.FullReset()
    [13:17:41]  [RadarAPI]: Status: Passed
    [13:17:42]  [RadarAPI]: Closing Board Control Port()
    [13:17:42]  [RadarAPI]: Status: Passed
    [13:17:42]  [RadarAPI]: Closing Gpio Control Port()
    [13:17:42]  [RadarAPI]: Status: Passed
    [13:17:42]  [RadarAPI]: ar1.SOPControl(2)
    [13:17:42]  [RadarAPI]: Status: Passed
    [13:17:45]  [RadarAPI]: ar1.Connect(5,115200,1000)
    [13:17:46]  [RadarAPI]: ar1.Calling_IsConnected()
    [13:17:48]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:17:48]  [RadarAPI]: Status: Passed
    [13:17:48]  [RadarAPI]: ar1.frequencyBandSelection("60G")
    [13:17:48]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:17:48]  [RadarAPI]: Status: Passed
    [13:17:48]  Device Status : IWR6843/QM/SOP:2/ES:2
    [13:17:48]  [RadarAPI]: ar1.SaveSettings('C:\Users\ESLSSL\AppData\Roaming\RSTD\ar1gui.ini')
    [13:18:00]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
    [13:18:01]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
    [13:18:48]  [RadarAPI]: ar1.GetBSSFwVersion()
    [13:18:48]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
    [13:18:51]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin")
    [13:18:51]  [RadarAPI]: Downloading MSS RPRC Binary..
    [13:19:10]  [RadarAPI]: ar1.GetMSSFwVersion()
    [13:19:10]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
    [13:19:12]  [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [13:19:12]  [RadarAPI]: Status: Passed
    [13:19:13]  MSS power up done async event received!
    [13:19:15]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:19:15]  [RadarAPI]: Status: Passed
    [13:19:15]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:19:15]  [RadarAPI]: Status: Passed
    [13:19:15]  Device Status : IWR6843/QM/SOP:2/ES:2
    [13:19:15]  [RadarAPI]: ar1.RfEnable()
    [13:19:15]  BSS power up done async event received!
    [13:19:15]  [RadarAPI]: Status: Passed
    [13:19:16]  [RadarAPI]: ar1.GetMSSFwVersion()
    [13:19:16]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
    [13:19:16]  [RadarAPI]: ar1.GetBSSFwVersion()
    [13:19:16]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
    [13:21:17]  [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 1, 1, 1, 1, 1, 2, 2, 0)
    [13:21:17]  [RadarAPI]: Status: Passed
    [13:21:35]  [RadarAPI]: ar1.LPModConfig(0, 0)
    [13:21:35]  [RadarAPI]: Status: Passed
    [13:21:37]  [RadarAPI]: ar1.RfInit()
    [13:21:37]  RF Init async event received!
    [13:21:37]  [RadarAPI]: Time stamp, Temperture: 141838,45; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; TxPhase Status, Update: 1, 1; RxIQMM Status, Update: 1, 1; 
    [13:21:37]  [RadarAPI]: Status: Passed
    [13:22:34]  [RadarAPI]: ar1.DataPathConfig(513, 1216644097, 0)
    [13:22:35]  [RadarAPI]: Status: Passed
    [13:22:46]  [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [13:22:46]  [RadarAPI]: Status: Passed
    [13:22:53]  [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [13:22:54]  [RadarAPI]: Status: Passed
    [13:24:33]  [RadarAPI]: ar1.ProfileConfig(0, 60, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 131072, 30)
    [13:24:33]  [RadarAPI]: Status: Passed
    [13:24:44]  [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
    [13:24:44]  [RadarAPI]: Status: Passed
    [13:25:15]  Test Source Already Disabled...!!!
    [13:25:15]  [RadarAPI]: ar1.DisableTestSource(0)
    [13:25:15]  [RadarAPI]: Status: Passed
    [13:25:15]  [RadarAPI]: ar1.FrameConfig(0, 0, 8, 128, 40, 0, 0, 1)
    [13:25:15]  [RadarAPI]: Status: Passed
    [13:27:16]  [RadarAPI]: ar1.GetCaptureCardDllVersion()
    [13:27:16]  [RadarAPI]: Sending dll_version command to DCA1000
    [13:27:16]  [RadarAPI]: 
    [13:27:16]  DLL Version : 1.0
    [13:27:16]  [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [13:27:16]  [RadarAPI]: Status: Passed
    [13:27:19]  [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098)
    [13:27:19]  [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30)
    [13:27:19]  [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [13:27:20]  [RadarAPI]: Sending fpga command to DCA1000
    [13:27:30]  [RadarAPI]: 
    [13:27:30]  FPGA Configuration : 
    [13:27:30]  Timeout Error! System disconnected
    [13:27:30]  [RadarAPI]: Sending record command to DCA1000
    [13:27:30]  [RadarAPI]: 
    [13:27:30]  Configure Record command : Success
    [13:27:30]  [RadarAPI]: ar1.GetCaptureCardFPGAVersion()
    [13:27:30]  [RadarAPI]: Sending fpga_version command to DCA1000
    [13:27:30]  [RadarAPI]: 
    [13:27:30]  
    [13:27:30]  FPGA Version : 2.8 [Record]
    [13:27:30]  
    [13:28:49]  [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\PostProc\\adc1000.bin", 1)
    [13:28:49]  [RadarAPI]: Sending start_record command to DCA1000
    [13:29:18]  [RadarAPI]: 
    [13:29:18]  Start Record command : Success
    [13:29:18]  
    [13:29:18]  No LVDS data
    [13:29:18]  
    [13:29:18]  No Header
    [13:29:18]  
    [13:29:18]  Record stop is done successfully
    

  • Hi Santosh,
    Following steps for running .lua script also attached the logs.

    Attached full Log0102_0.txt. No .bin file is saved at all.

    Also attached DataCaptureDemo_xWR.lua just to make sure, we are using the correct version.

    Log0102_0.txt
    GM: Constructor
    GM: Mon Sep 26 13:53:05 2022
    RSTD.Transmit("/Settings")
    [13:53:05]  
    [13:53:05]  ### Running Startup script: "C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\Startup.lua" ###
    [13:53:05]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [13:53:05]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [13:53:05]  Scripter ignored: Attempt to UnBuild() again or before Build.
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [13:53:05]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [13:53:05]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [13:53:05]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [13:53:05]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [13:53:05]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [13:53:05]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [13:53:05]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [13:53:05]  RSTD.Transmit("/")
    [13:53:05]  RSTD.SaveSettings(): Settings saved to "C:\Users\ESLSSL\AppData\Roaming\RSTD\config.xml"
    [13:53:05]  RSTD.Build()
    [13:53:05]  RSTD.SaveSettings(): Settings saved to "C:\Users\ESLSSL\AppData\Roaming\RSTD\config.xml"
    [13:53:05]  RSTD.Transmit("/")
    [13:53:05]  RSTD.AL_Build()
    [13:53:05]  RSTD.AL_LoadXml()
    [13:53:05]  RSTD.Transmit("/")
    [13:53:05]  RSTD.AL_Init()
    [13:53:05]  RSTD.Clients_Build()
    [13:53:05]  GM: Init
    [13:53:05]  GM: Loaded 'C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Clients\\LabClient.dll'
    [13:53:05]  GM: 1 Guest (s) init
    [13:53:05]  GM: 1 Module(s) init
    [13:53:05]  GM: 2 Tab   (s) init
    [13:53:05]  RSTD.Client_LoadXml()
    [13:53:06]  [RadarAPI]: ar1.selectRadarMode(0)
    [13:53:06]  [RadarAPI]: Status: Passed
    [13:53:06]  Matlab Runtime Engine is installed
    [13:53:06]  [RadarAPI]: Starting Matlab Engine..
    [13:53:09]  [RadarAPI]: Matlab Engine Started!
    [13:53:10]  [RadarAPI]: ar1.selectCascadeMode(0)
    [13:53:10]  [RadarAPI]: Status: Passed
    [13:53:10]  [RadarAPI]: ar1.LoadSettings('C:\Users\ESLSSL\AppData\Roaming\RSTD\ar1gui.ini')
    [13:53:11]  TESTING = false
    [13:53:11]  RstdNet: Port 2777: Listening..
    [13:53:11]  
    [13:53:11]  ***Script completed successfully.***
    [13:53:15]  RSTD.ShowLogFile()
    [13:53:21]  [RadarAPI]: Opening Gpio Control Port()
    [13:53:21]  [RadarAPI]: Status: Passed
    [13:53:22]  [RadarAPI]: Opening Board Control Port()
    [13:53:22]  [RadarAPI]: Status: Passed
    [13:53:23]  [RadarAPI]: ar1.FullReset()
    [13:53:23]  [RadarAPI]: Status: Passed
    [13:53:24]  [RadarAPI]: Closing Board Control Port()
    [13:53:24]  [RadarAPI]: Status: Passed
    [13:53:24]  [RadarAPI]: Closing Gpio Control Port()
    [13:53:24]  [RadarAPI]: Status: Passed
    [13:53:24]  [RadarAPI]: ar1.SOPControl(2)
    [13:53:24]  [RadarAPI]: Status: Passed
    [13:53:25]  [RadarAPI]: ar1.Connect(5,115200,1000)
    [13:53:26]  [RadarAPI]: ar1.Calling_IsConnected()
    [13:53:27]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:53:27]  [RadarAPI]: Status: Passed
    [13:53:27]  [RadarAPI]: ar1.frequencyBandSelection("60G")
    [13:53:27]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:53:27]  [RadarAPI]: Status: Passed
    [13:53:28]  Device Status : IWR6843/QM/SOP:2/ES:2
    [13:53:28]  [RadarAPI]: ar1.SaveSettings('C:\Users\ESLSSL\AppData\Roaming\RSTD\ar1gui.ini')
    [13:53:30]  [RadarAPI]: ar1.ReadRegister(0xffffe214, 0, 31)
    [13:53:31]  [RadarAPI]: ar1.ReadRegister(0xffffe210, 0, 31)
    [13:53:31]  [RadarAPI]: ar1.frequencyBandSelection("60G")
    [13:53:31]  [RadarAPI]: ar1.ReadRegister(0xffffe218, 0, 31)
    [13:53:31]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
    [13:53:31]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
    [13:54:19]  [RadarAPI]: ar1.GetBSSFwVersion()
    [13:54:19]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
    [13:54:19]  BSS FW Download Success
    [13:54:19]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin")
    [13:54:19]  [RadarAPI]: Downloading MSS RPRC Binary..
    [13:54:38]  [RadarAPI]: ar1.GetMSSFwVersion()
    [13:54:38]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
    [13:54:38]  MSS FW Download Success
    [13:54:39]  [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [13:54:39]  [RadarAPI]: Status: Passed
    [13:54:39]  MSS power up done async event received!
    [13:54:39]  Power On Success
    [13:54:40]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:54:40]  [RadarAPI]: Status: Passed
    [13:54:40]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
    [13:54:40]  [RadarAPI]: Status: Passed
    [13:54:40]  Device Status : IWR6843/QM/SOP:2/ES:2
    [13:54:40]  [RadarAPI]: ar1.RfEnable()
    [13:54:40]  BSS power up done async event received!
    [13:54:40]  [RadarAPI]: Status: Passed
    [13:54:40]  [RadarAPI]: ar1.GetMSSFwVersion()
    [13:54:40]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
    [13:54:41]  [RadarAPI]: ar1.GetBSSFwVersion()
    [13:54:41]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
    [13:54:41]  RF Enable Success
    [13:54:41]  [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 1, 1, 1, 1, 1, 2, 1, 0)
    [13:54:41]  [RadarAPI]: Status: Passed
    [13:54:41]  ChanNAdcConfig Success
    [13:54:41]  [RadarAPI]: ar1.LPModConfig(0, 0)
    [13:54:41]  [RadarAPI]: Status: Passed
    [13:54:41]  Regualar mode Cfg Success
    [13:54:41]  [RadarAPI]: ar1.RfInit()
    [13:54:42]  RF Init async event received!
    [13:54:42]  [RadarAPI]: Time stamp, Temperture: 1597,39; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; TxPhase Status, Update: 1, 1; RxIQMM Status, Update: 1, 1; 
    [13:54:42]  [RadarAPI]: Status: Passed
    [13:54:42]  RfInit Success
    [13:54:43]  [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  DataPathConfig Success
    [13:54:43]  [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  LvdsClkConfig Success
    [13:54:43]  [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  LVDSLaneConfig Success
    [13:54:43]  [RadarAPI]: ar1.ProfileConfig(0, 60, 59, 7, 57.14, 0, 0, 0, 0, 0, 0, 69.994, 1, 112, 2279, 0, 0, 30)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  ProfileConfig Success
    [13:54:43]  [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  ChirpConfig Success
    [13:54:43]  [RadarAPI]: ar1.ChirpConfig(1, 1, 0, 0, 0, 0, 0, 1, 0, 0)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  ChirpConfig Success
    [13:54:43]  [RadarAPI]: ar1.ChirpConfig(2, 2, 0, 0, 0, 0, 0, 0, 1, 0)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  ChirpConfig Success
    [13:54:43]  Test Source Already Disabled...!!!
    [13:54:43]  [RadarAPI]: ar1.DisableTestSource(0)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  [RadarAPI]: ar1.FrameConfig(0, 2, 8, 250, 100, 0, 0, 1)
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  FrameConfig Success
    [13:54:43]  [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [13:54:43]  [RadarAPI]: Status: Passed
    [13:54:43]  SelectCaptureDevice Success
    [13:54:43]  [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "c:22:38:4e:5a:c", 4096, 4098)
    [13:54:44]  [RadarAPI]: Sending fpga command to DCA1000
    [13:54:44]  [RadarAPI]: 
    [13:54:44]  FPGA Configuration command : Success
    [13:54:44]  [RadarAPI]: Sending fpga_version command to DCA1000
    [13:54:44]  [RadarAPI]: 
    [13:54:44]  
    [13:54:44]  FPGA Version : 2.8 [Record]
    [13:54:44]  
    [13:54:44]  CaptureCardConfig_EthInit Success
    [13:54:44]  [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 0)
    [13:54:44]  [RadarAPI]: Sending fpga command to DCA1000
    [13:54:44]  [RadarAPI]: 
    [13:54:44]  FPGA Configuration command : Success
    [13:54:44]  CaptureCardConfig_Mode Success
    [13:54:44]  [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [13:54:44]  [RadarAPI]: Sending fpga command to DCA1000
    [13:54:44]  [RadarAPI]: 
    [13:54:44]  FPGA Configuration command : Success
    [13:54:44]  [RadarAPI]: Sending record command to DCA1000
    [13:54:44]  [RadarAPI]: 
    [13:54:44]  Configure Record command : Success
    [13:54:44]  CaptureCardConfig_PacketDelay Success
    [13:54:44]  
    [13:54:44]  ***Script completed successfully.***
    

  • --BSS and MSS firmware download
    info = debug.getinfo(1,'S');
    file_path = (info.source);
    file_path = string.gsub(file_path, "@","");
    file_path = string.gsub(file_path, "DataCaptureDemo_xWR.lua","");
    fw_path   = file_path.."..\\..\\rf_eval_firmware"

    --Export bit operation file
    bitopfile = file_path.."\\".."bitoperations.lua"
    dofile(bitopfile)

    --Read part ID
    --This register address used to find part number for ES2 and ES3 devices
    res, efusedevice = ar1.ReadRegister(0xFFFFE214, 0, 31)
    res, efuseES1device = ar1.ReadRegister(0xFFFFE210, 0, 31)
    efuseES2ES3Device = bit_and(efusedevice, 0x03FC0000)
    efuseES2ES3Device = bit_rshift(efuseES2ES3Device, 18)

    --if part number is zero then those are ES1 devices
    if(efuseES2ES3Device == 0) then
        if (bit_and(efuseES1device, 3) == 0) then
            partId = 1243
        elseif (bit_and(efuseES1device, 3) == 1) then
            partId = 1443
        else
            partId = 1642
        end
    elseif(efuseES2ES3Device == 0xE0 and (bit_and(efuseES1device, 3) == 2)) then
            partId = 6843
            ar1.frequencyBandSelection("60G")
    --if part number is non-zero then those are ES12 and ES3 devices
    else
       if(efuseES2ES3Device == 0x20 or efuseES2ES3Device == 0x21 or efuseES2ES3Device == 0x80) then
            partId = 1243
        elseif(efuseES2ES3Device == 0xA0 or efuseES2ES3Device == 0x40)then
            partId = 1443
        elseif(efuseES2ES3Device == 0x60 or efuseES2ES3Device == 0x61 or efuseES2ES3Device == 0x04 or efuseES2ES3Device == 0x62 or efuseES2ES3Device == 0x67) then
            partId = 1642
        elseif(efuseES2ES3Device == 0x66 or efuseES2ES3Device == 0x01 or efuseES2ES3Device == 0xC0 or efuseES2ES3Device == 0xC1) then
            partId = 1642
        elseif(efuseES2ES3Device == 0x70 or efuseES2ES3Device == 0x71 or efuseES2ES3Device == 0xD0 or efuseES2ES3Device == 0x05) then
            partId = 1843
        elseif(efuseES2ES3Device == 0xE0 or efuseES2ES3Device == 0xE1 or efuseES2ES3Device == 0xE2 or efuseES2ES3Device == 0xE3 or efuseES2ES3Device == 0xE4) then
            partId = 6843
            ar1.frequencyBandSelection("60G")
        else
            WriteToLog("Inavlid Device part number in ES2 and ES3 devices\n" ..partId)
        end
    end

    --ES version
    res, ESVersion = ar1.ReadRegister(0xFFFFE218, 0, 31)
    ESVersion = bit_and(ESVersion, 15)

    --ADC_Data file path
    data_path     = file_path.."..\\PostProc"
    adc_data_path = data_path.."\\adc_data3.bin"

    -- Download Firmware
    if(partId == 1642) then
        BSS_FW    = fw_path.."\\radarss\\xwr16xx_radarss.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr16xx_masterss.bin"
    elseif(partId == 1243) then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss.bin"
    elseif(partId == 1443) then
        BSS_FW    = fw_path.."\\radarss\\xwr12xx_xwr14xx_radarss.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr12xx_xwr14xx_masterss.bin"
    elseif(partId == 1843) then
        BSS_FW    = fw_path.."\\radarss\\xwr18xx_radarss.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr18xx_masterss.bin"
    elseif(partId == 6843) then
        BSS_FW    = fw_path.."\\radarss\\xwr68xx_radarss.bin"
        MSS_FW    = fw_path.."\\masterss\\xwr68xx_masterss.bin"
    else
        WriteToLog("Invalid Device partId FW\n" ..partId)
        WriteToLog("Invalid Device ESVersion\n" ..ESVersion)
    end

    -- Download BSS Firmware
    if (ar1.DownloadBSSFw(BSS_FW) == 0) then
        WriteToLog("BSS FW Download Success\n", "green")
    else
        WriteToLog("BSS FW Download failure\n", "red")
    end

    -- Download MSS Firmware
    if (ar1.DownloadMSSFw(MSS_FW) == 0) then
        WriteToLog("MSS FW Download Success\n", "green")
    else
        WriteToLog("MSS FW Download failure\n", "red")
    end

    -- SPI Connect
    if (ar1.PowerOn(1, 1000, 0, 0) == 0) then
        WriteToLog("Power On Success\n", "green")
    else
       WriteToLog("Power On failure\n", "red")
    end

    -- RF Power UP
    if (ar1.RfEnable() == 0) then
        WriteToLog("RF Enable Success\n", "green")
    else
        WriteToLog("RF Enable failure\n", "red")
    end

    if (ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 1, 0) == 0) then
        WriteToLog("ChanNAdcConfig Success\n", "green")
    else
        WriteToLog("ChanNAdcConfig failure\n", "red")
    end

    if (partId == 1642) then
        if (ar1.LPModConfig(0, 1) == 0) then
            WriteToLog("LPModConfig Success\n", "green")
        else
            WriteToLog("LPModConfig failure\n", "red")
        end
    else
        if (ar1.LPModConfig(0, 0) == 0) then
            WriteToLog("Regualar mode Cfg Success\n", "green")
        else
            WriteToLog("Regualar mode Cfg failure\n", "red")
        end
    end

    if (ar1.RfInit() == 0) then
        WriteToLog("RfInit Success\n", "green")
    else
        WriteToLog("RfInit failure\n", "red")
    end

    RSTD.Sleep(1000)

    if (ar1.DataPathConfig(1, 1, 0) == 0) then
        WriteToLog("DataPathConfig Success\n", "green")
    else
        WriteToLog("DataPathConfig failure\n", "red")
    end

    if (ar1.LvdsClkConfig(1, 1) == 0) then
        WriteToLog("LvdsClkConfig Success\n", "green")
    else
        WriteToLog("LvdsClkConfig failure\n", "red")
    end

    if((partId == 1642) or (partId == 1843) or (partId == 6843)) then
        if (ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0) == 0) then
            WriteToLog("LVDSLaneConfig Success\n", "green")
        else
            WriteToLog("LVDSLaneConfig failure\n", "red")
        end
    elseif ((partId == 1243) or (partId == 1443)) then
        if (ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0) == 0) then
            WriteToLog("LVDSLaneConfig Success\n", "green")
        else
            WriteToLog("LVDSLaneConfig failure\n", "red")
        end
    end

    if (ar1.SetTestSource(4, 3, 0, 0, 0, 0, -327, 0, -327, 327, 327, 327, -2.5, 327, 327, 0, 0, 0, 0, -327, 0, -327,
                          327, 327, 327, -95, 0, 0, 0.5, 0, 1, 0, 1.5, 0, 0, 0, 0, 0, 0, 0) == 0) then
        WriteToLog("Test Source Configuration Success\n", "green")
    else
        WriteToLog("Test Source Configuration failure\n", "red")
    end

    if((partId == 1642) or (partId == 1843)) then
        if(ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 5000, 0, 0, 30) == 0) then
            WriteToLog("ProfileConfig Success\n", "green")
        else
            WriteToLog("ProfileConfig failure\n", "red")
        end
    elseif((partId == 1243) or (partId == 1443)) then
        if(ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30) == 0) then
            WriteToLog("ProfileConfig Success\n", "green")
        else
            WriteToLog("ProfileConfig failure\n", "red")
        end
    elseif(partId == 6843) then
        if(ar1.ProfileConfig(0, 60.25, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 131072, 30) == 0) then
            WriteToLog("ProfileConfig Success\n", "green")
        else
            WriteToLog("ProfileConfig failure\n", "red")
        end
    end

    if (ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0) == 0) then
        WriteToLog("ChirpConfig Success\n", "green")
    else
        WriteToLog("ChirpConfig failure\n", "red")
    end

    if (ar1.EnableTestSource(1) == 0) then
        WriteToLog("Enabling Test Source Success\n", "green")
    else
        WriteToLog("Enabling Test Source failure\n", "red")
    end

    if (ar1.FrameConfig(0, 0, 8, 128, 40, 0, 0, 1) == 0) then
        WriteToLog("FrameConfig Success\n", "green")
    else
        WriteToLog("FrameConfig failure\n", "red")
    end

    -- select Device type
    if (ar1.SelectCaptureDevice("DCA1000") == 0) then
        WriteToLog("SelectCaptureDevice Success\n", "green")
    else
        WriteToLog("SelectCaptureDevice failure\n", "red")
    end

    --DATA CAPTURE CARD API
    if (ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "12:34:56:78:90:12", 4096, 4098) == 0) then
        WriteToLog("CaptureCardConfig_EthInit Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_EthInit failure\n", "red")
    end

    --AWR12xx or xWR14xx-1, xWR16xx or xWR18xx or xWR68xx- 2 (second parameter indicates the device type)
    if ((partId == 1642) or (partId == 1843) or (partId == 6843)) then
        if (ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 30) == 0) then
            WriteToLog("CaptureCardConfig_Mode Success\n", "green")
        else
            WriteToLog("CaptureCardConfig_Mode failure\n", "red")
        end
    elseif ((partId == 1243) or (partId == 1443)) then
        if (ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 30) == 0) then
            WriteToLog("CaptureCardConfig_Mode Success\n", "green")
        else
            WriteToLog("CaptureCardConfig_Mode failure\n", "red")
        end
    end

    if (ar1.CaptureCardConfig_PacketDelay(25) == 0) then
        WriteToLog("CaptureCardConfig_PacketDelay Success\n", "green")
    else
        WriteToLog("CaptureCardConfig_PacketDelay failure\n", "red")
    end

    --Start Record ADC data
    ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
    RSTD.Sleep(1000)

    --Trigger frame
    ar1.StartFrame()
    RSTD.Sleep(5000)

    --Post process the Capture RAW ADC data
    ar1.StartMatlabPostProc(adc_data_path)
    WriteToLog("Please wait for a few seconds for matlab post processing .....!!!! \n", "green")
    RSTD.Sleep(10000)
  • Hi Santosh,
    Bad news! even the new radar board we purchased suddenly got the COM port issue again when I repowered the board today!

    It is the same error again! I wish atleast it prints a better log so we know what is the problem.

    [15:59:05] [RadarAPI]: ar1.Connect(5,115200,1000)
    [15:59:07] [RadarAPI]: Error: Connection failed: Calling_ConnectTarget returned 3

  • Hello.

    Your set-up and procedure looks correct.  I am discussing this internally and will respond to you as soon as possible.  In the meantime, I just wanted to follow up and see if you tried anything from the e2e I linked in my previous response.  Also this is just a reminder that e2e will be down starting September 28th.

    Sincerely,

    Santosh

  • Yes. I had tried all of the steps from the links you sent. No luck.
    Can we communicate another way instead of the forums then? We have already bought 2 radar boards, 2 booster boards. We cant seem to get it to work or even connect through the COM port.

    Please help us connect as we cant buy another DCA board as shipping takes too long. Otherwise we are being asked to abandon this and switch to different radar that will be a huge waste of time and money. 
    Thanks for all your help until now. Much appreciated.

  • HI, Narayanan:

    Sorry to hear your troubles.   

    1) You can try the SDK OOB demo to verify whether ICBOOST and radar EVM is working correctly.   The switch setting will be different. and you can follow the instruction in the mmwave industry toolbox. https://dev.ti.com/tirex/explore/node?node=A__AGtCjKIp2k4GNBxVm27NOw__com.ti.mmwave_industrial_toolbox__VLyFKFf__LATEST

    You may need to download the whole industrial toolbox at https://dev.ti.com/tirex/explore/node?node=A__AL83WtzTg4DL4DGRimSv.g__com.ti.mmwave_industrial_toolbox__VLyFKFf__LATEST in order to get the binary file. 

    Please make sure that you disconnect the blue cable (it will disconnect DCA1000) and change the switch settings based on the instruction. 

    2) if you pass (1), then your ICBOOSTER and radar EVM should be good to go.   You can again focus on DCA1000 board. (reconnect the blue cable and set back all the previous switch settings).  You can find some debug ideas in the debug handbook https://dev.ti.com/tirex/explore/node?node=A__ALXBNwzujD9wALoMbM4BAQ__com.ti.mmwave_industrial_toolbox__VLyFKFf__LATEST .  If you search for capture issues, you can find several tips to try.  For example, try a different power supply, make sure it is with 5V/3A.   By the way, the corner LED on DCA1000 board should be on after the capture is done.  And the same LED light should be flashing during data capture. 

    Let me know if this helps,

    Zigang

     

  • Hi Zigang.
    Thanks a lot for the steps. We went through the 1) steps and can confirm that everything works. Able to run the vizualizer and get the data.
    therefore, it is the DCA board that is causing both these errors:


    [15:59:05] [RadarAPI]: ar1.Connect(5,115200,1000)
    [15:59:07] [RadarAPI]: Error: Connection failed: Calling_ConnectTarget returned 3

    and LVDS no data error.

    Here in the interesting part. If we let the setup disconnected for 2 days, then when we connect the COM port issue is breiefly resolved. Meaning we are able to connect to the board in mmwavestudio. However, after 2 or 3 reboot cycles the error comes back again and no longer connects. I wonder if this has something to do with the power.
    This was the cable we were using:

    We have ordered a new power cable.

    I tried the steps in the debug as well. No luck.
    Is it possible to replace the DCA board? Is there something else we can try?

  • Hello.

    Thank you for your patience while e2e was undergoing maintenance.  After reviewing your steps and the script, I noticed that you didn't press the trigger frame button after pressing the DCA ARM button.  In addition, the script does call the function called by the trigger frame button so that may be the reason behind the error not showing up when running the script.  In addition, you may not see a bin file if you do not press postproc, which should be pressed after the frame has completed collecting data.  Please try these steps and see if they change anything.  With regards to the connection, issues, please make sure all the cables are securely attached to the DCA and ICBoost.  The cable looks to be fine but try a cable that specifies a 5V 3A output.

    Sincerely,

    Santosh

  • Hi Santosh,
    The problem is already coming after DCA ARM button. No LVDS error already comes there. When I clock on trigger it throw and error and so does not proceed.

    Now since we have the COM port issue again on the new radar board and new TI board  , we are not even able to connect to mmwave studio  and proceed after step 1. I tried mmwave studio 2.1.1.0 and 2.1.0.0 on win11 ..issue still remains.

    Please help. If we could get some more information on :[13:41:29]  [RadarAPI]: Error: Connection failed: Calling_ConnectTarget returned 3. Then maybe we can atleast debug it.

  • Hello.
    We are looking into this issue internally and will reach out as soon as possible. With regards to the LVDS data error, does it come immediately after you press the DCA ARM button? I recreated the error but only after pressing the button and then waiting without pressing the trigger frame button for some time.

    f we could get some more information on :[13:41:29]  [RadarAPI]: Error: Connection failed: Calling_ConnectTarget returned 3. Then maybe we can atleast debug it.

    With regards to the connection issue, the image below was pulled from the debugging handbook and lists potential solutions for the problem.  This is all the documentation we have on the specified error message.  I just want to confirm that all possible sources of error have been explored.

    Finally, have you tried using the DCA with the ISK board standalone?  I noticed you have a Rev D of the ISK, which can function in standalone(can directly attach to the DCA1000).
    Sincerely,
    Santosh

  • Instruction say: Click on DCA1000 ARM and then Trigger Frame.

    Okay, So I press on DCA ARM button and wait for a few seconds looking at the output and I get no LVDS error.
    So I should press DCA ARM and then trigger frame immediately after and not wait? I can try that next time as soon as I get the COM port issue resolved.

    COM PORT issue:
    - I replaced all USB cables, and power, no luck.

    - I rebooted machine connected the cables and ran Putty on COM PORT5

    it is always blank:

    After closing putty , I try mmwave studio. No luck still.

    Closed all instances on mmwave studio. No antivirus ,firewall. Still no luck.

    No programs running either:

     

    Reboot of pc doesnt solve the problem. Putty is always blank and mmwave studio doesnt connect.

    - Pins for Sop0 and 1 are covered using the black covers and sop2 is exposed.


  • So I should press DCA ARM and then trigger frame immediately after and not wait? I can try that next time as soon as I get the COM port issue resolved.

    Yes.  When you normally press DCA ARM it will output a message indicating it is waiting for you to trigger a frame, so you should be pressing those in order relatively quickly.  When using the script, I recommend you comment out everything after

    "if (ar1.CaptureCardConfig_PacketDelay(25) == 0then
        WriteToLog("CaptureCardConfig_PacketDelay Success\n""green")
    else
        WriteToLog("CaptureCardConfig_PacketDelay failure\n""red")
    end".
    After this, include RSTD.Sleep(1000), and then comment out everything following this.
    After this, you will have to manually hit the DCA ARM and Trigger Frame buttons but everything else will be set up for you, making the process easier.
    - Pins for Sop0 and 1 are covered using the black covers and sop2 is exposed.

    Are you resetting the ICBoost after this by pressing the NRST button?

    COM PORT issue:

    Can you provide an image of your device manager with all the ports listed?  I just want to make sure it is recognizing the ports for both the DCA and the ISK+ICBoost.  Nothing will show on a terminal looking into the port at the baud rate you have selected.  It must be 115200 for the user(input) port and 921600 for the data(output) port.

    Finally, I just wanted to follow up and see if you were able to successfully connect the DCA when using the ISK in stand alone rather than with the ICBoost.  The latest version of the ISK, rev D, which is what you have, does not require the use of the ICBoost.

    Sincerely,

    Santosh

  • Hi Santosh,
    For some reason not able to reply to your last message:

    "After this, you will have to manually hit the DCA ARM and Trigger Frame buttons but everything else will be set up for you, making the process easier."
    - Understod! will try as soon as COM port issue is reslolved

    "Are you resetting the ICBoost after this by pressing the NRST button?"
    - Always reset it. I put on the jumpers when the system is powered off.Then flip the switches, power on. Press RST button before doing anything else

    " which is what you have, does not require the use of the ICBoost":
    -I can try this but we have mounted the system with thebooster board and have difficulty every time to remove and remount. Can you please let me know for sure this might work? Should I follow the same steps (only difference is directly connect the radar to DCA board and follow steps in mmwave studio.)..and also flip the DCIN switch before connecting. If the process is same as with booster what difference do you think this is going to make?

    Regards,

    Athma 



  • Hello.

    Can you please let me know for sure this might work?

    It should work, but the reason I am suggesting this is it is possible that maybe the connection between the ISK and the ICBoost may have an issue.  The COM port list from the device manager will provide information on whether the board has been connected properly, so if you can provide that it would be very helpful.  If we can knock this out first, it may help us decide whether we need to try running in standalone at all.

    Also, when the board was connecting properly, was it when it was mounted to the ICBoost board?  And if so, has anything with the ribbon connector connecting the ICBoost and the DCA changed?

    Sincerely,

    Santosh