CCS调试时遇到的小问题 憋了好多天了 跪谢各位
在CCS上调试一个语音算法的代码(.c,.h),用的simulator模式,编译链接完毕以后,将声场的.out文件load以后在运行,就会提示:
Error:Illegal opcode (XXXX) at pc= 0x0000000c Illgal opcode at pc =0x0000000c和
Error:SIM may not be in stable,Advisable to correct the error before running这样类似的警告
下面是我尝试只测试打开语音的代码,也出现了相同的问题,不知道什么原因,可能是程序或是设置或是cmd文件,跪谢各位了,全部分奉上
int main( )
{
p563Results_struct tResults = {-1};
short int * speech_samples; /* Array of speech samples */
INT32 file_length; /* Number of samples in speech file */
INT32 num_read; /* number of elements read from file */
float h=0;
char pSpeechFilename[100];
char * argv[]={"dg105.wav"};
FILE *speech_file;
int PartitionNumber;
FLOAT PredictedMos;
strcpy(pSpeechFilename,argv[0]);
/* open speech file */
if((speech_file = fopen(pSpeechFilename, "rb")) == NULL )
{
printf( "Cannot open file %s\n", pSpeechFilename ) ;
exit(-1) ;
}
/* Read speech samples from file */
fseek(speech_file, 0 , SEEK_END) ;
file_length = (ftell(speech_file))/(sizeof(short int)) ;
fseek(speech_file, 0 , SEEK_SET) ;
speech_samples = (short int *)calloc(file_length, sizeof(short int)) ;
num_read = fread(speech_samples, sizeof(short int), file_length, speech_file);
if(num_read != file_length)
{
printf( "Unable to read all the data from file\n" );
exit(-1);
}
printf("num_read=%d",num_read);
return 0;
}
Error:Illegal opcode (XXXX) at pc= 0x0000000c Illgal opcode at pc =0x0000000c和
Error:SIM may not be in stable,Advisable to correct the error before running这样类似的警告
下面是我尝试只测试打开语音的代码,也出现了相同的问题,不知道什么原因,可能是程序或是设置或是cmd文件,跪谢各位了,全部分奉上
int main( )
{
p563Results_struct tResults = {-1};
short int * speech_samples; /* Array of speech samples */
INT32 file_length; /* Number of samples in speech file */
INT32 num_read; /* number of elements read from file */
float h=0;
char pSpeechFilename[100];
char * argv[]={"dg105.wav"};
FILE *speech_file;
int PartitionNumber;
FLOAT PredictedMos;
strcpy(pSpeechFilename,argv[0]);
/* open speech file */
if((speech_file = fopen(pSpeechFilename, "rb")) == NULL )
{
printf( "Cannot open file %s\n", pSpeechFilename ) ;
exit(-1) ;
}
/* Read speech samples from file */
fseek(speech_file, 0 , SEEK_END) ;
file_length = (ftell(speech_file))/(sizeof(short int)) ;
fseek(speech_file, 0 , SEEK_SET) ;
speech_samples = (short int *)calloc(file_length, sizeof(short int)) ;
num_read = fread(speech_samples, sizeof(short int), file_length, speech_file);
if(num_read != file_length)
{
printf( "Unable to read all the data from file\n" );
exit(-1);
}
printf("num_read=%d",num_read);
return 0;
}
...全文
相关推荐
DSP CCS初学调试问题大全
DSP CCS初学调试问题大全 DSP CCS初学调试问题大全是一个 DSP/BIOS 应用程序调试的知识点总结,涵盖了 DSP/BIOS 应用程序调试中的常见问题和解决方案。
CCS编译环境下的使用步骤及常见问题
在调试过程中,我们可以使用多种调试工具,例如单步执行、全速执行、断点设置等。常见问题:1. 为什么启动CCS编译环境时出现警告对话框?
CCS使用与调试
实践操作CCS时,确保系统配置符合最低需求,例如奔腾133处理器、32MB内存和640x480显示分辨率。
DM8127 CCS 调试 开发 VLIB
**文件加载与输出**: - 由于CCS加载和输出文件的效率问题,特别是处理大型图像文件时,可以使用CCS的探针功能。
ccs5.5详细安装过程_ccs5.5安装_ccs5.5安装步骤_ccs5.5_ccs5.5菜单栏_ccs5.5菜单栏_
调试过程中,可以通过JTAG或USB接口连接硬件进行在线调试。七、常见问题与解决方法1. 如果安装过程中遇到驱动冲突,尝试关闭防火墙或安全软件后再安装。2.


其他硬件开发
