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