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 questionThe CCS Youtube Channel has short how-to videosThe Compiler Wiki answers most common questionsTrack an issue with SDOWP. Enter your bug id in the Search box.
In reply to George Mock:
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.
In reply to Paul Knueven:
Thank you very much for the very quick response. Im downloading the IAR IDE now.
Any update on schedule for releasing packed data structures?
In reply to Thom Maughan:
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
In reply to pat moran:
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
In reply to AartiG:
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?
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.