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