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.

IWRL6432BOOST: 按照流程,已经全都执行,但是最后执行LUA文件还是失败

Part Number: IWRL6432BOOST
麻烦请提供具体解决方案或者详细的流程文档!!!
这是执行LUA后的结果
GM: Constructor
GM: Thu Jul 25 15:14:06 2024
RSTD.Transmit("/Settings")
[15:14:06]
[15:14:06] ### Running Startup script: "C:\ti\mmwave_studio_04_01_00_06\mmWaveStudio\Scripts\Startup.lua" ###
[15:14:06] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[15:14:06] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[15:14:06] Scripter ignored: Attempt to UnBuild() again or before Build.
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_04_01_00_06\\mmWaveStudio\\Clients\\\\LabClient.dll")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[15:14:06] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_04_01_00_06\\mmWaveStudio\\RunTime\\SAL.dll")
[15:14:06] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[15:14:06] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[15:14:06] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[15:14:06] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[15:14:06] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[15:14:06] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[15:14:06] RSTD.Transmit("/")
[15:14:06] RSTD.SaveSettings(): Settings saved to "C:\Users\64814\AppData\Roaming\RSTD\config.xml"
[15:14:06] RSTD.Build()
[15:14:06] RSTD.SaveSettings(): Settings saved to "C:\Users\64814\AppData\Roaming\RSTD\config.xml"
[15:14:06] RSTD.Transmit("/")
[15:14:06] RSTD.AL_Build()
[15:14:06] RSTD.AL_LoadXml()
[15:14:06] RSTD.Transmit("/")
[15:14:06] RSTD.AL_Init()
[15:14:06] RSTD.Clients_Build()
[15:14:06] GM: Init
[15:14:06] GM: Loaded 'C:\ti\mmwave_studio_04_01_00_06\mmWaveStudio\Clients\\LabClient.dll'
[15:14:06] GM: 1 Guest (s) init
[15:14:06] GM: 1 Module(s) init
[15:14:06] GM: 2 Tab (s) init
[15:14:06] RSTD.Client_LoadXml()
[15:14:07] xw_status = mws.GuiVersion()
[15:14:07] --GuiVersion = 4.1.0.6
[15:14:07] Matlab Runtime Engine is installed
[15:14:07] [RadarAPI]: Starting Matlab Engine..
[15:14:21] [RadarAPI]: Matlab Engine Started!
[15:14:21] xw_status = mws.RadarlinkVersion()
[15:14:21] --RadarlinkVersion = 1.0.1.3(11/7/22)
[15:14:21] xw_status = mws.StudiolinkVersion()
[15:14:21] --StudiolinkVersion = 1.1.0.2(8/2/23)
[15:14:21] xw_status = mws.GuiVersion()
[15:14:21] --GuiVersion = 4.1.0.6
[15:14:21] s_version = mws.GetPostProcVersion()
[15:14:22] [RadarAPI]: mws.LoadSettings('C:\Users\64814\AppData\Roaming\RSTD\ar1gui.ini')
[15:14:22] xw_status, deviceMapInfo = mws.getFtdiDeviceInfo()
[15:14:22] TESTING = false
[15:14:22] DeviceIndex:0; SerialNumber:FT7DLCCY; Description:AR-DevPack-EVM-012
[15:14:22] --xw_status = 0
[15:14:22] RstdNet: Port 2777: Listening..
[15:14:22] --(getNumDevices): xw_return = 0; numFtdiDevices = 1
[15:14:22]
[15:14:22] ***Script completed successfully.***
[15:21:35] xw_status = mws.rs232Config(0, 7, 1, 0)
[15:21:35] Switching to BaudRate:921600
[15:21:37] xw_status, lot, wafer, devX, devY = mws.decodeDieId(3357625344, 1074349252)
[15:21:37] DeviceType:36893x
[15:21:37] SafetyType:1
[15:21:37] ES_PG_Version1
[15:21:37] SOP_MODE:3
[15:21:37] DieId:28802.1260752896.3357625344.1074349252
[15:21:37] XTAL_Type:1
[15:21:37] --xw_status = 0
[15:21:50] [RadarAPI]: mws.SelectCaptureDevice("DCA1000")
[15:21:50] [RadarAPI]: Status: Passed
[15:22:04] xw_status = mws.captureCardCfgResetFPGA()
[15:22:04] [RadarAPI]: Sending reset_fpga command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04] Reset FPGA command : Success
[15:22:04] xw_status = mws.captureCardEthernetCfg("192.168.33.30", "192.168.33.180", "12.34.56.78.90.12", 4096, 4098, 1)
[15:22:04] [RadarAPI]: Sending eeprom command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04] EEPROM Configuration command : Success
[15:22:04] xw_status = mws.captureCardModeCfg(1,1,1,2, 1, 25)
[15:22:04] [RadarAPI]: Sending fpga command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04] FPGA Configuration command : Success
[15:22:04] [RadarAPI]: Sending record command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04] Configure Record command : Success
[15:22:04] xw_status, s_version, s_dllVersion = mws.getCaptureCardFPGAVersion()
[15:22:04] [RadarAPI]: Sending fpga_version command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04]
[15:22:04] FPGA Version : 2.8 [Record]
[15:22:04]
[15:22:04] [RadarAPI]: Sending dll_version command to DCA1000
[15:22:04] [RadarAPI]:
[15:22:04] DLL Version : 1.0
[15:22:08] xw_status = mws.captureCardCfgResetFPGA()
[15:22:08] [RadarAPI]: Sending reset_fpga command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08] Reset FPGA command : Success
[15:22:08] xw_status = mws.captureCardEthernetCfg("192.168.33.30", "192.168.33.180", "12.34.56.78.90.12", 4096, 4098, 1)
[15:22:08] [RadarAPI]: Sending eeprom command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08] EEPROM Configuration command : Success
[15:22:08] xw_status = mws.captureCardModeCfg(1,1,1,2, 1, 25)
[15:22:08] [RadarAPI]: Sending fpga command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08] FPGA Configuration command : Success
[15:22:08] [RadarAPI]: Sending record command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08] Configure Record command : Success
[15:22:08] xw_status, s_version, s_dllVersion = mws.getCaptureCardFPGAVersion()
[15:22:08] [RadarAPI]: Sending fpga_version command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08]
[15:22:08] FPGA Version : 2.8 [Record]
[15:22:08]
[15:22:08] [RadarAPI]: Sending dll_version command to DCA1000
[15:22:08] [RadarAPI]:
[15:22:08] DLL Version : 1.0
[15:22:14] [RadarAPI]: mws.SelectCaptureDevice("DCA1000")
[15:22:14] [RadarAPI]: Status: Passed
[15:36:04] s_version = mws.GetPostProcVersion()
[15:36:04] mws.ftdiResetAllDevices()
[15:36:04] --xw_status = 0
[15:36:04] xw_status = mws.selectBDType(0, 0, 1, 0)
[15:36:04] --xw_status = 0
[15:36:04] xw_status = mws.selectComIfType(1, 1000, 0, 2, 0)
[15:36:04] --xw_status = 0
[15:36:04] [RadarAPI]: mws.SelectCaptureDevice("DCA1000")
[15:36:04] [RadarAPI]: Status: Passed
[15:36:04] xw_status = mws.captureCardCfgResetFPGA()
[15:36:04] [RadarAPI]: Sending reset_fpga command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04] Reset FPGA command : Success
[15:36:04] --xw_status=0
[15:36:04] xw_status = mws.captureCardEthernetCfg("192.168.33.30", "192.168.33.180", "12.34.56.78.90.12", 4096, 4098, 1)
[15:36:04] [RadarAPI]: Sending eeprom command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04] EEPROM Configuration command : Success
[15:36:04] --xw_status=0
[15:36:04] xw_status = mws.captureCardModeCfg(1,1,1,2, 1, 25)
[15:36:04] [RadarAPI]: Sending fpga command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04] FPGA Configuration command : Success
[15:36:04] [RadarAPI]: Sending record command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04] Configure Record command : Success
[15:36:04] --xw_status=0
[15:36:04] xw_status, s_version, s_dllVersion = mws.getCaptureCardFPGAVersion()
[15:36:04] [RadarAPI]: Sending fpga_version command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04]
[15:36:04] FPGA Version : 2.8 [Record]
[15:36:04]
[15:36:04] [RadarAPI]: Sending dll_version command to DCA1000
[15:36:04] [RadarAPI]:
[15:36:04] DLL Version : 1.0
[15:36:04] --xw_status=0
[15:36:04] xw_status = mws.sopControl(0, 3)
[15:36:04] --xw_status = 0
[15:36:04] xw_status = mws.nReset(0)
[15:36:05] --xw_status = 0
[15:36:05] xw_status = mws.rs232Config(0, 7, 0, 0)
[15:36:06] xw_status, lot, wafer, devX, devY = mws.decodeDieId(3357625344, 1074349252)
[15:36:06] DeviceType:36893x
[15:36:06] SafetyType:1
[15:36:06] ES_PG_Version1
[15:36:06] SOP_MODE:3
[15:36:06] DieId:28802.1260752896.3357625344.1074349252
[15:36:06] XTAL_Type:1
[15:36:06] --xw_status = 0
[15:36:06] xw_status = mws.sopDebugFwPreBootCfg(0, 1, 0, 0)
[15:36:07] --xw_status = 0
[15:36:07] xw_status = mws.fwRprcDownload(0, 2, "C:\\ti\\MMWAVE_L_SDK_05_04_00_01\\firmware\\mmwave_dfp\\rfevalfirmware\\appss\\mmwave_plt_rfeval_rprc.bin")
[15:36:15] --xw_status = 0
[15:36:15] xw_status = mws.sopDebugFwPostBootCfg(0, 0, 0, 0, 0, 0)
[15:36:15] --xw_status = 0
[15:36:15] xw_status = mws.fwRprcDownload(0, 0, "C:\\ti\\MMWAVE_L_SDK_05_04_00_01\\firmware\\mmwave_dfp\\rfsfirmware\\xWRL1432\\mmwave_rfs_rprc.bin")
[15:36:25] --xw_status = 0
[15:36:25] xw_status = mws.fwRprcDownload(0, 1, "C:\\ti\\MMWAVE_L_SDK_05_04_00_01\\firmware\\mmwave_dfp\\rfevalfirmware\\rfsatecal\\xWRL1432\\mmwave_rfs_atecal_rprc.bin")
[15:36:26] --xw_status = 0
[15:36:26] xw_status, t_deviceStatus = mws.devicePowerup(0, 0, 0, 0)
[15:36:28] -----------rfEvalDevAppStsGet-----------
[15:36:28]
[15:36:28] [DFP API]xw_status, response=mws.rfEvalDevAppStsGet(0)
[15:36:28] --[[ Response
[15:36:28] c_GenVerNum = 0
[15:36:28] c_MajorVerNum = 0
[15:36:28] c_MinorVerNum = 0
[15:36:28] c_BuildVerNum = 0
[15:36:28] c_Year = 0
[15:36:28] c_Month = 0
[15:36:28] c_Date = 0
[15:36:28] c_Reserved = 0
[15:36:28] h_FwState = 0
[15:36:28] c_XtalType = 0
[15:36:28] c_DigPllStatus = 0
[15:36:28] c_AppCoreClockType = 0
[15:36:28] c_SafetyType = 0
[15:36:28] h_CoreFreqFcount = 0
[15:36:28] c_PlatformId = 0
[15:36:28] c_RfType = 0
[15:36:28] c_TestTarget = 0
[15:36:28] c_TestStatus = 0
[15:36:28] w_reserved1 = 0
[15:36:28] ]]
[15:36:28] --xw_status: -2007 (RL_SPIBUSY_TIMEOUT)
[15:36:28]
[15:36:28] Device Power Up Failed-2007
[15:36:28] --xw_status = -2007
[15:36:28]
[15:36:28] &&&&&&&&&&&&&&&&&&&&
[15:36:28] ***Script FAILED!***
[15:36:28] &&&&&&&&&&&&&&&&&&&&
[15:36:28] Exception message is:
[15:36:28] ...labExamples\LUA_examples\common_device_setup_77G.lua:70: ERROR: API failed
LUA文件中对应的代码:
-- Powerup device
xw_statust_deviceStatus = mws.devicePowerup(0000)
assert(xw_status == 0"ERROR: API failed")
xw_status=mws.fecDevicePowerOn(0,{h_XtalClkFreq=10240,c_ClkSourceSel=10,c_PowerMode=0,c_ChirpTimerResol=0,c_FecBootCfg=0,h_Reserved2=0,w_Reserved3=0})
assert(xw_status == 0"ERROR: API failed")
  • 这是我的LUA文件内容
    -- Common device setup

    -- Change the directory for the firmware file
    local firmware_directory_base = [[C:\ti\MMWAVE_L_SDK_05_04_00_01\firmware\mmwave_dfp\]]
    local rfeval_firmware = firmware_directory_base .. [[rfevalfirmware\appss\mmwave_plt_rfeval_rprc.bin]]
    local rfs_firmware = firmware_directory_base .. [[rfsfirmware\xWRL6432\mmwave_rfs_rprc.bin]]
    local atecal_firmware = firmware_directory_base .. [[rfevalfirmware\rfsatecal\xWRL6432\mmwave_rfs_atecal_rprc.bin]]
    local rfs_patch_firmware = firmware_directory_base .. [[rfsfirmware\xWRL6432\mmwave_rfs_patch_rprc.bin]]

    -- Check that Matlab Postproc is at least version 5.02
    local postproc_version = tonumber(mws.GetPostProcVersion())
    if (postproc_version < 5.02) then
        error("ERROR: Matlab Postproc must be at least version 5.02")
    end

    -- Reset studio internal variables
    status = mws.ftdiResetAllDevices()

    -- Board config
    local c_boardType = 0  -- 0=EVM, 1=CZ
    xw_status = mws.selectBDType(c_boardType, 0, 1, 0)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.selectComIfType(1, 1000, 0, 2, 0)
    assert(xw_status == 0, "ERROR: API failed")

    -- DCA1000 config
    xw_status = mws.SelectCaptureDevice("DCA1000")
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.captureCardCfgResetFPGA()
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.captureCardEthernetCfg("192.168.33.30", "192.168.33.180", "12.34.56.78.90.12", 4096, 4098, 1)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.captureCardModeCfg(1, 1, 1, 2, 1, 25)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status, s_version, s_dllVersion = mws.getCaptureCardFPGAVersion()
    assert(xw_status == 0, "ERROR: API failed")

    -- SOP config
    xw_status = mws.sopControl(0, 3)
    assert(xw_status == 0, "ERROR: API failed")

    -- Device reset
    xw_status = mws.nReset(0)
    assert(xw_status == 0, "ERROR: API failed")

    -- RS232 connect
    local rs232_com_port = 7
    xw_status = mws.rs232Config(0, rs232_com_port, 0, 0)
    assert(xw_status == 0, "ERROR: API failed")

    -- Load firmware
    xw_status = mws.sopDebugFwPreBootCfg(0, 0, 0, 0)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.fwRprcDownload(0, 2, rfeval_firmware)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.sopDebugFwPostBootCfg(0, 0, 0, 0, 0, 0)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status = mws.fwRprcDownload(0, 1, rfs_patch_firmware)
    assert(xw_status == 0, "ERROR: API failed")

    -- Powerup device
    xw_status, t_deviceStatus = mws.devicePowerup(0, 0, 0, 0)
    assert(xw_status == 0, "ERROR: API failed")
    xw_status=mws.fecDevicePowerOn(0,{h_XtalClkFreq=10240,c_ClkSourceSel=10,c_PowerMode=0,c_ChirpTimerResol=0,c_FecBootCfg=0,h_Reserved2=0,w_Reserved3=0})
    assert(xw_status == 0, "ERROR: API failed")

    -- Special calibration configuration
    xw_status=mws.fecRfsDbgCtrl(0,{w_RfsDbgLogAddress=575029248,w_Reserved0=0,w_Reserved1=0})
    assert(xw_status == 0, "ERROR: API failed")

    -- Setup clocks
    xw_status=mws.fecDevClkctrl(0,{c_DevClkCtrl=10,c_FtClkCtrl=0,c_ApllClkCtrl=170,c_Reserved1=0,w_Reserved2=0})
    assert(xw_status == 0, "ERROR: API failed")
  •  以太网应该是连接成功。但是在连接以太网的时候出现了下面问题,不过我不管点是还是点否,mmwave_studio的SPI都没连接成功。