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.

AWR6843ISK: script failed by LUA script file for 300MHz sweep signal

Part Number: AWR6843ISK
Other Parts Discussed in Thread: MMWAVEICBOOST, IWR6843ISK

Dear support team,

I would like to measure RF output level with LUA script provided in C:\ti\mmwave_industrial_toolbox_4_2_1__win\mmwave_industrial_toolbox_4_2_1\certification\RED supporting documents\Lua Scripts.

AWR68xx_62GHz_CW_profile.lua works fine, but IWR68xx_300Mhz_Sweep_profile.lua is failed. Please check attached error log and advise the countermeasure.

HW : IWR6843ISK + MMWAVEICBOOST

GUI : mmwave studio

Best regards,

Taka

[14:13:02]  LUA Script for System Check
[14:13:03]  [RadarAPI]: ar1.PowerOff()
[14:13:03]  [RadarAPI]: Status: Passed
[14:13:03]  [RadarAPI]: Opening Gpio Control Port()
[14:13:03]  [RadarAPI]: Status: Passed
[14:13:04]  [RadarAPI]: ar1.Disconnect()
[14:13:04]  [RadarAPI]: ar1.Calling_ATE_DisconnectTarget()
[14:13:04]  [RadarAPI]: ar1.Calling_IsConnected()
[14:13:04]  [RadarAPI]: ar1.SaveSettings('C:\Users\0000100139\AppData\Roaming\RSTD\ar1gui.ini')
[14:13:04]  [RadarAPI]: Opening Board Control Port()
[14:13:04]  [RadarAPI]: Status: Passed
[14:13:05]  [RadarAPI]: ar1.FullReset()
[14:13:05]  [RadarAPI]: Status: Passed
[14:13:06]  [RadarAPI]: Closing Board Control Port()
[14:13:06]  [RadarAPI]: Status: Passed
[14:13:06]  [RadarAPI]: Closing Gpio Control Port()
[14:13:06]  [RadarAPI]: Status: Passed
[14:13:06]  [RadarAPI]: ar1.SOPControl(2)
[14:13:06]  [RadarAPI]: Status: Passed
[14:13:06]  SOP Reset Success
[14:13:07]  [RadarAPI]: ar1.Connect(1,921600,1000)
[14:13:09]  [RadarAPI]: Warning: Connected with baudrate 115200
[14:13:10]  [RadarAPI]: Warning: Disconnected existing BaudRate
[14:13:11]  [RadarAPI]: Warning: Trying to connect with baudrate 921600
[14:13:12]  [RadarAPI]: ar1.Calling_IsConnected()
[14:13:14]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
[14:13:14]  [RadarAPI]: Status: Passed
[14:13:14]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
[14:13:14]  [RadarAPI]: Status: Passed
[14:13:14]  Device Status : IWR6843/QM/SOP:2/ES:2
[14:13:14]  RS232 Connect Success
[14:13:15]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
[14:13:15]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
[14:13:22]  [RadarAPI]: ar1.GetBSSFwVersion()
[14:13:22]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
[14:13:22]  BSS FW Download Success
[14:13:23]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin")
[14:13:24]  [RadarAPI]: Downloading MSS RPRC Binary..
[14:13:27]  [RadarAPI]: ar1.GetMSSFwVersion()
[14:13:27]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
[14:13:27]  MSS FW Download Success
[14:13:28]  MSS power up done async event received!
[14:13:28]  [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
[14:13:28]  [RadarAPI]: Status: Passed
[14:13:29]  PowerOn Success
[14:13:30]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
[14:13:30]  [RadarAPI]: Status: Passed
[14:13:30]  [RadarAPI]: ar1.SelectChipVersion("IWR6843")
[14:13:30]  [RadarAPI]: Status: Passed
[14:13:31]  Device Status : IWR6843/QM/SOP:2/ES:2
[14:13:31]  [RadarAPI]: ar1.RfEnable()
[14:13:31]  BSS power up done async event received!
[14:13:31]  [RadarAPI]: Status: Passed
[14:13:31]  [RadarAPI]: ar1.GetMSSFwVersion()
[14:13:31]  [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19))
[14:13:32]  [RadarAPI]: ar1.GetBSSFwVersion()
[14:13:32]  [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20))
[14:13:32]  RfEnable Success
[14:13:33]  [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 1, 1, 1, 1, 1, 2, 2, 0)
[14:13:34]  [RadarAPI]: Status: Passed
[14:13:34]  ChanNAdcConfig Success
[14:13:35]  [RadarAPI]: ar1.RfLdoBypassConfig(0x0)
[14:13:35]  [RadarAPI]: Status: Passed
[14:13:35]  [RadarAPI]: ar1.LPModConfig(0, 0)
[14:13:35]  [RadarAPI]: Status: Passed
[14:13:35]  LowPowerConfig Success
[14:13:36]  [RadarAPI]: ar1.RfInit()
[14:13:36]  RF Init async event received!
[14:13:36]  [RadarAPI]: Time stamp, Temperture: 5201,43; 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; 
[14:13:36]  [RadarAPI]: Status: Passed
[14:13:36]  RfInit Success
[14:13:37]  [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
[14:13:37]  [RadarAPI]: Status: Passed
[14:13:37]  DataPathConfig Success
[14:13:38]  [RadarAPI]: ar1.LvdsClkConfig(1, 0)
[14:13:38]  [RadarAPI]: Status: Passed
[14:13:38]  LvdsClkConfig Success
[14:13:39]  [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
[14:13:39]  [RadarAPI]: Status: Passed
[14:13:39]  LVDSLaneConfig Success
[14:13:40]  [RadarAPI]: ar1.ProfileConfig(0, 61.0999985, 2, 3.4, 18, 0, 0, 0, 0, 0, 0, 16.693, 1, 128, 10000, 0, 131072, 30)
[14:13:41]  [RadarAPI]: Status: Passed
[14:13:41]  Profile Config Success
[14:13:42]  [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 1)
[14:13:42]  [RadarAPI]: Status: Passed
[14:13:42]  Chirp Config Success
[14:13:43]  
[14:13:43]  &&&&&&&&&&&&&&&&&&&&
[14:13:43]  ***Script FAILED!***
[14:13:43]  &&&&&&&&&&&&&&&&&&&&
[14:13:43]  Exception message is:
[14:13:43]  invalid arguments to method call
 

  • Hello

    Can you please help us confirm the version of image loaded on the device.

    Thank you,

    Vaibhav

  • Hello Vaibhav,

    Let me attach the LUA script where you can see the version of images.

    -- Update the MSS and BSS file path in the below variable
    local BSS_Path = ([[C:\ti\mmwave_studio_02_01_01_00\rf_eval_firmware\radarss\xwr68xx_radarss.bin]])
    local MSS_Path = ([[C:\ti\mmwave_studio_02_01_01_00\rf_eval_firmware\masterss\xwr68xx_masterss.bin]])

    Best regards,

    Taka

  • I can't attach file of LUA script. So, let me fill it here.

    ////////////////////////////////////////////////////////////////////////////////////////////////////////

    local COM_Port = 1 -- Change the COM Port number as needed

    TXBO = 0 -- tx back of must be multiples of 3; valid values are 0,3,6,9,12,15,18,21

    -- Update the MSS and BSS file path in the below variable
    local BSS_Path = ([[C:\ti\mmwave_studio_02_01_01_00\rf_eval_firmware\radarss\xwr68xx_radarss.bin]])
    local MSS_Path = ([[C:\ti\mmwave_studio_02_01_01_00\rf_eval_firmware\masterss\xwr68xx_masterss.bin]])

    WriteToLog("LUA Script for System Check\n", "blue")
    RSTD.Sleep(1000)

    if (0 == ar1.SOPControl(2)) then
     WriteToLog("SOP Reset Success\n", "green")
    else
     WriteToLog("SOP Reset Failure\n", "red")
    end

    RSTD.Sleep(1000)

    if (0 == ar1.Connect(COM_Port,921600,1000)) then
     WriteToLog("RS232 Connect Success\n", "green")
    else
     WriteToLog("RS232 Connect Failure\n", "red")
    end

    RSTD.Sleep(1000)

    if (ar1.DownloadBSSFw(BSS_Path)) then
     WriteToLog("BSS FW Download Success\n", "green")
    else
     WriteToLog("BSS FW Download Failure\n", "red")
    end

    RSTD.Sleep(1000)

    if (0 == ar1.DownloadMSSFw(MSS_Path)) then
     WriteToLog("MSS FW Download Success\n", "green")
    else
     WriteToLog("MSS FW Download Failure\n", "red")
    end
      
    RSTD.Sleep(1000)

    if (0 == ar1.PowerOn(1, 1000, 0, 0)) then
     WriteToLog("PowerOn Success\n", "green")
    else
     WriteToLog("PowerOn Failure\n", "red")
     session:destroy();
    end

    RSTD.Sleep(1000)

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

    RSTD.Sleep(1000)


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

    RSTD.Sleep(1000)

    ar1.RfLdoBypassConfig(0x0)

    if (0 == ar1.LPModConfig(0, 0)) then
     WriteToLog("LowPowerConfig Success\n", "green")
    else
     WriteToLog("LowPowerConfig Failure\n", "red")
    end

    RSTD.Sleep(1000)

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

    RSTD.Sleep(1000)

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

    RSTD.Sleep(1000)

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

    RSTD.Sleep(1000)

    if (0 == ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)) then
     WriteToLog("LVDSLaneConfig Success\n", "green")
    else
     WriteToLog("LVDSLaneConfig Failure\n", "red")
    end
    RSTD.Sleep(1000)

    if (0 == ar1.ProfileConfig(0, 61.1, 2, 3.4, 18, TXBO, TXBO, TXBO, 0, 0, 0, 16.693, 1, 128, 10000, 0, 131072, 30)) then
     WriteToLog("Profile Config Success\n", "green")
    else
     WriteToLog("Profile Config  Failure\n", "red")
    end


    RSTD.Sleep(1000)
    if (0 == ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 1, 1)) then
     WriteToLog("Chirp Config Success\n", "green")
    else
     WriteToLog("Chirp Config  Failure\n", "red")
    end

    RSTD.Sleep(1000)
    if (0 == ar1.FrameConfig(0, 0, 0, 128, 16 , 0, 1)) then
     WriteToLog("Frame Config Success\n", "green")
    else
     WriteToLog("Frame Config  Failure\n", "red")
    end

    RSTD.Sleep(1000)

    if (0 == ar1.StartFrame()) then
     WriteToLog("Frame Start Success\n", "green")
    else
     WriteToLog("Frame Start Failed\n", "red")
    end


    -- End of Script

  • HI,  Charles:

    It seems that the frameCfg command does not have enough parameter:

     ar1.FrameConfig(0, 0, 0, 128, 16 , 0, 1)

    should be changed to:

     ar1.FrameConfig(0, 0, 0, 128, 16, 0 , 0, 1)

    It also looks strange that we set unlimited number of frames for frameConfig.  Are you meant to be that way?

    Best,

    Zigang  

  • Hello Zigang,

    Thank you for your message. I will check your advice for at1.FrameCofig.

    Regarding number of frames, I don't modify any value in the ar1.FrameConfig.

    Please kindly advise proper value so that I can test with same setting as your certification test.

    Best regards,

    Taka

  • Hi, Taka:

    Please try with the value below, and let us know your update.

     ar1.FrameConfig(0, 0, 0, 128, 16, 0 , 0, 1)

    Best,

    Zigang

  • Hello Zigang,

    The modified command is OK for our test. If you don't have any further advice, I can close this thread.

    Best regards,

    Taka

  • I am glad that it works.  You can close the thread.

    Best,

    Zigang