TI E2E Community
TI C/C++ Compiler
TI C/C++ Compiler - Forum
CCS Packed Data Structure Support for MSP430
I just inherited some code that we want to run on an MSP430. In
particular, the code is an E!A485 based communications application which
has a large number of data structures which define the packets. As with
all communications protocols, this one does not allow padding in the
data packets. As far as I can tell, Code Composer Studio support for
MSP430 does not include packed data structures, not even the latest
release of CSS seems to have this feature.
The project deadline is 12-17-10, and without packed data structures,
we will have to use a different chip (non-TI) or a different IDE for
the MSP430, if one exists which has support for the packed data
structure. Just so you know, anyone who is concerned about the
readability of a communications based application will not use any of
the TI parts for that purpose which do not support packed data
Anyhow, I guess that Im out of luck as far as CCS is concerned - are
there any other 3rd party development environments out there which would
allow us to use the MSP430 for this communications based project (we
don't have the time to re-write the code to get rid of the data
structures, and even if we did, that would not be an option for us) ?
I made the mistake of assuming that CSS's MSP430 C compiler would
support packed data structures, as I have never seen a compiler before
that did not support them, except for one TI DSP compiler a number of
years back, so a fast response to this question would be greatly
appreciated as I am holding back progress on this project as a result.
The TI MSP430 compiler does not support packed structures. There are plans to support packed structures in a future release. I think the IAR MSP430 compiler supports packed structures, but I'm not sure.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Thank you for your very fast response
TI's MSP compiler v4.0 will support the GNU packed attribute for defining and accessing packed data structures. However, it is currently scheduled for release in mid-2011, so will not meet your deadlines.
The IAR compiler does support packing by means of the pragma PACK.
Thank you very much for the very quick response. Im downloading the IAR IDE now.
Any update on schedule for releasing packed data structures?
The schedule for upcoming compiler releases can be found on this wiki page. I'm pretty sure packed structures are still planned to be in v4.0.0. So that means early September.
Any update on the packed structure support? I have CCS4 and there is no packed structure support for an MSP430.
And what is the compiler release schedule mentioned in the previous entry? Talk about useless information.
Here's some of my useless information.
version 1 - 15mar2012
version 6 - 17mar2011
version A - 01jan2013
MSP430 Code Generation Tools v4.0.0 were released in September and contain support for packed data structures.
That's the good news. The bad news is I personally do not know how you go about downloading it. (I suppose it involves the CCS Update Advisor.) Somebody reading this should be able to tell you where to get it.
The MSP430 code generation tools v4.0.0 can be downloaded via CCS Update manager. Go to menu Help->Software Updates->Find and Install, check the box for "Search for new features to install". Click Next. Then enable Code Generation Tools Updates and when you click Finish, the MSP430 Codegen tools should become visible. You can then select and install it from there.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
This procedure does not work for me, and yes I'm a paid subscriber to CCS for MSP430 (I paid 3 times by mistake so I'm uber paid). I download the latest CCS 4.2.4 update and it comes with:
C:\Documents and Settings\tm>"C:/Program Files/Texas Instruments/ccsv42/ccsv4/tools/compiler/msp430/bin/cl430"MSP430 Evaluation C/C++ Compiler v3.3.1Tools Copyright (c) 2003-2010 Texas Instruments Incorporated
Is there some other trick involved with getting the new compiler?
Also, is there 'long long' 64bit integer support as well?
Yes, 64-bit integer types ("long long" and "unsigned long long") were added in version 4.0.0
I'm having a similar problem. I'm stuck on the MSP compiler version 3.2.1, and the CCS update does not show a later version available. How can I obtain the 4.0.0 CGT for MSP430 ?
I've checked outside of CCS update advisor on the Compiler wiki:
And on the Compiler download site:
I've not seen the mysterious v4 msp430 compiler, though it looks like there is another compiler release v4.0.2 planned in December.
I'd kindly like a copy of the v4 compiler and instructions on installing in a fully licensed CCS please...
I noticed that the Code Generation Tools Updates was missing for all processors when I attempted "Search for new features to install" in CCSv4.
I inspected my licensed CCSv5 install which is working properly to learn the URL of the missing updates. In your licensed CCSv4, ensurehttp://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/codegen/Updates/full/site.xmlis present. If it's missing, add it with "New Remote Site".
Once the URL was fixed, I got options for 3.2.3, 3.3.3, and 4.0.1 for the MSP430 compiler. I'm not sure why CGT was missing in action.
Hope this helps.
Adding http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/codegen/Updates/full/site.xml as a remote site to look for updates did the trick - I can see the msp430 v4.0.1 compiler.
PS, thanks to JohnS as well
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.