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.

MMWAVE-STUDIO: SPI connection failed on mmWave studio

Part Number: MMWAVE-STUDIO
Other Parts Discussed in Thread: AWR1843BOOST, DCA1000EVM

Hi,

I get some SPI connection problems on mmWave studio and the devices that I'm using are  AWR1843Boost Rev. B and DCA1000EVM.

The device status and error messages are shown below:

Thus, I'd like to know that is anything else needed to be set up? 

Thank you very much.

Best Regards,

Jimmy

  • Hi, Jimmy:

    Please send out a picture of your setup when you see this error.

    Best,

    Zigang

  • Hi, Zigang

    My setup is:

    Thank you.

    Best Regards,

    Jimmy

  • Hi, Zigang,

    In the picture above, the error shows up after I click the button---"SPI Connection(5)".

    And I've also checked my switch setting. It's equivalent to SOP jumper [SOP0: ON, SOP1: ON, SOP2: OFF].

    Does anything else have to be done?

    Best Regards,

    Jimmy

  • Hi, Jimmy:

    I have attached my picture for your to check with yours.

    You should see 6 ports in your device manager.  And here also attached the picture of the setup.

    Best,

    Zigang

  • Hi, Zigang,

    Thank you very much.

    I could connect SPI now.

    But when I run DataCaptureDemo_xWR.lua, I get the error message:

    GM: Constructor
    GM: Thu Nov 14 20:56:05 2019
    RSTD.Transmit("/Settings")
    [20:56:05]
    [20:56:05] ### Running Startup script: "C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\Scripts\Startup.lua" ###
    [20:56:05] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [20:56:05] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [20:56:05] Scripter ignored: Attempt to UnBuild() again or before Build.
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [20:56:05] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\RunTime\\SAL.dll")
    [20:56:05] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [20:56:05] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [20:56:05] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [20:56:05] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [20:56:05] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [20:56:05] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [20:56:05] RSTD.Transmit("/")
    [20:56:05] RSTD.SaveSettings(): Settings saved to "C:\Users\718LAB\AppData\Roaming\RSTD\config.xml"
    [20:56:05] RSTD.Build()
    [20:56:05] RSTD.SaveSettings(): Settings saved to "C:\Users\718LAB\AppData\Roaming\RSTD\config.xml"
    [20:56:05] RSTD.Transmit("/")
    [20:56:05] RSTD.AL_Build()
    [20:56:05] RSTD.AL_LoadXml()
    [20:56:05] RSTD.Transmit("/")
    [20:56:05] RSTD.AL_Init()
    [20:56:05] RSTD.Clients_Build()
    [20:56:05] GM: Init
    [20:56:05] GM: Loaded 'C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\Clients\\LabClient.dll'
    [20:56:05] GM: 1 Guest (s) init
    [20:56:05] GM: 1 Module(s) init
    [20:56:05] GM: 2 Tab (s) init
    [20:56:05] RSTD.Client_LoadXml()
    [20:56:05] [RadarAPI]: ar1.selectRadarMode(0)
    [20:56:05] [RadarAPI]: Status: Passed
    [20:56:05] Matlab Runtime Engine is installed
    [20:56:05] [RadarAPI]: Starting Matlab Engine..
    [20:56:08] [RadarAPI]: Matlab Engine Started!
    [20:56:09] [RadarAPI]: ar1.selectCascadeMode(0)
    [20:56:09] [RadarAPI]: Status: Passed
    [20:56:09] [RadarAPI]: ar1.LoadSettings('C:\Users\718LAB\AppData\Roaming\RSTD\ar1gui.ini')
    [20:56:10] TESTING = false
    [20:56:10] RstdNet: Port 2777: Listening..
    [20:56:10]
    [20:56:10] ***Script completed successfully.***
    [20:56:11] [RadarAPI]: ar1.frequencyBandSelection("77G")
    [20:56:12] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [20:56:12] [RadarAPI]: Status: Passed
    [20:56:12] [RadarAPI]: ar1.deviceVariantSelection("XWR1843")
    [20:56:12] [RadarAPI]: Status: Passed
    [20:56:13] [RadarAPI]: Opening Gpio Control Port()
    [20:56:13] [RadarAPI]: Status: Passed
    [20:56:14] [RadarAPI]: Opening Board Control Port()
    [20:56:14] [RadarAPI]: Status: Passed
    [20:56:15] [RadarAPI]: ar1.FullReset()
    [20:56:15] [RadarAPI]: Status: Passed
    [20:56:15] [RadarAPI]: Closing Board Control Port()
    [20:56:15] [RadarAPI]: Status: Passed
    [20:56:15] [RadarAPI]: Closing Gpio Control Port()
    [20:56:15] [RadarAPI]: Status: Passed
    [20:56:15] [RadarAPI]: ar1.SOPControl(2)
    [20:56:15] [RadarAPI]: Status: Passed
    [20:56:16] [RadarAPI]: ar1.Connect(6,921600,1000)
    [20:56:19] [RadarAPI]: Warning: Connected with baudrate 115200
    [20:56:20] [RadarAPI]: Warning: Disconnected existing BaudRate
    [20:56:20] [RadarAPI]: Warning: Trying to connect with baudrate 921600
    [20:56:21] [RadarAPI]: ar1.Calling_IsConnected()
    [20:56:23] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [20:56:23] [RadarAPI]: Status: Passed
    [20:56:23] [RadarAPI]: ar1.SelectChipVersion("XWR1843")
    [20:56:23] [RadarAPI]: Status: Passed
    [20:56:23] Device Status : XWR1843/ASIL-B/SOP:2/ES:2
    [20:56:23] [RadarAPI]: ar1.SaveSettings('C:\Users\718LAB\AppData\Roaming\RSTD\ar1gui.ini')
    [20:56:25] [RadarAPI]: ar1.ReadRegister(0xffffe214, 0, 31)
    [20:56:25] [RadarAPI]: ar1.ReadRegister(0xffffe210, 0, 31)
    [20:56:25] [RadarAPI]: ar1.ReadRegister(0xffffe218, 0, 31)
    [20:56:25] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr18xx_radarss.bin")
    [20:56:26] [RadarAPI]: Downloading BSS Patch RPRC Binary..
    [20:56:27] [RadarAPI]: ar1.GetBSSFwVersion()
    [20:56:27] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [20:56:28] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [20:56:28] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [20:56:28] BSS FW Download Success
    [20:56:28] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr18xx_masterss.bin")
    [20:56:28] [RadarAPI]: Downloading MSS RPRC Binary..
    [20:56:30] [RadarAPI]: ar1.GetMSSFwVersion()
    [20:56:30] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [20:56:30] MSS FW Download Success
    [20:56:31] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [20:56:31] [RadarAPI]: Status: Passed
    [20:56:31] MSS power up done async event received!
    [20:56:31] Power On Success
    [20:56:31] [RadarAPI]: ar1.SelectChipVersion("AR1642")
    [20:56:31] [RadarAPI]: Status: Passed
    [20:56:31] [RadarAPI]: ar1.SelectChipVersion("XWR1843")
    [20:56:31] [RadarAPI]: Status: Passed
    [20:56:31] Device Status : XWR1843/ASIL-B/SOP:2/ES:2
    [20:56:31] [RadarAPI]: ar1.RfEnable()
    [20:56:31] [RadarAPI]: Status: Passed
    [20:56:31] BSS power up done async event received!
    [20:56:32] [RadarAPI]: ar1.GetMSSFwVersion()
    [20:56:32] [RadarAPI]: MSSFwVersion:(01.02.05.02 (16/07/19))
    [20:56:32] [RadarAPI]: ar1.GetBSSFwVersion()
    [20:56:32] [RadarAPI]: BSSFwVersion:(02.00.00.01 (05/10/17))
    [20:56:33] [RadarAPI]: ar1.GetBSSPatchFwVersion()
    [20:56:33] [RadarAPI]: BSSPatchFwVersion:(01.02.05.02 (30/04/19))
    [20:56:33] RF Enable Success
    [20:56:33] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 1, 0)
    [20:56:33] [RadarAPI]: Status: Passed
    [20:56:33] ChanNAdcConfig Success
    [20:56:33] [RadarAPI]: ar1.LPModConfig(0, 0)
    [20:56:33] [RadarAPI]: Status: Passed
    [20:56:33] Regualar mode Cfg Success
    [20:56:33] [RadarAPI]: ar1.RfInit()
    [20:56:34] RF Init async event received!
    [20:56:34] [RadarAPI]: Time stamp, Temperture: 1976,38; 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;
    [20:56:34] [RadarAPI]: Status: Passed
    [20:56:34] RfInit Success
    [20:56:35] [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] DataPathConfig Success
    [20:56:35] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] LvdsClkConfig Success
    [20:56:35] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] LVDSLaneConfig Success
    [20:56:35] [RadarAPI]: 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)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] Test Source Configuration Success
    [20:56:35] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 5000, 0, 0, 30)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] ProfileConfig Success
    [20:56:35] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] ChirpConfig Success
    [20:56:35] [RadarAPI]: ar1.EnableTestSource(1)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] Enabling Test Source Success
    [20:56:35] Test Source Already Enabled...!!!
    [20:56:35] [RadarAPI]: ar1.EnableTestSource(1)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] [RadarAPI]: ar1.FrameConfig(0, 0, 8, 128, 40, 0, 0, 1)
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] FrameConfig Success
    [20:56:35] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [20:56:35] [RadarAPI]: Status: Passed
    [20:56:35] SelectCaptureDevice Success
    [20:56:35] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "c:22:38:4e:5a:c", 4096, 4098)
    [20:56:35] [RadarAPI]: Sending fpga command to DCA1000
    [20:56:46] [RadarAPI]:
    [20:56:46] FPGA Configuration :
    [20:56:46] Timeout Error! System disconnected
    [20:56:46] [RadarAPI]: Sending fpga_version command to DCA1000
    [20:56:56] [RadarAPI]:
    [20:56:56]
    [20:56:56] Unable to read FPGA Version. [error -5]
    [20:56:56]
    [20:56:56] CaptureCardConfig_EthInit Success
    [20:56:56] [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 2, 1, 2, 3, 0)
    [20:56:56] [RadarAPI]: Sending fpga command to DCA1000
    [20:57:06] [RadarAPI]:
    [20:57:06] FPGA Configuration :
    [20:57:06] Timeout Error! System disconnected
    [20:57:06] CaptureCardConfig_Mode Success
    [20:57:06] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [20:57:06] [RadarAPI]: Sending fpga command to DCA1000
    [20:57:16] [RadarAPI]:
    [20:57:16] FPGA Configuration :
    [20:57:16] Timeout Error! System disconnected
    [20:57:16] [RadarAPI]: Sending record command to DCA1000
    [20:57:26] [RadarAPI]:
    [20:57:26] Configure Record :
    [20:57:26] Timeout Error! System disconnected
    [20:57:26] CaptureCardConfig_PacketDelay failure
    [20:57:26] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin", 1)
    [20:57:26] [RadarAPI]: Sending start_record command to DCA1000
    [20:57:26] [RadarAPI]: Status: Passed
    [20:57:27] [RadarAPI]: ar1.StartFrame()
    [20:57:27] [RadarAPI]: Status: Passed
    [20:57:27] Frame start async event received!
    [20:57:28] [RadarAPI]: Frame Ended
    [20:57:28] Frame End async event received!
    [20:57:29] Please wait for a few seconds for matlab post processing .....!!!!
    [20:57:29] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin")
    [20:57:29] [RadarAPI]: No of files Captured: 0, Total no of frames for each device : 8
    [20:57:29] Error : The number of files captured is zero!
    [20:57:39]
    [20:57:39] ***Script completed successfully.***

    Could you guide me to solve the problem?

    Besides, I'm using AWR1843Boost Rev.B.

    Best Regards,

    Jimmy

  • Hi, Jimmy:

    It looks like your PC is not ready for Ethernet data transfer.    Can you check:

    1) Did you connect the ethernet cable on both side?

    2) Did you program the static IP address in the PC local area network property.

    Please go through the document: C:\ti\mmwave_studio_02_01_00_00\docs\DCA1000_Quick_Start_Guide.pdf

    Best,

    Zigang

  • Hi Zigang,

    Thank you for your speedy reply.

    I've solved the problem.

    The ports 4096 and 4098 need to be added to the firewall whitelist.

    Best Regards,

    Jimmy

  • Hi, Jimmy:

    I have the same problem when i want to SPI connection on mmWave studio.

    Sometimes, when i click the SPI connect button, mmWave Studio  also flashes back.

    And how do you slove this problem?

    Best Regards,

    Wei

  • HI, Jimmy:

    If this thread does not solve your problem, please open a new thread regarding your question.

    Best,

    Zigang