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.

CCS/MSP430G2403: migrating from CCS4 to CCS7

Part Number: MSP430G2403
Other Parts Discussed in Thread: MSP-FET, MSP430G2755

Tool/software: Code Composer Studio

I developed a product using the MSP430G2403 using CCS4 on an XP machine.  I'm trying to move it to CCS7 on a win 10 machine.  CCS4 does not run on win 10.  After importing the project or copying the same files over, when compiling in CCS7, the linker claims the code will not fit in the device.  The same files compile, load, and run using CCS4 but don't fit in the device in CCS7.  What am I doing wrong?  Is there a setting that I'm missing in CCS7?

  • There is not enough information in your post to act on.  You will probably find some helpful information in this general article about the linker diagnostic you see when target memory is exhausted.  

    There is a big gap between CCS4 and CCS7.  I can understand why you would try to import into CCS7.  But I hope you can understand why that is likely to cause more problems than it is worth.  I suggest you start a new project in CCS7.  Select the device you plan to use.  That will give you a recent implementation of the linker command file, debug startup files, and so on, appropriate to that device, and tested with CCS7.  Then copy in the C source files from the old project into the new.  This approach might take a bit longer at first.  But I am confident you will quickly make that time up by having fewer problems overall.

    Thanks and regards,

    -George

  • Please let us know whether you started a new project in CCS7, and how that went.

    Thanks and regards,

    -George

  • In my initial note "After importing the project or copying the same files over", that is what I meant I already did in CCS7.  I tried both ways before I posted.  Kept getting the same error.  I have uninstalled CCS7 and installed CCS8.  Now I get an error stating can't find make file, incorrect path.  I've got to dig into that.  I still have my CCS4 on my old computer, it compiles but  my MSP-FET430UIF does not work with CCS4, it used to.  I know the MSP-FET works because I have very old projects I used with Quadravox and it still works with that.  My old computer with XP is having a lot of other issues which is why I want to switch over before it's too late.

  • I got my project to compile in CCS8 by changing the Microcontroller.  My board has an MSP430G2403 with 8K of memory.  When I change the controller to the MSP430G2755 which has 32K of memory it compiles but the size is about 13K.  Why does the exact same code compile to less than 8K in CCS4 and 13K in CCS8?  What setting am I missing?

  • One possibility ... In that time the built-in type double changed size from 32-bits to 64-bits.  All the 64-bit operations require a lot more code.

    Another possibility ... The RTS library changed in that time.  I wouldn't expect the difference to be this large, but I guess it is possible.

    To get a better sense of the difference, compare the map files from the two builds.  I think that will help you understand it.

    Thanks and regards,

    -George

  • DBlanco said:
    The same files compile, load, and run using CCS4 but don't fit in the device in CCS7.

    CCS 7 installs a later version of the compiler than CCS4, and a change in the compiler may explain the difference in size. E.g. if the program uses floating point.

    Which MSP430 compiler version was used with CCS4?

    CCS allows installation and use of multiple compiler versions, so you should be able to install the same compiler in CCS7 (or CCS8) as used with CCS4.

  • See CCS: Compiler version problem for an explanation of the steps to install a specific older version of a compiler.

  • George Mock said:
    To get a better sense of the difference, compare the map files from the two builds.  I think that will help you understand it.

    Did you do that?  What did you find?

    Thanks and regards,

    -George

  • Since it has been a while, I presume you have resolved the problem.  I'd appreciate hearing how you resolved it.

    Thanks and regards,

    -George