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.

IWR6843ISK-ODS: Progress halted when loading firmware for second time

Part Number: IWR6843ISK-ODS
Other Parts Discussed in Thread: IWR6843ISK

One issue I have noted on several occasions is that when using a Lua script in mmWave Studio to load the firmware, if the script is run a second time a progress bar will appear when downloading the MSS firmware and never progress. Obviously there is no specific need to load the firmware twice but it is convenient to use a single script to run the radar and edit parameters before running it a second time. 

As demonstrated in the code below, it occurs when loading the MSS firmware for a second time only after having loaded both the BSS and MSS first. It appears to be due to a BSS firmware mismatch error that occurs when the BSS is loaded for a second time after both the BSS and MSS have already been loaded once.

Note that I have also tried this on mmWave studio 2.1.1.0 with the same result too.

Why does this occur and how can it be prevented?

-- Define file paths
bss_path = 'C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin'
mss_path = 'C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin'

-- Load BSS firmware an arbitrary number of times
ar1.DownloadBSSFw(bss_path)
ar1.DownloadBSSFw(bss_path)
ar1.DownloadBSSFw(bss_path)

-- Each attempt returns something like this:
-- [17:38:18]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
-- [17:38:18]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
-- [17:38:25]  [RadarAPI]: ar1.GetBSSFwVersion()
-- [17:38:25]  [RadarAPI]: BSSFwVersion:(06.00.05.00 (01/08/18))

-- Load MSS firmware an arbitrary number of times
ar1.DownloadMSSFw(mss_path)
ar1.DownloadMSSFw(mss_path)
ar1.DownloadMSSFw(mss_path)

-- Each attempt returns something like this:
-- [17:38:39]  [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin")
-- [17:38:40]  [RadarAPI]: Downloading MSS RPRC Binary..

-- Load BSS firmware once more
ar1.DownloadBSSFw(bss_path)

-- This attempt fails and returns an invalid version number
-- [17:38:46]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
-- [17:38:51]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
-- [17:38:57]  [RadarAPI]: ar1.GetBSSFwVersion()
-- [17:38:57]  [RadarAPI]: BSSFwVersion:(00.00.00.00 (00/00/00))
-- [17:38:57]  [RadarAPI]: Warning: BSS firmware version Mismatch!

-- Try loading BSS firmware again
ar1.DownloadBSSFw(bss_path)

-- The same output is produced though without the warning
-- [17:38:57]  [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_00_00_02\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin")
-- [17:39:02]  [RadarAPI]: Downloading BSS ROM RPRC Binary..
-- [17:39:08]  [RadarAPI]: ar1.GetBSSFwVersion()
-- [17:39:08]  [RadarAPI]: BSSFwVersion:(00.00.00.00 (00/00/00))

-- Try loading MSS firmware once more
ar1.DownloadMSSFw(mss_path)

-- The downloading progress bar appears but never moves from 0%.