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.

UNIFLASH: "Generate Standalone Command Line Package" produces incomplete installation package

Part Number: UNIFLASH
Other Parts Discussed in Thread: IWRL6432

Steps taken: 

  1. Launch web version of UniFlash: https://dev.ti.com/uniflash
  2. Select IWRL6432,click 'Start'
  3. In 'Program' tab, browse to the local .appimage file
  4. In 'Standalone Command Line' tab, leave all default options selected
    • Device: IWRL6432
    • Connection: Serial Connection
    • Images: (1) <my_file>.appimage
    • Settings: checked
    • Operating System: Windows
    • Package Name: uniflash_windows.zip
  5. Click 'Generate Package'
  6. uniflash_windows.zip is downloaded
  7. Extract uniflash_windows.zip
  8. Open command line, run 'one_time_setup.bat' (which incidentally doesn't contain lines that actually do anything)
  9. Run 'dslite.bat'
  10. Observe error reported below:

C:\Downloads\uniflash_windows>.\dslite.bat
Executing default command:
> dslite --mode serial -c user_files/configs/iwrl6432.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/release.appimage,1"

DSLite version 12.7.0.3313
Configuring Debugger (may take a few minutes on first launch)...
        Parsing connections/Serial_Connection.xml
        Parsing drivers/serial_cortexm.xml
        Parsing drivers/serial_debugssm.xml
        Parsing drivers/serial_csdap.xml
        Parsing devices/iwrl6432.xml
        Parsing routers/debugssm.xml
        Parsing routers/cs_dap.xml
        Parsing ..\Modules\cs_dap_NotVisible.xml
        Parsing ../Modules/AP/CFGAP.xml
        Parsing ../Modules/AP/PWRAP.xml
        Parsing ../Modules/AP/SECAP.xml
        Parsing cpus/cortex_m4.xml
        Parsing ..\Modules\cortexM4_NotVisible.xml
        Parsing ../Modules/radar/xwrl64xx/GPADC_CTRL.xml
        Parsing ../Modules/radar/xwrl64xx/APP_LIN.xml
        Parsing ../Modules/radar/xwrl64xx/APP_UART.xml
        Parsing ../Modules/radar/xwrl64xx/APP_SPI.xml
        Parsing ../Modules/radar/xwrl64xx/APP_CANCFG.xml
        Parsing ../Modules/radar/xwrl64xx/APP_CANECC.xml
        Parsing ../Modules/radar/xwrl64xx/TPTC_A0.xml
        Parsing ../Modules/radar/xwrl64xx/TPTC_A1.xml
        Parsing ../Modules/radar/xwrl64xx/APP_CRC.xml
        Parsing ../Modules/radar/xwrl64xx/HWA_CFG.xml
        Parsing ../Modules/radar/xwrl64xx/TPTC_B0.xml
        Parsing ../Modules/radar/xwrl64xx/TPTC_B1.xml
        Parsing ../Modules/radar/xwrl64xx/TPCC.xml
        Parsing ../Modules/radar/xwrl64xx/APP_RCM.xml
        Parsing ../Modules/radar/xwrl64xx/APP_CTRL.xml
        Parsing ../Modules/radar/xwrl64xx/APP_HWA_ADCBUF_CTRL.xml
        Parsing ../Modules/radar/xwrl64xx/APP_ECC_AGG.xml
        Parsing ../Modules/radar/xwrl64xx/APP_RTI.xml
        Parsing ../Modules/radar/xwrl64xx/APP_WD.xml
        Parsing ../Modules/radar/xwrl64xx/APP_DCC.xml
        Parsing ../Modules/radar/xwrl64xx/APP_ESM.xml
        Parsing ../Modules/radar/xwrl64xx/APP_UART.xml
        Parsing ../Modules/radar/xwrl64xx/APP_SPI.xml
        Parsing ../Modules/radar/xwrl64xx/APP_I2C.xml
        Parsing ../Modules/radar/xwrl64xx/APP_PWM.xml
        Parsing ../Modules/radar/xwrl64xx/TOP_IO_MUX.xml
        Parsing ../Modules/radar/xwrl64xx/APP_PRCM.xml
        Parsing ../Modules/radar/xwrl64xx/TOP_GIO.xml
        Parsing ../Modules/radar/xwrl64xx/TOPSS_CTRL.xml
        Parsing ../Modules/radar/xwrl64xx/PLLDIG_CTRL.xml
        Parsing ../Modules/radar/xwrl64xx/PBIST.xml
        Parsing ../Modules/radar/xwrl64xx/TOP_DEBUGSS.xml
        Parsing ../Modules/radar/xwrl64xx/APP_CFG_QSPI.xml
        Initializing Register Database...
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\CS_DAP_0_regids.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\CS_DAP_PC_0_regids.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\TMS3CXX_regids.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\TMS470REX_regids.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\drivers\TI_reg_ids\TMS470RXX_regids.xml
        Parsing C:\Users\<user>\AppData\Local\TEXASI~1\CCS\DOWNLO~1\0\0\1817287839296259452.cache
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\cs_dap_NotVisible.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\AP\CFGAP.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\AP\PWRAP.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\AP\SECAP.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\cortexM4_NotVisible.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\GPADC_CTRL.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_LIN.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_UART.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_SPI.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_CANCFG.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_CANECC.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TPTC_A0.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TPTC_A1.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_CRC.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\HWA_CFG.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TPTC_B0.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TPCC.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_RCM.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_CTRL.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_HWA_ADCBUF_CTRL.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_ECC_AGG.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_RTI.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_WD.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_DCC.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_ESM.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_I2C.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_PWM.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TOP_IO_MUX.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_PRCM.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TOP_GIO.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TOPSS_CTRL.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\PLLDIG_CTRL.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\PBIST.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\TOP_DEBUGSS.xml
        Parsing C:\Downloads\uniflash_windows\ccs_base\common\targetdb\Modules\radar\xwrl64xx\APP_CFG_QSPI.xml
        Initializing: DEBUGSSM_0
        Mapping registers: DEBUGSSM_0 - Core Registers
        Building search data: DEBUGSSM_0
        Executing Startup Scripts: DEBUGSSM_0
        Initializing: CS_DAP_0
        Mapping registers: CS_DAP_0 - Core Registers
        Mapping registers: CS_DAP_0 - Hidden
        Building search data: CS_DAP_0
        Executing Startup Scripts: CS_DAP_0
        Initializing: Cortex_M4_0
        Mapping registers: Cortex_M4_0 - Core Registers
        Mapping registers: Cortex_M4_0 - GPADC_CTRL
        Mapping registers: Cortex_M4_0 - APP_LIN
        Mapping registers: Cortex_M4_0 - APP_UART_0
        Mapping registers: Cortex_M4_0 - APP_SPI_0
        Mapping registers: Cortex_M4_0 - APP_CANCFG
        Mapping registers: Cortex_M4_0 - APP_CANECC
        Mapping registers: Cortex_M4_0 - TPTC_A0
        Mapping registers: Cortex_M4_0 - TPTC_A1
        Mapping registers: Cortex_M4_0 - APP_CRC
        Mapping registers: Cortex_M4_0 - HWA_CFG
        Mapping registers: Cortex_M4_0 - TPTC_B0
        Mapping registers: Cortex_M4_0 - TPCC_B
        Mapping registers: Cortex_M4_0 - TPCC_A
        Mapping registers: Cortex_M4_0 - APP_RCM
        Mapping registers: Cortex_M4_0 - APP_CTRL
        Mapping registers: Cortex_M4_0 - APP_HWA_ADCBUF_CTRL
        Mapping registers: Cortex_M4_0 - APP_ECC_AGG
        Mapping registers: Cortex_M4_0 - APP_RTI
        Mapping registers: Cortex_M4_0 - APP_WD
        Mapping registers: Cortex_M4_0 - APP_DCC
        Mapping registers: Cortex_M4_0 - APP_ESM
        Mapping registers: Cortex_M4_0 - APP_UART_1
        Mapping registers: Cortex_M4_0 - APP_SPI_1
        Mapping registers: Cortex_M4_0 - APP_I2C
        Mapping registers: Cortex_M4_0 - APP_PWM
        Mapping registers: Cortex_M4_0 - TOP_IO_MUX
        Mapping registers: Cortex_M4_0 - APP_PRCM
        Mapping registers: Cortex_M4_0 - TOP_GIO
        Mapping registers: Cortex_M4_0 - TOPSS_CTRL
        Mapping registers: Cortex_M4_0 - PLLDIG_CTRL
        Mapping registers: Cortex_M4_0 - PBIST
        Mapping registers: Cortex_M4_0 - TOP_DEBUGSS
        Mapping registers: Cortex_M4_0 - APP_CFG_QSPI
        Mapping registers: Cortex_M4_0 - Hidden
        Building search data: Cortex_M4_0
        Applying virtual groups: Cortex_M4_0 - HWA_CFG
        Applying virtual groups: Cortex_M4_0 - TPCC_B
        Applying virtual groups: Cortex_M4_0 - TPCC_A
        Applying virtual groups: Cortex_M4_0 - APP_CTRL
        Applying virtual groups: Cortex_M4_0 - TOP_DEBUGSS
        Executing Startup Scripts: Cortex_M4_0
Connecting...
error: Cortex_M4_0: Error initializing flash programming: Failed to load C:\Downloads\uniflash_windows\ccs_ ase\DebugServer\bin\FlashPython.dll: The specified module could not be found.

  • Hi,

    What are you trying to generate with this? If you want a standalone CLI flashing utility, see the arprog_cmdline.py script in C:\ti\MMWAVE_L_SDK_05_03_00_02\tools\boot

  • Hi Nathan,

    Thanks for the suggestion, I'll take a look at that.

    I'm trying to create a headache-free workflow for developers to use to generate stand-alone flashing utilities which are used by an automated test system.

    Is the 'Standalone Command Line' package generator not supposed to generate a package which will work standalone?

  • Hello,

    I believe we on the Radar team use the tool as Nathan mentioned. Details on its use can be found in C:/ti\MMWAVE_L_SDK_05_03_00_02/docs/api_guide_xwrL64xx/GETTING_STARTED_FLASH.html

    I attempted to do the same thing as you with using Uniflash, but was also unsuccessful, albeit due to a different reason. The only thing that stands out to me about your log is the fact your error says "\uniflash_windows\ccs_ ase\DebugServer\" when it should be "\uniflash_windows\ccs_base\DebugServer\"

    Best Regards,

    Pedrhom

  • Hi Pedrhom,

    Thanks for looking at this.

    I noticed that as well. In addition to the file path not being correct, that file does not exist in the actual `ccs_base\DebugServer` directory.

    My (unfounded) suspicion is that there is a manifest containing a list of paths the generator should include in the package, and that the manifest contains the invalid path (with "ccs_ ase").

  • Hello,

    As we on the Radar team do not use 'Standalone Command Line' package generator, there might be some compatibility issues with it and our mmWave devices. I hope the script pointed out by Nathan can help you reach the solution you're looking for.

    Best Regards,

    Pedrhom

  • Hi Pedrhom,

    Yes, the script Nathan pointed out does work well for my use case.