In progress draft review
C2000Ware from TI
C2000Ware contains the most recent versions of examples, and the demo that comes installed on the Launchpad.
C2000Ware comes with a large collection of examples suitable for use with the F28379D, some require modifications.
Examples using a single CPU can be found here
C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2837xd\examples\cpu1
Examples using both CPUs can be found here
C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2837xd\examples\dual
Very handy empty project, you can copy and paste in CCS8 so you don't need to configure everything before starting.
C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2837xd\examples\cpu1\empty_project\cpu01
The Out of Box Demo that comes pre-installed on the F28379D is available here:
C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f2837xd\examples\cpu1\launchxl_f28379d\cpu01
CCS debugger controls
[debug] opens the debug toolbar CCS8
Full list of the buttons in this toolbar, and what they do below, as the help documents inside CCS8 are incomplete.
Resume button, actually starts the program running on the Launchpad
Suspend button, this pauses the program running on the Launchpad
Terminate button, this stops the program running on the Launchpad
Step Into button, this causes the program to run the next line of code (as denoted by the cursor)
Step Over button, this causes the program to skip next line, then run the line of code below (as denoted by the cursor)
Step Return button, this causes the program to return from it's current function.
Runtime Object View, this ...
Connect Target, this ...
Restore Debug State
Load Program
Enable Silicon Real-time Mode
Enable Polite Real-time Mode, ...
Reset, this resets the Launchpad.
Restart, ...
New Breakpoint, creates a point at which the program will pause, and wait for you to press resume, step or some other button.
Debug
Select CPU to program
Specific to the dual processor TMS320 CPUs, is the need the select which of the two CPUs you wish to program.
Writing code to Flash
The process of programming a microcontroller with CCS is odd to say the least. You first have to run the debugger, in RAM mode.
Once your tested your code by running it on the actual device, it's time to program it into Flash memory so the microcontroller will run on it's own.
Switch to flash mode:
Right Click on the project itself "Example_28379D_LaunchPad [active - CPU1_Ram]" and go into Build Configurations > Set Active choose CPU1_Flash
Now run the debugger again now it's in in flash mode.
The program is now written to the flash.
Press Resume to run the code to verify it works, then press suspend.
Then use a script in Scripts > EMU Boot Mode Select > EMU_BOOT_FLASH
to 'upgrade' it to boot to flash instead of memory. Now press Reset on the debug toolbar, then Resume. It should run the program again.
Now press Terminate to disconnect from the device.
All going well you should be able to unplug the device, plug it back in (for USB power) and have it run the program standalone.
Removing a project from the workspace
If you've imported a project you don't want anymore, the way to remove it is to use the delete option, but untick the box to delete(!) the files.
Random distractions
The process of creating a file ready to write flash involves the creation of a file called
2837x_FLASH_link_cpu1.cmd
which is added to the project, changing to code requires the creation of a new version of this file.
The process for creating a new .cmd file seems to go wrong, a lot. Further experimentation revealed this command file isn't needed at all.