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.

TMS320F28388D: using an external editor

Part Number: TMS320F28388D

(I tried to ask this in the CCS forum, but the forum selection would not allow me.)

I hate the default editor - I want to to use vim.

I bound vim to *.c and *.h - changes to the file via vim show up ccs and compile.

BUT - when I try to run it, it pops up vim windows, which complain because the vim editor session has a *.swp file open.

How can I associate the default text editor for the runtime, but keep vim as the code editor.

I have searched for the answer. The answers range from not useful to what I have done.

This is getting silly at best. Painful at worst.

  • Bandit,

    Our CCS expert is out today but will be back tomorrow and can take a look.

    Regards,

    John

  • How can I associate the default text editor for the runtime, but keep vim as the code editor.

    Add vim to the list of associated editors but do NOT set it as the default. Then when opening a C file, right-click on the file in the Project Explorer view and select: 'Open With -> [editor]'. This will set it so that the editor specified will be used to open that C file when double-clicking on it. Unfortunately this setting will only apply to that particular C file and you'll need to repeat for the others. But this will prevent CCS rom using the external editor during debug.

    Thanks

    ki

  • " Then when opening a C file, right-click on the file in the Project Explorer view and select: 'Open With -> [editor]"

    This is meaningless because the file I want to edit with vim DOES NOT APPEAR in the list of files in the "Project Explorer" window. I can see the file in another window (with other files), but a right click on those just want to close the file.

    I can choose a file in the list. right-click, and see the 'Open With" with the list of editor choices.

    HOW CAN I ADD FILES TO THE PROJECT EXPLORER????????

    [deleted].

  • Project Explorer shows files that are added to projects.  I would expect all of your .c files to be visible in the project explorer.  Header files on the other hand are often not explicitly added to the project and instead referenced via #include and the search path (i.e. the project file itself has no reference to it, only your source code mentions the filename).  I am assuming that the file that you want to edit in this case that is not listed is a header file.

    For those files really the only way they are shown in the Project Explorer is under the "includes" folder.  This folder shows all the folders added to your search path.  You can then expand them and see the contents.  That is not always practical though as it will show all header files in those folders.

    If you want to have the header files show up in the project one thing you can do is add them.  Just drag them into the project from your file browser.  However, make sure to select the option to "link" the files.  This way it just adds a reference to the file to the project and leaves the file in its original location.  Depending on how many header files you have this could be an option.  

    Here I added splash_image.h to my project.  There is a small arrow on the icon indicating that it is linked.  I just added it to the root of my project but you could create a folder and add it to that.

    Regards,

    John

  • I figured it out after I posted the question. 

    I'm finding the IDE to be very usr-hostile for an old fart who does command-line build projects.

    One of my problems with TI is the vast quantity of documentation.  Finding what one needs is non-trivial.

    Can you give me a link to a reasonable "getting started" and "useful tricks and shortcuts" ? Thanks!

    .... bandit

  • Besides the various CCS content in Resource Explorer, I would also take a peek at the various workshops in the C2000 Academy: https://dev.ti.com/tirex/explore/node?node=AOXFCHdD4iiPtd8.R6R0Tw__jEBbtmC__LATEST

    Unfortunately there is not one specific for the F28388D. But you can look at the content for some of the other ones. The workshop content has good overview material for using CCS with C28x. For example, Chapter 2 of the workshop below has a good introduction to the tools environment that is mostly device agnostic.

    https://dev.ti.com/tirex/explore/content/c2000_academy_0_09_00_00_eng__all/c2000Academy/archieves/F28004x/resources/F28004x_Microcontroller_1-0.pdf

    Thanks

    ki

  • Here is the link to the C2000 Academy workshops:

    https://dev.ti.com/tirex/explore/node?node=AOXFCHdD4iiPtd8.R6R0Tw__jEBbtmC__LATEST

    And a link to the CCS YouTube channel which has various short training material on CCS:

    https://www.youtube.com/user/CodeComposerStudio

    Thanks

    ki