• 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 » Digital Signal Processors (DSP) » C5000 Ultra Low Power DSP » C5000 Ultra Low Power DSP Forum » How to compile assembly code of TI's C5515 on CCS 4.3.9
Share
C5000 Ultra Low Power DSP
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Top 6 Wiki Links
  • C5000 Main Wiki
  • C5000 Software
  • C5515 Boot-Image Programmer
  • CSL (including CSL 3.00)
  • C5000 Connected Audio Framework
  • Porting C5000 Teaching ROM to C5535 eZdsp
  • Forums

    How to compile assembly code of TI's C5515 on CCS 4.3.9

    This question is not answered
    Am2en Khan
    Posted by Am2en Khan
    on Aug 09 2012 03:06 AM
    Prodigy90 points

    Dear Team,

       Currently I am facing problem with compiling and linking assembly code on CCS 4.3.9, So request you to provide the solution asap.

    Problem: I have implemented and integrated the FIR filter with order 128 in C but it is taking much time for processing, hence i am planning to use assembly.

                      I downloaded the code for TI's Medical Development Kit for C5515 and tried to integrate the filter code with my code but it is giving compilation and linking errors.

                    Following code snippet  and error is given for reference.

                    /*     Initilizing output as zero      */
                            asm("    *AR2 = #0");
                    /* Loop count */
                       asm("    T0 = #161");
                        asm("    AC0 = #0");
                   /* Loop starts */
                      asm("LOOP?    ");
                      asm("    T0 -= #1");
                      asm("    AC0 += ((*AR0-) * (*AR1+))");
                      asm("    if (T0 != #0) goto LOOP?");       
               /*     Loop ends     */
                      asm("    nop");
                      asm("    nop");
                      asm("    (*AR2+) = HI(AC0) ");
                      asm("    *AR2 = AC0 ");


      
    Error Displayed by CCS :
                                  [E9999] Illegal directive or mnemonic.
                                  [E9999] Invalid mnemonic specified.
                                  [E9999] Synatax Error.


      To avoid the problem i also tried the following

     Go to CCS – build options – compiler settings --- Runtime model options --- select assembly source language

      and tried both algebraic & mnemonic.

      But still it is showing errors for other piece of code (which was compiling fine earlier without above settings).

     So I want to know whether the code provided above is correct or not? And if it is correct then how to successfully build the project and execute it?

     




    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Archaeologist
      Posted by Archaeologist
      on Aug 09 2012 10:31 AM
      Mastermind40550 points

      That assembly code is algebraic, so you must set the assembly source language to "algebraic" for that to work.

      When you do so, what are the exact error message you get from the "other piece" of code, and what exactly does this other piece of code look like?  Is it also asm statements?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Am2en Khan
      Posted by Am2en Khan
      on Aug 14 2012 01:31 AM
      Prodigy90 points

      Hi,

       Thanks for your suggestion. And with some additional settings I am able to solve the problem completely with out any compiling and linking errors.

        Yesterday I tried to reply but my reply was not getting accepted by website.

      Regards,

      Ameen

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Am2en Khan
      Posted by Am2en Khan
      on Aug 14 2012 01:33 AM
      Prodigy90 points

      Ya  it is only normal C code with two asm statements for enabling and disabling interrupts, which was showing errors if I change the settings. But now it is solved.

      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