Other Parts Discussed in Thread: BEAGLEBOARD-X15
Tool/software: TI-RTOS
Hi,
I'm using the Beagleboard-x15 and trying to run the EVM572x audio loopback example (on the C66x) included in the RTOS SDK. I'm seeing stack corruption using that example when I add an array in main. I was able to run the pdkProjectCreate.sh scrip to generate the project, and imported that into CCS to run.
I then added an array into main so my main function looks like (the highlighted code is the only code I added):
volatile int emuwait=0;
int main(Void)
{
while(emuwait);
configureAudio();
McaspDevice_init();
int temp[256];
int i = 0;
for(i = 0; i<256; ++i)
temp[i]=i;
configMcASP_SocHwInfo();
Aic31_init();
Log_info0("\r\nAudio Sample Main\n");
BIOS_start();
return 0;
}
When the audio is running, the temp array gets corrupted. Does the RTOS expect you to not create any data on the stack in main before the OS starts?
CCS Version: 9.0.1.00004
RTOS-SDK version 1.0.14