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.

GEL Support In CCE 3.2



Hello, all.

I'm curious about the level of support CCE, 3.2 Pro) (not CCS) has for GEL.  It seems it is at least partially supported, as I can type in some GEL commands and get them to work.  OTOH, others, like GEL_OpenWindow seem to work (by giving a return code) yet seem to do nothing.  Moreover, there is very little help in CCE on GEL, at least as far as I can find.  It seems that the few references I can find refer to CCS - used for DSP's, I believe - help.  I have found chapters in older TI docs, like spru296.pdf, but this is nearly ten years old and, as I said, doesn't fully match with what I am seeing in CCE 3.2.

So, is GEL really "there" in CCE 3.2, and if so, is there some good documentation?

All of that said, I am basically looking for the preferred method of scripting within CCE, one that is capable and well documented.  To be honest, I can't make much sense of the Java scripting capability, as I haven't yet found a good (for me) "start here" document.  I would love to have the flexibility to write a script that would read a text-based data file into flash memory.  I've come close with GEL by using GEL_MemorySave() and GEL_MemoryLoad(), though the formats are somewhat inconvenient.

Mike

  • Hello Mike,

    Most non-GUI related GEL command are supported. However commands like GEL_OpenWindow(), being GUI reated, would not work. 

    However the preferred method of scripting with CCE (and CCSv4) is most definately DSS javascript. There is a DSS mediawiki topic with an overview and some getting started information:

    http://tiexpressdsp.com/wiki/index.php?title=Debug_Server_Scripting

    For APIs to read/write text-based data files, the DSS API: memory.loadData(nPage, nAddress, sFilename, nLength); is what you would need. The location of the full API doc is specified in the above mediawiki topic.

    Note that you can run DSS javascripts from the Scripting Console (View->Scripting Console). The Scripting Console can interpret javascript commands and already is attached to a running DSS Scripting Environment. I will add some additional infomration to the DSS mediawiki topic on running DSS javascripts from the Scripting Console shortly and follow up on this forum with a post when I am done.

    Hope this helps!

    Ki

     

     

  • Very helpful indeed.  Thanks, Ki.  Looking forward to the posts.

    Mike

  • Hi Mike,

    As promised, I've posted some content on the Scripting Console:

    http://tiexpressdsp.com/wiki/index.php?title=Scripting_Console

    Hope this helps,

    Ki

     

  • Ki,

    I think it could be helpful, but I am perhaps missing a piece -- perhaps due to my ignorance of Java.  When I open my scripting window in CCE3.2 I see only a few commands when I press Tab (see below).  This is much smaller than the list on the wiki.  Do I need to load a command file to get the additional commands?  If so, what is the syntax?

    Mike

    js:> 

    bp  close  closeAllEditor  cls  exit  help  loadCommandFile  loadDictionaryFile  maximize  print  rab  unloadCommandFile  unloadDictionaryFile

    js:>

     

     

  • Hi Mike,

    I wrote those topics for CCSv4. Looking at CCE, I notice that support from the Scripting Console is much more limited. 

    Would you be interested in trying out CCSv4? It is currently in beta. We have a separate build of v4 just for MSP430.

    Thanks

    ki

  • Ki,

    That would be nice, but I need to stick with CCE.  Hopefully, scripting support will increase in the next version.  Is there any documentation on what actually is supported in CCE?

    Mike

     

  • Mike said:
    That would be nice, but I need to stick with CCE.  Hopefully, scripting support will increase in the next version.  Is there any documentation on what actually is supported in CCE?

    it's worth noting that the upcoming CCS v4 is based on the same Eclipse platform as CCE and uses a lot of the same internal parts like the Code Generation Tools and DSS.  Documentation for CCS v4 is usually applicable to CCE v3.1.   If the documentation that was referenced above doesn't work for MSP430, let us know.

  • Mike - As Adrian mentioned, CCS v4 is based off the same Eclipse platform as CCE 3.1. Also CCS v4 IS the next version of CCE as MSP430 support from now on will be with CCS v4.

    However because CCE is an older product than CCSv4 not all the documentation for v4 might not translate quite well with CCE.

    As for your question on scripting, DSS is supported with CCE but again the version of DSS with CCE is older than what comes with CCSv4. To get started with DSS I'd recommend looking at the quicksort.js example in <Install dir>\DebugServer\scripting\examples. 

    ki

**Attention** This is a public forum