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.

IWR1443: uniflash

Part Number: IWR1443
Other Parts Discussed in Thread: UNIFLASH, , AWR1443

Hi,

There are times when I have a very challenging time to flash binaries to the part.  I get an error message in the console window that the com port does not exist, is busy or does not have the correct permissions.  The com port exists and is reported in the console window.   It should not be busy since uniflash is the only activity using it and the permissions are correct.  I fiddle with it many time to get the binaries loaded involving involving power cycling and pressing the load button.  It is a major time waste.

I have tried to use the command line approach to avoid using the uniflash gui but I can not get it to work.  Can you please suggest what I am doing wrong.  I have reviewed past posting without any luck.

/home/akd/ti/uniflash_4.3.1/dslite.sh --mode serial -e -c /home/akd/Desktop/adi/mmwave/IWR1443.ccxml -s COMPort=/dev/ttyACM0  -f /home/akd/Desktop/adi/mmwave/xwr12xx_xwr14xx_radarss.bin,1 /home/akd/Desktop/adi/mmwave/xwr14xx_mmw_demo_mss.bin,2

or

/home/akd/ti/uniflash_4.3.1/dslite.sh --mode serial -e -c /home/akd/Desktop/adi/mmwave/IWR1443.ccxml  -l /home/akd/Desktop/adi/mmwave/fuse/generated.ufsettings -f /home/akd/Desktop/adi/mmwave/xwr12xx_xwr14xx_radarss.bin,1 /home/akd/Desktop/adi/mmwave/xwr14xx_mmw_demo_mss.bin,2

where generated.ufsettings contains

{"Serial Connection/Cortex_R4_0":{"COMPort":"/dev/ttyACM0"}}

Please advise me what I am doing wrong.

Thanks.

Al

  • Al,

    Which version of the OS are you using? Is this a VM? Do you experience this on another machine?

    Are you using a launchpad or a custom board, do you experience this on another board?

    Victor

  • Hi Victor,

    My primary os is fedora 27.  I have used a windows 7 os too and had some issues as well.  I prefer to do my development on linux though.  I use the D3 Engineering board with a iwr1443 part.  I seem to have no problem running the debugger (CCS 7.4) with the part.  Early on, when I used the demo visualizer, I did have some problems connecting but  issuing the configuration a few times created a connection.  

    Al

  • Al,

    Are you using a ftdi UART or a real UART connection? The debugger has nothing to do with serial port so that doesn't matter in this case.

    If you can reproduce the error on windows, could you use a serial monitor to capture the communications between the PC and the device? AccessPort is an easy to use and free tool: 

    Then we need to get some mmWave guys on here to go through your serial port logs and figure out why you can't connect to the device.

    Victor

  • Hi Victor,

    Thank you for your assistance.  I have downloaded the code you referred but I should be to monitor serial traffic with minicom or wireshark in linux too.  The next time it give me fits, I will capture the traffic and forward.  Should I mark the post as resolved and open another post when I send the captured traffic or just leave this one open for awhile until it happens again?

    Al

  • Al, 

    Yes capture on linux with wireshark sounds great. If you have the captured data log of the serial communication, posting on mmwave forum too since ultimately their team implemented the serial communication logic.

    However I don't think they implemented a "clear target serial buffer" mechanics so make sure you power cycle the device before flashing to eliminate that potential issue.

    I do recommend you close this thread and open a new one with a more descriptive title and attach data and description in the opening post. That would help the community better when they are searching for solutions on similar issues. 

    Thanks,

    Victor

  • Hi Victor,

    I examined captured information for what I believe was the traffic between uniflash and the part.  It was not much traffic.  Can you provide me what the initial traffic should be, at least the initial handshaking (if any) and the erase command?

    Also, my initial post inquired about the use dslite.sh.  Can please comment if the information I provided is accurate?  I assume something is not since I could not program the part.

    Thanks.

    Al

  • Al,

    Attached is the uart log for flashing a 124K mms image file into a AR1443EVM-010 board. The dslite goes through the same process as the GUI under the hood so if one work both should work.

    One note though, before every flash operation, make sure you power cycle/reset the board to make sure the bootloader and COM port is set into the correct state.

    Victor

    mmwave_flash_uart_log.txt

    CLI log:

    C:\Users\a0389354\AppData\Local\uniflash\Downloads\uniflash_windows_mmwave>dslit
    e.bat
    Executing default command:
    > dslite --mode serial -c user_files/configs/awr1443.ccxml -l user_files/setting
    s/generated.ufsettings -e -f "user_files/images/ar14xx_mmw_demo_mss.bin,2"

    DSLite version 8.3.0.1467
    Configuring Debugger (may take a few minutes on first launch)...
    Parsing connections/Serial_Connection.xml
    Parsing drivers/serial_csdap.xml
    Parsing drivers/serial_cortexr.xml
    Parsing devices/awr1443.xml
    Parsing routers/cs_dap.xml
    Parsing ..\Modules\cs_dap_NotVisible.xml
    Parsing cpus/cortex_r4.xml
    Parsing .\arm_user_mode_regs.xml
    Parsing .\arm_fiq_mode_regs.xml
    Parsing .\arm_svc_mode_regs.xml
    Parsing .\arm_abt_mode_regs.xml
    Parsing .\arm_irq_mode_regs.xml
    Parsing .\arm_und_mode_regs.xml
    Parsing .\arm_allbanked_mode_regs.xml
    Parsing ..\Modules\cortexR4_NotVisible.xml
    Parsing ..\Modules\cortexR\cortexR_Debug.xml
    Parsing ..\Modules\cortexR\cortexR_System.xml
    Parsing ../Modules/radar/DSS_REG.xml
    Parsing ../Modules/radar/DSS_CBUFF.xml
    Parsing ../Modules/radar/MSS_TOPRCM.xml
    Parsing ../Modules/radar/MSS_RCM.xml
    Parsing ../Modules/radar/MSS_GPCFG_REG.xml
    Parsing ../Modules/radar/MSS_GIO.xml
    Parsing ../Modules/radar/MSS_DMA_REG.xml
    Parsing ../Modules/radar/MSS_VIM.xml
    Parsing ../Modules/radar/MSS_RTIA.xml
    Parsing ../Modules/radar/MSS_RTIB.xml
    Parsing ../Modules/radar/MSS_QSPI.xml
    Parsing ../Modules/radar/MSS_MIBSPIA.xml
    Parsing ../Modules/radar/MSS_MIBSPIB.xml
    Parsing ../Modules/radar/MSS_SCIA.xml
    Parsing ../Modules/radar/MSS_SCIB.xml
    Parsing ../Modules/radar/MSS_DCAN.xml
    Parsing ../Modules/radar/MSS_I2C.xml
    Parsing ../Modules/radar/TPTC.xml
    Parsing ../Modules/radar/TPCC.xml
    Parsing ../Modules/radar/xwr14xx/MSS_MCRC.xml
    Parsing ../Modules/radar/MSS_DCCA.xml
    Parsing ../Modules/radar/MSS_DCCB.xml
    Parsing ../Modules/radar/MSS_ESM.xml
    Parsing ../Modules/radar/MAILBOX.xml
    Initializing Register Database...
    Parsing C:\Users\a0389354\AppData\Local\TEXASI~1\CCS\DOWNLO~1\13\0\27876
    60277.cache
    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_R4_0
    Mapping registers: Cortex_R4_0 - Core Registers
    Mapping registers: Cortex_R4_0 - USER_Registers
    Mapping registers: Cortex_R4_0 - FIQ_Registers
    Mapping registers: Cortex_R4_0 - Supervisor_Registers
    Mapping registers: Cortex_R4_0 - Abort_Registers
    Mapping registers: Cortex_R4_0 - IRQ_Registers
    Mapping registers: Cortex_R4_0 - Undefined_Registers
    Mapping registers: Cortex_R4_0 - All_Banked_Registers
    Mapping registers: Cortex_R4_0 - Debug_Registers
    Mapping registers: Cortex_R4_0 - System_Registers
    Mapping registers: Cortex_R4_0 - DSS_REG
    Mapping registers: Cortex_R4_0 - DSS_CBUFF
    Mapping registers: Cortex_R4_0 - TOPRCM
    Mapping registers: Cortex_R4_0 - RCM
    Mapping registers: Cortex_R4_0 - GPCFG_REG
    Mapping registers: Cortex_R4_0 - GIO
    Mapping registers: Cortex_R4_0 - DMA
    Mapping registers: Cortex_R4_0 - VIM
    Mapping registers: Cortex_R4_0 - RTIA
    Mapping registers: Cortex_R4_0 - RTIB
    Mapping registers: Cortex_R4_0 - QSPI
    Mapping registers: Cortex_R4_0 - MIBSPIA
    Mapping registers: Cortex_R4_0 - MIBSPIB
    Mapping registers: Cortex_R4_0 - SCIA
    Mapping registers: Cortex_R4_0 - SCIB
    Mapping registers: Cortex_R4_0 - CAN
    Mapping registers: Cortex_R4_0 - I2C
    Mapping registers: Cortex_R4_0 - TPTC0
    Mapping registers: Cortex_R4_0 - TPTC1
    Mapping registers: Cortex_R4_0 - TPCC
    Mapping registers: Cortex_R4_0 - CRC
    Mapping registers: Cortex_R4_0 - DCCA
    Mapping registers: Cortex_R4_0 - DCCB
    Mapping registers: Cortex_R4_0 - ESM
    Mapping registers: Cortex_R4_0 - MAILBOX
    Mapping registers: Cortex_R4_0 - Hidden
    Building search data: Cortex_R4_0
    Applying virtual groups: Cortex_R4_0 - PARAMSET
    Applying virtual groups: Cortex_R4_0 - DSS_REG
    Applying virtual groups: Cortex_R4_0 - DSS_CBUFF
    Applying virtual groups: Cortex_R4_0 - DMA
    Applying virtual groups: Cortex_R4_0 - CAN
    Applying virtual groups: Cortex_R4_0 - TPCC
    Executing Startup Scripts: Cortex_R4_0
    Connecting...
    Loading Images
    Initialization of uniflash object completed
    Initialization complete.: 1%
    info: Cortex_R4_0: Initialization complete.
    info: Cortex_R4_0: Flashing process starting...
    Opening COM port COM111...: 1%
    info: Cortex_R4_0: Connecting to COM Port COM111...
    info: Cortex_R4_0: Reset connection to device
    info: Cortex_R4_0: Set break signal
    Connected to COM port.: 2%
    info: Cortex_R4_0: Connection to COM port succeeded. Flashing can proceed.
    Checking fileType appropriateness for this device...: 4%
    info: Cortex_R4_0: Reading device version info...
    Checking fileType appropriateness for this device...: 5%
    info: Cortex_R4_0: note: CONFIG file is added to list of files for download to t
    he device.
    Checking fileType appropriateness for this device...: 7%
    info: Cortex_R4_0: ** 2 files specified for flashing.
    Checking fileType appropriateness for this device...: 8%
    info: Cortex_R4_0: Checking file user_files/images/ar14xx_mmw_demo_mss.bin for c
    orrect header for AWR1443.
    Format before download started ...: 9%
    info: Cortex_R4_0: AWR1443 device, fileType=MSS_BUILD detected -> OK
    Sending Erase command to device...: 10%
    info: Cortex_R4_0: Checking file C:\Users\a0389354\AppData\Local\uniflash\Downlo
    ads\uniflash_windows_mmwave\ccs_base\mmWave\images\ar1xxx_config.bin for correct
    header for AWR1443.
    info: Cortex_R4_0: AWR1443 device, fileType=CONFIG_INFO detected -> OK
    info: Cortex_R4_0: !! Files are valid for AWR1443.
    info: Cortex_R4_0: Format on download was specified. Formatting SFLASH storage..
    .
    info: Cortex_R4_0: -->Erasing storage [SFLASH]
    info: Cortex_R4_0: -->Sending Erase command to device...
    Sending Erase command to device...: 11%
    info: Cortex_R4_0: -->Erase storage completed successfully!
    Format Complete!: 12%
    info: Cortex_R4_0: Downloading [MSS_BUILD] size [127692]
    Downloading [MSS_BUILD] size [127692]...: 13%
    Downloading [MSS_BUILD] size [127692]...: 14%
    Downloading [MSS_BUILD] size [127692]...: 15%
    Downloading [MSS_BUILD] size [127692]...: 16%
    Downloading [MSS_BUILD] size [127692]...: 17%
    Downloading [MSS_BUILD] size [127692]...: 18%
    Downloading [MSS_BUILD] size [127692]...: 19%
    Downloading [MSS_BUILD] size [127692]...: 20%
    Downloading [MSS_BUILD] size [127692]...: 21%
    Downloading [MSS_BUILD] size [127692]...: 22%
    Downloading [MSS_BUILD] size [127692]...: 23%
    Downloading [MSS_BUILD] size [127692]...: 24%
    Downloading [MSS_BUILD] size [127692]...: 25%
    Downloading [MSS_BUILD] size [127692]...: 26%
    Downloading [MSS_BUILD] size [127692]...: 27%
    Downloading [MSS_BUILD] size [127692]...: 28%
    Downloading [MSS_BUILD] size [127692]...: 29%
    Downloading [MSS_BUILD] size [127692]...: 30%
    Downloading [MSS_BUILD] size [127692]...: 31%
    Downloading [MSS_BUILD] size [127692]...: 32%
    Downloading [MSS_BUILD] size [127692]...: 33%
    Downloading [MSS_BUILD] size [127692]...: 34%
    Downloading [MSS_BUILD] size [127692]...: 35%
    Downloading [MSS_BUILD] size [127692]...: 36%
    Downloading [MSS_BUILD] size [127692]...: 37%
    Downloading [MSS_BUILD] size [127692]...: 38%
    Downloading [MSS_BUILD] size [127692]...: 39%
    Downloading [MSS_BUILD] size [127692]...: 40%
    Downloading [MSS_BUILD] size [127692]...: 41%
    Downloading [MSS_BUILD] size [127692]...: 42%
    Downloading [MSS_BUILD] size [127692]...: 43%
    Downloading [MSS_BUILD] size [127692]...: 44%
    Downloading [MSS_BUILD] size [127692]...: 45%
    Downloading [MSS_BUILD] size [127692]...: 46%
    Downloading [MSS_BUILD] size [127692]...: 47%
    Downloading [MSS_BUILD] size [127692]...: 48%
    Downloading [MSS_BUILD] size [127692]...: 49%
    Downloading [MSS_BUILD] size [127692]...: 50%
    Downloading [MSS_BUILD] size [127692]...: 51%
    Downloading [MSS_BUILD] size [127692]...: 52%
    Downloading [MSS_BUILD] size [127692]...: 53%
    Downloading [MSS_BUILD] size [127692]...: 54%
    Downloading [MSS_BUILD] size [127692]...: 55%
    Downloading [MSS_BUILD] size [127692]...: 56%
    Downloading [MSS_BUILD] size [127692]...: 57%
    Downloading [MSS_BUILD] size [127692]...: 58%
    Downloading [MSS_BUILD] size [127692]...: 59%
    Downloading [MSS_BUILD] size [127692]...: 60%
    Downloading [MSS_BUILD] size [127692]...: 61%
    Downloading [MSS_BUILD] size [127692]...: 62%
    Downloading [MSS_BUILD] size [127692]...: 63%
    Downloading [MSS_BUILD] size [127692]...: 64%
    Downloading [MSS_BUILD] size [127692]...: 65%
    Downloading [MSS_BUILD] size [127692]...: 66%
    Downloading [MSS_BUILD] size [127692]...: 67%
    Downloading [MSS_BUILD] size [127692]...: 68%
    Downloading [MSS_BUILD] size [127692]...: 69%
    Downloading [MSS_BUILD] size [127692]...: 70%
    Downloading [MSS_BUILD] size [127692]...: 71%
    Downloading [MSS_BUILD] size [127692]...: 72%
    Downloading [MSS_BUILD] size [127692]...: 73%
    Downloading [MSS_BUILD] size [127692]...: 74%
    Downloading [MSS_BUILD] size [127692]...: 75%
    Downloading [MSS_BUILD] size [127692]...: 76%
    Downloading [MSS_BUILD] size [127692]...: 77%
    Downloading [MSS_BUILD] size [127692]...: 78%
    Downloading [MSS_BUILD] size [127692]...: 79%
    Downloading [MSS_BUILD] size [127692]...: 80%
    Downloading [MSS_BUILD] size [127692]...: 81%
    Downloading [MSS_BUILD] size [127692]...: 82%
    Downloading [MSS_BUILD] size [127692]...: 83%
    Downloading [MSS_BUILD] size [127692]...: 84%
    Downloading [MSS_BUILD] size [127692]...: 85%
    Downloading [MSS_BUILD] size [127692]...: 86%
    Downloading [MSS_BUILD] size [127692]...: 87%
    Downloading [MSS_BUILD] size [127692]...: 88%
    Downloading [MSS_BUILD] size [127692]...: 89%
    Downloading [MSS_BUILD] size [127692]...: 90%
    Downloading [MSS_BUILD] size [127692]...: 91%
    Downloading [MSS_BUILD] size [127692]...: 92%
    Downloading [MSS_BUILD] size [127692]...: 93%
    Downloading [MSS_BUILD] size [127692]...: 94%
    Downloading [MSS_BUILD] size [127692]...: 95%
    Downloading [MSS_BUILD] size [127692]...: 96%
    Downloading [MSS_BUILD] size [127692]...: 97%
    Downloading [MSS_BUILD] size [127692]...: 98%
    Downloading [CONFIG_INFO] size [164]...: 98%
    info: Cortex_R4_0: SUCCESS!! File type MSS_BUILD downloaded successfully to SFLA
    SH.
    info: Cortex_R4_0: Downloading [CONFIG_INFO] size [164]
    Disconnecting from device on COM port COM111 ...: 98%
    info: Cortex_R4_0: SUCCESS!! File type CONFIG_INFO downloaded successfully to SF
    LASH.
    Instance shutdown procedure activated...: 99%
    info: Cortex_R4_0: Disconnecting from device on COM port COM111...
    Done.: 100%
    info: Cortex_R4_0: Flashing instance clean-up initiated...
    info: Cortex_R4_0: Instance deinitialized!
    Running...
    Success

  • Hi Victor,

    Thanks for the data.

    Al