Flashing generated code with UniFlash

If you want to flash code to a Texas Instruments C2000 or ARM Cortex M3, you can use the Code Composer Studio UniFlash tool. Before you begin, make sure your device is plugged in to your computer and that UniFlash (v3.x, 4.22, or 5.0.0.2289) is installed. If you have not yet installed UniFlash, see the Altair Embed Installation Guide or go to the TI CCS UniFlash web page.We recommend installing UniFlash 5.0.0.2289.

1.    Open the diagram.

2.    Click Tools > Code Gen.

3.    Activate Target FLASH. You can leave the remaining parameters as they are.

4.    Click Compile to create an OUT file that will run from FLASH. The OUT file is stored in the specified result directory.

5.    Click Quit.

6.    Start UniFlash.

7.    Under New Configuration, select your target device and connection.

UniflashNewConfigurationwindow

In the above window, the Texas Instruments F28069M LaunchPad is selected. The corresponding XDS 100v2 USB Debug Probe connection is automatically selected.

8.    Click Start to select and download your OUT file to FLASH. The following dialog box appears:

9.    Under Flash Image(s), click Browse and select the OUT file you created in Step 4.

10.  Under Available Actions(s), click Load Image.

Note: To verify that the OUT file was written to FLASH, click Verify Image.

11.  Unplug your device and then plugged it back in; the code will now run in FLASH.

Note: In order to boot from FLASH, the GPIO lines must be set to a specific pattern. For example, to boot from FLASH on the F28069M, GPIO37 and GPIO34 must be High, and SW1 and SW2 on the LaunchPad must be in the ON position. For more information, refer to the Boot Selection Mode in the Texas Instruments Technical Manual for your device.