• Resolved

CCS Packed Data Structure Support for MSP430

Hi everyone,

 

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 structures.

 

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.

 

Thanks,

 

Don McFarland

donald.mcfarland@honeywell.com

(920) 342-0683

  • 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,

    -George

     


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    George,

     

    Thank you for your very fast response

     

    Don

  • In reply to George Mock:

    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:

    Paul,

     

    Thank you very much for the very quick response. Im downloading the IAR IDE now.

     

     

    Don

  • In reply to Paul Knueven:

    Any update on schedule for releasing packed data structures?

     

    Thanks, Thom

  • In reply to Pentleman:

    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.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    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.

    RELEASE SCHEDULE

    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.

     

  • Guru 135835 points

    In reply to pat moran:

    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.

    ____________________________________________________________________________

    Search the wikis for common questions: CGTCCSv6
    Track 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.1
    Tools 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?