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.

AWR2243: mmWave Studio crashes after PostProc starts

Part Number: AWR2243

Hi,

I have issue with running mmwave_studio_03_00_00_07 on my AWR2243 EVM + DCA1000 card. The software crashes just at the time PostProc starts. 

The issue is seen when using DataCaptureDemo_xWR.lua script and also running manually through tabs in mmWave studio. Both mWave Studio and PostProc crash few second after the PostProc starts.

Can someone please take a look at this?

Thanks,

Daniel

  • Is there an error message?

    Thank you

    Cesar

  • Hi Cesar,

    There is no error on the screen, both mmWave Studio and PostProc crash and close together. Below is the data in the LogFile.txt. Not sure if you can get any related information out of it. 

    Please let me know if any other information is needed.

    09-May-2020 00:23:06: IsFPGA:,0,0,
    09-May-2020 00:23:07: C:\ti\mmwave_studio_03_00_00_07\mmWaveStudio\RunTime,0,
    09-May-2020 00:23:14: API:select_capture_device,DCA1000,0,
    09-May-2020 00:23:51: API:select_chip_version,AR1243,0,
    09-May-2020 00:23:51: API:select_chip_version,AR1243,0,
    09-May-2020 00:25:03: API:select_chip_version,AR1243,0,
    09-May-2020 00:25:55: API:ChannelConfig,3,15,0,
    09-May-2020 00:25:56: API:AdcOutConfig,2,1,0,
    09-May-2020 00:25:56: API:DataFmtConfig,15,2,1,0,0,0,
    09-May-2020 00:26:27: API:LowPowerConfig,0,0,0,
    09-May-2020 00:27:40: API:DataPathConfig,1,1,0,2,0,
    09-May-2020 00:27:41: API:LvdsClkConfig,1,1,0,
    09-May-2020 00:27:41: TSW1400 Sampling rate : 600000000 7500000,0,
    09-May-2020 00:27:41: API:SetHsiClock,9,0,
    09-May-2020 00:27:45: API:LaneConfig,15,0,
    09-May-2020 00:27:45: API:LvdsLaneConfig,0,1,0,
    09-May-2020 00:28:54: API:ProfileConfig,0,1435384036,10000,600,6000,0,0,621,0,256,10000,0,0,94,0,
    09-May-2020 00:30:24: API:ChirpConfig,0,0,0,0,0,0,0,1,0,
    09-May-2020 00:31:50: API:EnableTestSource,0,1,0,
    09-May-2020 00:31:50: API:FrameConfig,0,0,8,128,8000000,0,512,0,
    09-May-2020 00:31:50: 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,
    09-May-2020 00:33:09: API:select_capture_device,DCA1000,0,
    09-May-2020 00:33:53: API:SensorStart,0,
    09-May-2020 00:34:54: API:update_num_adc_files_and_frames,1,8,1,0,

  • This is a screen capture right before crash:

  • Daniel,

    The log file you have provided is not sufficient to debug this issue. I would need an entire log to better diagnose your potential issue.

    Also, it is not clear from your brief log file if you are using the TSW1400 device or the DCA1000 device as there are API calls to both devices.

    Please refer to the DCA1000 Debug Handbook for some more information. See if this can help resolve your issue before posting a response.

    https://e2e.ti.com/support/sensors/f/1023/t/872161

    Regards,

    Kyle

  • Hi Kyle,

    Thanks for your response. I am using DCA1000 and not sure how come TSW is also seen in the logfile.

    Please see below the print from the output tab,, just before the mmWave Studio crashes. Also please note that adc_data.bin is collected and I was able to open in in my own Matlab script, although PostProc is not booting up properly. 

    GM: Constructor
    GM: Wed May 13 22:41:19 2020
    RSTD.Transmit("/Settings")
    [22:41:19]
    [22:41:19] ### Running Startup script: "C:\ti\mmwave_studio_03_00_00_07\mmWaveStudio\Scripts\Startup.lua" ###
    [22:41:19] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
    [22:41:19] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
    [22:41:19] Scripter ignored: Attempt to UnBuild() again or before Build.
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\Clients\\\\LabClient.dll")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
    [22:41:19] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\RunTime\\SAL.dll")
    [22:41:19] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
    [22:41:19] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
    [22:41:19] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
    [22:41:19] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
    [22:41:19] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
    [22:41:19] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
    [22:41:19] RSTD.Transmit("/")
    [22:41:19] RSTD.SaveSettings(): Settings saved to "C:\Users\SONY\AppData\Roaming\RSTD\config.xml"
    [22:41:19] RSTD.Build()
    [22:41:19] RSTD.SaveSettings(): Settings saved to "C:\Users\SONY\AppData\Roaming\RSTD\config.xml"
    [22:41:19] RSTD.Transmit("/")
    [22:41:19] RSTD.AL_Build()
    [22:41:19] RSTD.AL_LoadXml()
    [22:41:19] RSTD.Transmit("/")
    [22:41:19] RSTD.AL_Init()
    [22:41:19] RSTD.Clients_Build()
    [22:41:19] GM: Init
    [22:41:19] GM: Loaded 'C:\ti\mmwave_studio_03_00_00_07\mmWaveStudio\Clients\\LabClient.dll'
    [22:41:19] GM: 1 Guest (s) init
    [22:41:19] GM: 1 Module(s) init
    [22:41:19] GM: 2 Tab (s) init
    [22:41:19] RSTD.Client_LoadXml()
    [22:41:19] [RadarAPI]: ar1.selectRadarMode(0)
    [22:41:20] [RadarAPI]: Status: Passed
    [22:41:20] Matlab Runtime Engine is installed
    [22:41:20] [RadarAPI]: Starting Matlab Engine..
    [22:41:25] [RadarAPI]: Matlab Engine Started!
    [22:41:28] [RadarAPI]: ar1.selectCascadeMode(0)
    [22:41:28] [RadarAPI]: Status: Passed
    [22:41:28] [RadarAPI]: ar1.LoadSettings('C:\Users\SONY\AppData\Roaming\RSTD\ar1gui.ini')
    [22:41:28] TESTING = false
    [22:41:28] RstdNet: Port 2777: Listening..
    [22:41:28]
    [22:41:28] ***Script completed successfully.***
    [22:41:31] [RadarAPI]: Opening Gpio Control Port()
    [22:41:31] [RadarAPI]: Status: Passed
    [22:41:32] [RadarAPI]: Opening Board Control Port()
    [22:41:32] [RadarAPI]: Status: Passed
    [22:41:33] [RadarAPI]: ar1.FullReset()
    [22:41:33] [RadarAPI]: Status: Passed
    [22:41:34] [RadarAPI]: Closing Board Control Port()
    [22:41:34] [RadarAPI]: Status: Passed
    [22:41:34] [RadarAPI]: Closing Gpio Control Port()
    [22:41:34] [RadarAPI]: Status: Passed
    [22:41:34] [RadarAPI]: ar1.SOPControl(2)
    [22:41:34] [RadarAPI]: Status: Passed
    [22:41:36] [RadarAPI]: ar1.Connect(3,921600,1000)
    [22:41:38] [RadarAPI]: Warning: Connected with baudrate 115200
    [22:41:39] [RadarAPI]: Warning: Disconnected existing BaudRate
    [22:41:40] [RadarAPI]: Warning: Trying to connect with baudrate 921600
    [22:41:41] [RadarAPI]: ar1.Calling_IsConnected()
    [22:41:42] [RadarAPI]: ar1.SelectChipVersion("AR1243")
    [22:41:42] [RadarAPI]: Status: Passed
    [22:41:42] [RadarAPI]: ar1.SelectChipVersion("AR1243")
    [22:41:42] [RadarAPI]: Status: Passed
    [22:41:42] [RadarAPI]: ar1.deviceVariantSelection("XWR2243")
    [22:41:42] [RadarAPI]: Status: Passed
    [22:41:42] [RadarAPI]: ar1.frequencyBandSelection("77G")
    [22:41:42] [RadarAPI]: ar1.SelectChipVersion("XWR2243")
    [22:41:42] [RadarAPI]: Status: Passed
    [22:41:42] Device Status : XWR2243/ASIL-B/SOP:2/ES:1
    [22:41:42] [RadarAPI]: ar1.SaveSettings('C:\Users\SONY\AppData\Roaming\RSTD\ar1gui.ini')
    [22:41:48] [RadarAPI]: ar1.ReadRegister(0xffffe214, 0, 31)
    [22:41:48] [RadarAPI]: ar1.ReadRegister(0xffffe210, 0, 31)
    [22:41:48] [RadarAPI]: ar1.ReadRegister(0xffffe218, 0, 31)
    [22:41:48] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\radarss\\xwr22xx_radarss.bin")
    [22:41:49] [RadarAPI]: Downloading BSS ROM RPRC Binary..
    [22:41:55] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:41:55] [RadarAPI]: BSSFwVersion:(02.01.05.16 (09/01/20))
    [22:41:56] BSS FW Download Success
    [22:41:56] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\Scripts\\..\\..\\rf_eval_firmware\\masterss\\xwr22xx_masterss.bin")
    [22:41:56] [RadarAPI]: Downloading MSS RPRC Binary..
    [22:41:59] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:41:59] [RadarAPI]: MSSFwVersion:(02.01.05.10 (23/01/20))
    [22:41:59] MSS FW Download Success
    [22:42:00] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
    [22:42:00] [RadarAPI]: Status: Passed
    [22:42:00] MSS power up done async event received!
    [22:42:00] Power On Success
    [22:42:01] [RadarAPI]: ar1.SelectChipVersion("AR1243")
    [22:42:01] [RadarAPI]: Status: Passed
    [22:42:01] [RadarAPI]: ar1.SelectChipVersion("XWR2243")
    [22:42:01] [RadarAPI]: Status: Passed
    [22:42:01] Device Status : XWR2243/ASIL-B/SOP:2/ES:1
    [22:42:01] [RadarAPI]: ar1.RfEnable()
    [22:42:01] [RadarAPI]: Status: Passed
    [22:42:01] BSS power up done async event received!
    [22:42:01] [RadarAPI]: ar1.GetMSSFwVersion()
    [22:42:01] [RadarAPI]: MSSFwVersion:(02.01.05.10 (23/01/20))
    [22:42:02] [RadarAPI]: ar1.GetBSSFwVersion()
    [22:42:02] [RadarAPI]: BSSFwVersion:(02.01.05.16 (09/01/20))
    [22:42:02] RF Enable Success
    [22:42:02] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 1, 0)
    [22:42:02] [RadarAPI]: Status: Passed
    [22:42:02] ChanNAdcConfig Success
    [22:42:02] [RadarAPI]: ar1.LPModConfig(0, 0)
    [22:42:02] [RadarAPI]: Status: Passed
    [22:42:02] Regualar mode Cfg Success
    [22:42:02] [RadarAPI]: ar1.RfInit()
    [22:42:03] RF Init async event received!
    [22:42:03] [RadarAPI]: Time stamp, Temperture: 1639,34; 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;
    [22:42:03] [RadarAPI]: Status: Passed
    [22:42:03] RfInit Success
    [22:42:04] [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] DataPathConfig Success
    [22:42:04] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] LvdsClkConfig Success
    [22:42:04] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 1, 1, 1, 0, 0)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] LVDSLaneConfig Success
    [22:42:04] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 94)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] ProfileConfig Success
    [22:42:04] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 0)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] ChirpConfig Success
    [22:42:04] Test Source Already Disabled...!!!
    [22:42:04] [RadarAPI]: ar1.DisableTestSource(0)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] [RadarAPI]: ar1.FrameConfig(0, 0, 8, 128, 40, 0, 1)
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] FrameConfig Success
    [22:42:04] [RadarAPI]: ar1.SelectCaptureDevice("DCA1000")
    [22:42:04] [RadarAPI]: Status: Passed
    [22:42:04] SelectCaptureDevice Success
    [22:42:04] [RadarAPI]: ar1.CaptureCardConfig_EthInit("192.168.33.30", "192.168.33.180", "c:22:38:4e:5a:c", 4096, 4098)
    [22:42:05] [RadarAPI]: Sending fpga command to DCA1000
    [22:42:05] [RadarAPI]:
    [22:42:05] FPGA Configuration command : Success
    [22:42:05] [RadarAPI]: Sending fpga_version command to DCA1000
    [22:42:05] [RadarAPI]:
    [22:42:05]
    [22:42:05] FPGA Version : 2.8 [Record]
    [22:42:05]
    [22:42:05] CaptureCardConfig_EthInit Success
    [22:42:05] [RadarAPI]: ar1.CaptureCardConfig_Mode(1, 1, 1, 2, 3, 0)
    [22:42:05] [RadarAPI]: Sending fpga command to DCA1000
    [22:42:05] [RadarAPI]:
    [22:42:05] FPGA Configuration command : Success
    [22:42:05] CaptureCardConfig_Mode Success
    [22:42:05] [RadarAPI]: ar1.CaptureCardConfig_PacketDelay(25)
    [22:42:05] [RadarAPI]: Sending fpga command to DCA1000
    [22:42:05] [RadarAPI]:
    [22:42:05] FPGA Configuration command : Success
    [22:42:05] [RadarAPI]: Sending record command to DCA1000
    [22:42:05] [RadarAPI]:
    [22:42:05] Configure Record command : Success
    [22:42:05] CaptureCardConfig_PacketDelay Success
    [22:42:05] [RadarAPI]: ar1.CaptureCardConfig_StartRecord("C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin", 1)
    [22:42:05] [RadarAPI]: Sending start_record command to DCA1000
    [22:42:05] [RadarAPI]: Status: Passed
    [22:42:06] [RadarAPI]: ar1.StartFrame()
    [22:42:06] [RadarAPI]: Status: Passed
    [22:42:06] Frame start async event received!
    [22:42:07] Frame End async event received!
    [22:42:07] [RadarAPI]: Frame Ended
    [22:42:12] Please wait for a few seconds for matlab post processing .....!!!!
    [22:42:12] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_studio_03_00_00_07\\mmWaveStudio\\Scripts\\..\\PostProc\\adc_data.bin")
    [22:42:12] [RadarAPI]: No of files Captured: 1, Total no of frames for each device : 8
    [22:42:22]
    [22:42:22] ***Script completed successfully.***

  • Daniel,

    There are no error messages in the entirety of your log file that you posted. This makes this very difficult to identify a problem as none of the steps are generating errors.

    I would first make sure that you have MATLAB runtime 8.5.1 (32-bit) installed on your machine. Make sure the Windows PATH variable lists this version first if multiple installations of MATLAB runtime are installed.

    Please also refer to the release notes of mmWave Studio to check if any additional software dependencies are missing.

    Regards,

    Kyle

  • Hi Kyle,

    I can confirm that I have only one installation of Matlab Runtime which is 8.5.1 (32-bit). However, I have two different installations of Matlab itself. Can this cause any conflict?

    Also, please note that I can see the RadarStudio PostProcessing opening up for very short time before it crashes. Is there a way to collect a log with additional details?

    Thanks,

    Daniel

  • Daniel,

    This could potentially be an issue having two different installations of MATLAB. I would double check the Windows PATH variable list and make sure the MATLAB runtime v8.5.1 (32-bit) comes up first.

    Other than the log you provided, there is no additional log files to analyze.

    Regards,

    Kyle

  • Hi Kyle,

    I uninstalled the extra copy of my Matlab. Below is a snapshot of my Windows Env Variables

    Do you see any conflict?

    Thanks,

    Daniel

  • Daniel,

    From your screenshot, the ordering of the MATLAB runtime files looks fine to me. I would not anticipate any issues based on this information.

    I hope you are able to successfully use the Post Processing tool in mmWave Studio now.

    Regards,
    Kyle

  • No Kyle, no success yet :(

  • Hello,

    I have excatly the same problem at my end too. Since there are no error messages reported after the crash, debug is also difficult.

    I am commenting to follow the thread..

    Thanks

    Prasanna

  • Thanks for sharing your experience Prasanna. This issue is kind of frustrating as mmWave GUI closes after every single run, in addition to the Post Processing module which cannot be used.

  • I tried to further dig into the issue. Every time PostProcessing is started, mmWaveStudio crashes without any error message. Each crash generates a Matlab crash dump in c:\Users\<UserName>\AppData\Temp folder. The crash dump is attached herewith.

    I also tried to contact Mathworks, unfortunately they weren't in a position to help since they had no access to the source code(Email correspondence also attached).

    PS: The Graphic drives on my PC is upto date and corresponds to the latest update available from Lenevo.

    matlab_crash_dump.10880-1.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    ------------------------------------------------------------------------
    Access violation detected at Fri Jun 12 14:56:03 2020
    ------------------------------------------------------------------------
    Configuration:
    Crash Decoding : Disabled
    Crash Mode : continue (default)
    Current Graphics Driver: Unknown hardware
    Default Encoding : windows-1252
    Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 4000 Version 10.18.10.5059
    Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA Quadro K2000M Version 25.21.14.1917
    Host Name : nb-prk
    MATLAB Architecture : win32
    MATLAB Root : C:\Program Files (x86)\MATLAB\MATLAB Runtime\v851
    MATLAB Version : 8.5.1.281278 (R2015a) Service Pack 1
    OpenGL : hardware
    Operating System : Microsoft Windows 7 Professional
    Processor ID : x86 Family 6 Model 58 Stepping 9, GenuineIntel
    Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Re Problem when using Matlab Runtime V851(32Bit).txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    Betreff:
    Re: Problem when using Matlab Runtime V851(32Bit) [ ref:_00Di0Ha1u._5003q1KQJOL:ref ]
    Von:
    US MathWorks Support <support@mathworks.com>
    Datum:
    12.06.2020, 22:48
    An:
    Hello Prasanna,
    I am writing in reference to your Technical Support Case #04299243 regarding 'Problem when using Matlab Runtime V851(32Bit)'.
    I understand you are experiencing a crash that returns a crash log generated by a MATLAB routine.
    Unfortunately, the tool described is a third party tool. This is not created by MathWorks, but instead Texas Instruments. For this reason, MathWorks is not in a place to provide technical support. It would be best to reach out to the developer of the application for support.·
    Based on the crash log, the crash could be graphics related. You may try updating your graphics driver, but this is based on limited information. The creator of the application will have the source code and therefore be able to investigate the issue.·
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Thanks Prasanna for the update. Let's see if TI customer service can get anything from the log  you provided.

    -Daniel