Hello
I am doing MFCC extraction from a speech signal on the TMS320VC5505 eZdsp USB stick, i am using CCSv4, and i have the following error msg: "Linking failed. Check the Console window for details." and in the console window it says: INTERNAL ERROR: Space required for local variables exceeds maximum in _main.
For this i am using rfft given in the Dsplib for this microcontroller that i downloaded from TI website (and log10 and pow from the same file for use on my 2D arrays in the calculations).
In the next file you can see the source code i have written for this:
/*
* Copyright 2009 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
#include "stdio.h"
#include "usbstk5505.h"
/* ------------------------------------------------------------------------ *
* *
* Testing Function *
* *
* ------------------------------------------------------------------------ */
void TEST_execute( Int16 ( *funchandle )( ), char *testname, Int16 testid )
{
Int16 status;
/* Display test ID */
printf( "%02d Testing %s...\n", testid, testname );
/* Call test function */
status = funchandle( );
/* Check for test fail */
if ( status != 0 )
{
/* Print error message */
printf( " FAIL... error code %d... quitting\n", status );
/* Software Breakpoint to Code Composer */
SW_BREAKPOINT;
}
else
{
/* Print error message */
printf( " PASS\n" );
}
}
extern Int16 aic3204_test( );
/* ------------------------------------------------------------------------ *
* *
* main( ) *
* *
* ------------------------------------------------------------------------ */
void main( void )
{
/* Initialize BSL */
USBSTK5505_init( );
printf("EXBUSSEL = %02x\n", SYS_EXBUSSEL);
TEST_execute( aic3204_test, "AIC3204", 1 );
printf( "\n***ALL Tests Passed***\n" );
SW_BREAKPOINT;
}
I tried to remove all the unnecessary variables so i don't have any more maneuvering space there. I tried to comment a part of the code and only if i comment everything from the rfft call to the end (including the rfft), i don't get the linking error msg.
I am new in programing microcontrollers so i ask if you could make your answer simple to understand.
I hope you can help me solve this problem, any suggestions are welcome.
thank you in advance.