element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs in progress - part 2
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: station240
  • Date Created: 13 Jul 2018 1:57 AM Date Created
  • Views 221 views
  • Likes 2 likes
  • Comments 0 comments
Related
Recommended

in progress - part 2

station240
station240
13 Jul 2018

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

image

[debug] opens the debug toolbar CCS8image

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.
Debugimageimageimageimageimageimageimageimageimageimageimageimageimageimageimageimage

 

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.

image

 

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

image

 

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.imageimage

 

Then use a script in Scripts > EMU Boot Mode Select > EMU_BOOT_FLASH

image

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.imageimage

Now press Terminate to disconnect from the device.image

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.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube