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.

How to force Grace to regenerate generated code?

Other Parts Discussed in Thread: MSP430F2274

Folks,

Grace is a wonderful tool, but.....  I've run into major problems with it, specifically the generated code.  After lots of confusing debugging sessions, it appears that the main cause is that Grace has "lost sync" with the generated code. (Mangled meta-data?)

If I modify Grace settings through the GUI and then save the .cfg file, the generated code is not updated.  For example, I'm setting up USCI_A0 as a Master, 3-wire, SPI device, but the USCI_A0_init.c generated file still thinks it's set up as a slave device, i.e., contains the following comment line:

     * ~UCMST -- Slave mode

And the properties of the generated file show that it hasn't been regenerated since Sep. 1.

I thought that saving the .cfg file and rebuilding the project should force all the generated code to be regenerated automatically.

Do I need to trash this project and move my source code to a new Grace project?

TIA,

Mike

 

  • Mike,

    I don't think I have ever seen this issue before.  Can you attach your project .cfg file to this thread so that we can give it a try? 

    Also, what version of Grace and CCS are you using?

    Dave

  • And what MSP430 part are you using?

  • Hi, David,

     

    Thanks for following up.  I'm using an MSP430F2274.  Grace version is 1.0.1.83.  CCS version is 4.2.4 (Currently Platinum, but my demo period will time out in a few days, then back to code limited version.)

    I've attached my project's main.cfg file, but it probably won't help you.  Grace seems to be syncing OK now and has updated it.

    One hint though: during my use of Grace (running in a Win XP SP3 VM under VMware Fusion 3.1.3 on Mac OS X 10.7 ("Lion") in a 2.5GB RAM partition, I got a popup from the Java runtime saying "Running low on stack space, update parameter xxxxxxx in file yyyyyy to increase this".  Went away before I could copy it down and make the adjustment (or remember what xxxxx and yyyyyy were.)  Suppose I could RTFM on the Java runtime :-)  Got no further indication of trouble, other than losing sync on main.cfg updates.

    Speaking of "RTFM", I'm submitting some UI suggestions in a separate posting here to reduce confusion in USCI setup (and a bug in a CCS tooltip on MSP430 special registers).

    Thanks again.  Let me know if I can be of any further help on this issue.

    Mike

     

     

    main.cfg

**Attention** This is a public forum