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.

CC3220SF: Flashing custom board CC3220SF using UNIFLASH Cli

Part Number: CC3220SF
Other Parts Discussed in Thread: UNIFLASH

Hello Community,

I am trying to flash CC3220SF on custom board using UNIFLASH Cli as mentioned in Image creater document given below

https://www.ti.com/lit/ug/swru469h/swru469h.pdf?ts=1678708418512&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FCC3120%253Futm_source%253Dgoogle%2526utm_medium%253Dcpc%2526utm_campaign%253Depd-con-null-prodfolderdynamic-cpc-pf-google-wwe_int%2526utm_content%253Dprodfolddynamic%2526ds_k%253DDYNAMIC%2BSEARCH%2BADS%2526DCM%253Dyes%2526gclid%253DCj0KCQjwk7ugBhDIARIsAGuvgPbbx4BwMOyQGoJbOodWC3vAbRyKEr15ZQjzUZqTbMc_9ZwMefjWr_MaAgAWEALw_wcB%2526gclsrc%253Daw.ds

Initially, I am trying to execute this procedure on CC32xx Launchpad,

I am using Command: dslite.bat --mode cc32xx gui_cfg --port COM25 to flash out of the box cc32xx project

After executing the above command, I get the below response

After selecting connect, I get instructions to power off the device

I take out USB that is powering Launchpad, and then press the ENTER, but then I get below error:

If I use the reset button on Launchpad to power off and power on, then this error doesn't come and I could successfully flash the image.

But I don't have a reset button on the custom board, so need to power off and power on using a USB cable only. 

I have seen in another post where they are power resetting using a USB cable and flashing image successfully, as stated below:

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/898571/cc3220moda-questions-about-how-to-program-the-serial-flash-cc3220modasf/3341007?tisearch=e2e-sitesearch&keymatch=power_off_com.py#3341007

I think it's also possible to send reset by power_off_com.py/power_on_com.py scripts, but I am getting a similar error with that as well.

So what is it I am missing here to flash using UNIFLASH Cli?

Thanks and Regards,

Neil

  • Hi Neil,

    When you remove your USB from PC than you remove COM25 port , and from this reason Uniflash cannot communicate via COM port which does not exist.

    Reset via power_on_com.py should work without any issue. I use same way with FDTI USB to UART converter and it works. You should toggle of reset pin inside power_on_com.py  and power_off_com.py you can left blank. Have you check your reset pulse by the oscilloscope or logical analyser?

    Jan

  • As Jan suggested, you need to probe the nReset line just to make sure it is working.

    The python scripts are hooks you can implement based on the emulator you are using.

    these files are used for xds110 which is the emulator on the launchpad but it could be FTDI or any other one.

  • Hello Jan and Shlomi,

    Thank you for your reply. 

    Is this the correct pin to proble the Reset signal ? 

    If yes, this pin remains high at all time.

    I also cross checked this pin by providing reset signal from switch, and it toggles, so i think this is the correct pin.

    The signal remain high all the time, when I use the scripts power_on_com.py  and power_off_com.py.

    Thanks and Regards,

    Neil

  • Hi Neil,

    Yes, it is correct jumper pin of nRST of CC32xx chip at LaunchPad (when you are using CC32xx chip at LaunchPad not CC32xx at your board).

    How do you control this pin (via XDS-110 or by your hardware like USB to UART converter)? If pin is controlled by XDS-110 you need have connected jumper J5 and you should to use xds110reset.exe inside your power_on_com.py.

    Jan

  • Hello Jan,

    I understand this now. I use XDS110. I will use xds110reset.exe inside.

    Thank you for the suggestions.

    Neil

  • Hello Jan,

    Now for custom board, I am trying to program with UNIFLASH CLI without any XDS110 directly with UART, if I am correct  power_on_com.py  and power_off_com.py should work the way they are provided The scripts will reset the COM port which is required during flashing of device.

    Please let me know if this is correct.

    Thanks and Regards,

    Neil

  • Hi Neil,

    If you want to use own USB to UART converter, you need to put code which reset your hardware into file power_on_com.py. Implementation of this code will be up to you.

    Jan