Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to CCS10.1 and C2000Ware3.03 #97

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kentavv
Copy link

@kentavv kentavv commented Oct 13, 2020

Release and Debug configurations tested for ELS code by cloning clean repository, switching to branch, loading up CCS, building, loading, and debugging. Testjigs unchanged; I didn't know how they were used. The local copy of C2000Ware was removed and the currently installed is referenced by links. Built against C2000Ware 3.03 installed into C:\Ti. If a different version is used or the installation location is different, update the two C2000Ware variables in the build settings for the release and debug configurations. Default binary format remains COFF; ELF binaries can be built however, a bug in C2000Ware 3.03 would requires a small change to f28004x_usdelay.asm, requiring a local copy of this file or the original to be modified.

@bobek
Copy link

bobek commented Jun 22, 2021

@kentavv thank you very much for you effort, I am trying to compile ELS with a newer version of the C2kW and studio. Can you please describe how you have handled the "upgrade", is it all manual work? I wonder if so much manual work is going to be needed for every release or if the project structure should be different.

I am new to C2000 development and currently really struggle with getting ELS to even compile... I will probably try Windows VM just for sanity check (I am on Linux).

@kentavv
Copy link
Author

kentavv commented Jun 22, 2021

@bobek The code imported pretty easily into the newer CCS. I then cleaned up compile errors, enabled all compiler warnings, and cleaned up warnings. Then replaced the C2kW files in the repository with links to the installed C2kW. Then the project references the TI installed C2kW files that their installer maintains and reduces potential for license conflicts. Before flashing, you'll need to update the linkage files, which have prefixes like *.cmd. I synced these with TI's latest which seemed to fix memory allocation problems. I don't remember if for the CCS update I needed to change compilation settings for the base code, but did for my Nextion version to enable library features. These are all the details I remember. To learn more, pull the main release, the release my changes are relative to, and my changes. Then using a three-way compare tool such as Beyond Compare. If you do this work, please consider creating a new pull request to save someone else the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants