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.

CCS/CC3220SF-LAUNCHXL: Cannot figure out how erase flash.

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, UNIFLASH

Tool/software: Code Composer Studio

Hey guys,

I am trying to erase the flash on my CC3220SF Launchpad, but I can't figure out how to. I tried using Code Composer Studio, but everyone said to try using Uniflash instead. When I tried using Uniflash, I couldn't find the Erase button.

This is the help page that Uniflash brought up: https://processors.wiki.ti.com/index.php/UniFlash_v4_Quick_Guide#:~:text=Erase%20the%20device%20and%20other%20settings%20and%20utilities%5Bedit%5D&text=You%20can%20pin%20this%20Erase,end%20of%20search%20filter%20line.

But I have no "Settings & Utilities" option. I don't even have a menu on the left side. I've tried creating a project and checked all of the tabs and couldn't find anything like that or erase. Is the documentation not up to date? Where did the "Settings & Utilities" menu go?

Thanks in advance,

Charles

  • Hi Charles,

    Please see this article.It describes how you should to use Uniflash with CC3220 devices.

    Jan

  • You can also try using the UniFlash CLI:

    https://e2e.ti.com/support/tools/ccs/f/81/t/855218

    Thanks

    ki

  • Hey guys,

    I didn't see anything about erasing flash in the link that Jan sent me, so I tried to use the Uniflash command line method, Ki suggested. Unfortunately, I don't see any command line files in my Uniflash folder. I just downloaded Uniflash 6.1.0 yesterday and I have no command line folder or uniflash batch script in it. Did the name change? Or is there an additional download?

    Thanks!!

    Charles

  • Hi Charles,

    It should be in the root UniFlash directory. Note that the FAQ I referenced mentions a *.sh file, which applies for Linux. On Windows, it would dslite.bat.

    You can browse to the UniFlash root folder from a DOS command window and run the below command:

    Just replace '3220sf.ccxml' with the name of your ccxml file. If your ccxml is not in the same directory as dslite.bat, you will need to specify the full path.

    Thanks

    ki

  • Hey Ki,

    Aha, I did find it there, but it seems to have had an issue running it. Here is my output:

    C:\ti\uniflash_6.1.0>dslite -c 3220sf.ccxml -a Erase
    Executing the following command:
    > "C:\ti\uniflash_6.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash -c 3220sf.ccxml -a Erase

    For more details and examples, please refer to the UniFlash Quick Start guide.

    Failed: Cannot read System Setup data from XML file C:\ti\uniflash_6.1.0\3220sf.ccxml
    Error parsing file:
    Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=C:\ti\uniflash_6.1.0\3220sf.ccxml

    It looks like that cc3220sf.ccxml file doesn't exist in that location, should I move it there? Where would it be in the first place?

    Thanks again!!

    Charles

  • See the last sentence in my previous post:

    Just replace '3220sf.ccxml' with the name of your ccxml file. If your ccxml is not in the same directory as dslite.bat, you will need to specify the full path.

    3220sf.ccxml is the name of the ccxml I created for my cc3220sf launchpad. I manually copied it into the uniflash directory. 

  • Hi Charles,

    Are you trying to erase the internal executable flash (which is typically overwritten by the bootloader), or format the external serial flash where the file system and MCU image is stored?

    To interact with the external serial flash, you must use the ImageCreator tool within UniFlash. The serial flash is formatted before every program, so you can program an empty image with just a service pack: UniFlash ImageCreator basics

    Best regards,

    Sarah

  • Ah sorry I didn't see that.

    I tried running it with my .ccxml file and go the following error:

    C:\ti\uniflash_6.1.0>dslite -c CC3220SF.ccxml -a Erase
    Executing the following command:
    > "C:\ti\uniflash_6.1.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash -c CC3220SF.ccxml -a Erase

    For more details and examples, please refer to the UniFlash Quick Start guide.

    warning: IcePick_C: Warning: A firmware update is required for the XDS110 probe. The current firmware is version 2.3.0.18. The probe must be upgraded to firmware version 3.0.0.13 to be compatible with this software. Click the "Update" button to update the firmware. DO NOT UNPLUG THE DEBUG PROBE DURING THE UPDATE. (Emulation package 9.2.0.00002)
    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    fatal: IcePick_C: Error connecting to the target: (Error -1265 @ 0x0) Device ID is not recognized or is not supported by driver. Confirm device and debug probe configuration is correct, or update device driver. (Emulation package 9.2.0.00002)
    Failed: Operation was aborted

    I think that it looks like it wants me to update the debug probe firmware, which I'm also not sure how to do. Or there could be a different issue I'm not understanding.

    Thanks again,

    Charles

  • Charles Fleck1 said:
    I think that it looks like it wants me to update the debug probe firmware, which I'm also not sure how to do. Or there could be a different issue I'm not understanding.

    I'm not sure you can do this from the CLI. You may need to do it via CCSv10 or UniFlash GUI. This automatically done when the debugger is launched from the GUI interface.

    Also please see Sarah's question and comments above.

  • Hey Ki,

    I tried Sarah's method and it looks like it did work. Unfortunately I'm still unable to program my board, so it may not have been my code that was preventing me from debugging using Code Composer Studio.

    Thanks again,

    Charles