Hello, I am configuring EDMA interrupt using DSP/BIOS v5.42 on CCS v6.1.3 and I am using DSK6416T DSP. I have designated ISR for HWI_INT8 from the properties as _edmaHwi where edmaHwi() is the name of my C function. I am also writing the received data in a text file (not from DSP/BIOS).
My question is that, although, I get the correct received characters but the file isn't being written when I configure the interrupt using DSP/BIOS. That is, the characters written on the file are blank spaces although the received characters are not blank spaces.
I am attaching my code for the file writing function. Is there an issue with my code? Although without DSP/BIOS, my written file is not blank spaces. Is there an issue with how I am configuring EDMA_INT8.
void file_write (bool bits_array[],int len)
{
/*Function Input: bits_array*/
FILE *write;
int i,index;
char var;
bool b[8]={0};
write = fopen("C:\test\output.txt", "a+");
for (index=0; index < len ; index++)
{
for (i=0; i<8; i++)
{
b[i] = bits_array [i + (8 * index)]; }
var =bin2deci_bool (b, 8);
fputc(var, write);
}
fputs("\n", write);
fclose(write);
return;}