• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » CCSv5 INTERNAL ERROR: no match for ASG
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Forums

CCSv5 INTERNAL ERROR: no match for ASG

This question is answered
COLA
Posted by COLA
on May 15 2012 03:11 AM
Prodigy10 points

Hello
I'm using CCSv5.1 with the TI v6.0.2 compiler and I found a bug in the compiler. I managed to isolate the problem and all that is needed to reproduce is to create a "Hello World" project with CCSv5 for TMS320F28027 and write the code below.

#include <stdint.h>
/*
* hello.c
*/
void func(uint64_t arg);
void main(void)
{
func(5);
}
void func(uint64_t arg)
{
int16_t buffer[4];
#if 1
// the following lines causes INTERNAL ERROR: no match for ASG
__byte(buffer,2) = (int)(arg >> 0);
__byte(buffer,3) = (int)(arg >> 8);
__byte(buffer,4) = (int)(arg >> 16);
__byte(buffer,5) = (int)(arg >> 24);
__byte(buffer,6) = (int)(arg >> 32);
#else
// the following works
uint32_t argHi, argLo;
argHi = (uint32_t)(arg >> 32);
argLo = (uint32_t)(arg);
__byte(buffer,2) = (int)(argLo >> 0);
__byte(buffer,3) = (int)(argLo >> 8);
__byte(buffer,4) = (int)(argLo >> 16);
__byte(buffer,5) = (int)(argLo >> 24);
__byte(buffer,6) = (int)(argHi >> 0);
#endif
}
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Wolf
    Posted by Wolf
    on May 15 2012 06:27 AM
    Verified Answer
    Verified by COLA
    Intellectual915 points

    I was able to reproduce this with v6.0.2, but note that the problem does not occur with compiler version 6.0.3 (released 2012-04-19), so you should try updating your tools in CCS.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Archaeologist
    Posted by Archaeologist
    on May 16 2012 12:36 PM
    Mastermind40900 points

    Is this related to SDSCM00043653?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use