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.

AWR1642: Press "Trigger Frame" cannot save radar ADC raw data by Radar Studio and HSDC Pro

Other Parts Discussed in Thread: AWR1642, MMWAVE-DFP

Hello, everyone

I am using the AWR1642+Devpack+TSW1400, I want to capture the raw data using TSW1400, and I followed the video and ppt training.ti.com/mmwave-sensor-raw-data-capture-using-tsw1400-board.

I can not automatically save the raw data into my PC like the tutorial video when I pressed the "Trigger Frame" button. Instead, I have to manually save the raw data in the HSDC Pro v4.90. The operations are as follows: 1) Press the "Read DDR Memory" button; 2) Click "File -> Save Raw ADC Codes as Binary File", then save the raw data.

I found a discussion similar to my issue in the forum, e2e.ti.com/.../654381.
But I did not find a suitable method to solve the issue.

Refer to the discussion, @Raghunandan Kamath raised some possible reasons for this issue, I summarize and organize it as shown below.

1) I am attaching the RadarStudio Output log and highlighted the "TSW setup" and "TSW Arm" log messages, please confirm if you see the same in your output log as well.

Here is my RadarStudio Output log. 

GM: Constructor
GM: Wed Jul 11 21:27:06 2018
RSTD.Transmit("/Settings")
[21:27:07]  
[21:27:07]  ### Running Startup script: "C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\Scripts\Startup.lua" ###
[21:27:07]  RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[21:27:07]  RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[21:27:07]  Scripter ignored: Attempt to UnBuild() again or before Build.
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\Clients\\\\LabClient.dll")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[21:27:07]  RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\RunTime\\SAL.dll")
[21:27:07]  RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[21:27:07]  RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[21:27:07]  RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[21:27:07]  RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[21:27:07]  RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[21:27:07]  RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[21:27:07]  RSTD.Transmit("/")
[21:27:07]  RSTD.SaveSettings(): Settings saved to "C:\Users\yangj\AppData\Roaming\RSTD\config.xml"
[21:27:08]  RSTD.Build()
[21:27:08]  RSTD.SaveSettings(): Settings saved to "C:\Users\yangj\AppData\Roaming\RSTD\config.xml"
[21:27:08]  RSTD.Transmit("/")
[21:27:08]  RSTD.AL_Build()
[21:27:08]  RSTD.AL_LoadXml()
[21:27:08]  RSTD.Transmit("/")
[21:27:08]  RSTD.AL_Init()
[21:27:08]  RSTD.Clients_Build()
[21:27:08]  GM: Init
[21:27:08]  GM: Loaded 'C:\ti\mmwave_dfp_00_09_01_06\rf_eval\radarstudio\Clients\\LabClient.dll'
[21:27:08]  GM: 1 Guest (s) init
[21:27:08]  GM: 1 Module(s) init
[21:27:08]  GM: 2 Tab   (s) init
[21:27:08]  RSTD.Client_LoadXml()
[21:27:08]  [RadarAPI]: Starting Matlab Engine..
[21:27:19]  [RadarAPI]: Matlab Engine Started!
[21:27:40]  [RadarAPI]: ar1.LoadSettings('C:\Users\yangj\AppData\Roaming\RSTD\ar1gui.ini')
[21:27:42]  TESTING = false
[21:27:42]  
[21:27:42]  ***Script completed successfully.***
[21:27:53]  [RadarAPI]: Opening Gpio Control Port()
[21:27:53]  [RadarAPI]: Status: Passed
[21:27:53]  [RadarAPI]: Opening Board Control Port()
[21:27:53]  [RadarAPI]: Status: Passed
[21:27:54]  [RadarAPI]: ar1.FullReset()
[21:27:54]  [RadarAPI]: Status: Passed
[21:27:55]  [RadarAPI]: Closing Board Control Port()
[21:27:55]  [RadarAPI]: Status: Passed
[21:27:55]  [RadarAPI]: Closing Gpio Control Port()
[21:27:55]  [RadarAPI]: Status: Passed
[21:27:55]  [RadarAPI]: ar1.SOPControl(2)
[21:27:55]  [RadarAPI]: Status: Passed
[21:28:06]  [RadarAPI]: ar1.Connect(4,115200,1000)
[21:28:07]  [RadarAPI]: ar1.Calling_IsConnected()
[21:28:08]  [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[21:28:08]  [RadarAPI]: Status: Passed
[21:28:08]  [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[21:28:08]  [RadarAPI]: Status: Passed
[21:28:08]  [RadarAPI]: ar1.SaveSettings('C:\Users\yangj\AppData\Roaming\RSTD\ar1gui.ini')
[21:28:11]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\rf_eval_firmware\\radarss\\xwr16xx_radarss_rprc.bin")
[21:28:12]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
[21:28:52]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\rf_eval_firmware\\masterss\\xwr16xx_masterss_rprc.bin")
[21:28:52]  [RadarAPI]: Downloading MSS RPRC Binary..
[21:29:15]  [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
[21:29:15]  [RadarAPI]: Status: Passed
[21:29:15]  [RadarAPI]: MSS power up done async event received!
[21:29:15]  [RadarAPI]: ar1.SaveSettings('C:\Users\yangj\AppData\Roaming\RSTD\ar1gui.ini')
[21:29:16]  [RadarAPI]: ar1.RfEnable()
[21:29:16]  [RadarAPI]: BSS power up done async event received!
[21:29:16]  [RadarAPI]: Status: Passed
[21:29:32]  [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 2, 0)
[21:29:32]  [RadarAPI]: Status: Passed
[21:29:35]  [RadarAPI]: ar1.LPModConfig(0, 0)
[21:29:35]  [RadarAPI]: Status: Passed
[21:29:36]  [RadarAPI]: ar1.RfInit()
[21:29:36]  [RadarAPI]: RF Init async event received!
[21:29:36]  [RadarAPI]: Status: Passed
[21:29:36]  [RadarAPI]: Time stamp, Temperture: 19952,33; 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; RxIQMM Status, Update: 1, 1; 
[21:29:39]  [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
[21:29:39]  [RadarAPI]: Status: Passed
[21:29:41]  [RadarAPI]: ar1.LvdsClkConfig(1, 1)
[21:29:41]  [RadarAPI]: Status: Passed
[21:29:42]  [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
[21:29:42]  [RadarAPI]: Status: Passed
[21:29:46]  [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 29.982, 0, 256, 10000, 0, 0, 30)
[21:29:46]  [RadarAPI]: Status: Passed
[21:29:52]  [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
[21:29:52]  [RadarAPI]: Status: Passed
[21:29:57]  [RadarAPI]: ar1.DisableTestSource(0)
[21:29:57]  [RadarAPI]: Status: Passed
[21:29:57]  [RadarAPI]: ar1.FrameConfig(0, 0, 10, 128, 40, 0, 1)
[21:29:57]  [RadarAPI]: Status: Passed
[21:30:00]  [RadarAPI]: ar1.SetupTSW1400()
[21:30:07]  [RadarAPI]: TSW1400 set-up complete.
[21:30:20]  [RadarAPI]: ar1.StartTsw1400Arm("C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\PostProc\\adc_data.bin")
[21:30:31]  [RadarAPI]: MatlabProc Status: Error Type: No Data was collected. Please check.
[21:30:31]  [RadarAPI]: TSW1400 capture complete
[21:30:35]  [RadarAPI]: ar1.StartFrame()
[21:30:35]  [RadarAPI]: Status: Passed
[21:30:35]  [RadarAPI]: Frame trigger async event received!
[21:30:36]  [RadarAPI]: Frame start/end async event received!
[21:30:36]  [RadarAPI]: Frame Ended
[21:31:34]  [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_dfp_00_09_01_06\\rf_eval\\radarstudio\\PostProc\\adc_data.bin")
[21:32:07]  RSTD.ShowLogFile()

2) Could you also confirm the number of frames you have set in the frame configuration? The number of frames cannot be infinite in case of using the TSW1400.

Yes, I set "No of Frames" = 10.

3) Do you see the firmware download happening to the TSW1400 when you press "SetUp TSW1400" on the RadarStudio? Please see the below snapshot of the firmware download that happens.

No. Firmware download happens when connecting to the TSW1400 board and choosing"AWR16xx_lvds_4Channel_ddr_4bit_par_centre_16_bit".

4) Once the firmware download is successful, you should see the "Interface Type " and the "Firmware Version " updated as below: Firmware Version = "0.2", Interface Type = ADC_FIRMWARE.

Yes, once the firmware download is successful, my HSDC Pro v4.90 GUI shows Firmware Version = "0.2" and Interface Type = ADC_FIRMWARE.

5) The rating of the power supply you are using for the TSW1400EVM?

No, I set the power supply voltage of the TSW1400 board to 5.0V/4A, but the board cannot download firmware. And When I slightly increased the power supply voltage of the TSW1400 board to 5.4V, the board can download firmware. For more details, please refer to my discussion e2e.ti.com/.../699148

6) Have you performed the below steps mentioned in the "RadarStudio_User's_Guide.pdf" in the MMWAVE-DFP?

Yes, I copied the files according to the C:\ti\mmwave_dfp_<version>\rf_eval\radarstuio\HSDCProFiles\ReadMe.txt

7) I assume you are using all the default setting when trying to collect the data. Let me know if this understanding is right?

Yes, except "No of Frames", everything is using the default setting.

So, could you give me some advice to save data automatically when clicking "Trigger Frame"? Thank you.

Regards,

Jian

  • Jian,

    It looks like you are using an older version of our Device Firmware Package (DFP). Please update to the most recent version. The DFP will contain the proper firmware for the TSW1400.

    www.ti.com/.../MMWAVE-DFP

    Looking through your attached, there is an error when you call the ar1.StartTsw1400Arm() command. If there is an error on this command, then the data will not be captured automatically.

    Regards,
    Kyle