这个提示啥意思

[复制链接]
1398|11
 楼主| ousj 发表于 2014-4-27 22:40 | 显示全部楼层 |阅读模式

Error:Illegal opcode (XXXX) at pc= 0x0000000c  Illgal opcode at pc =0x0000000c和
   Error:SIMmay not be in stable,Advisable to correct the error before running这样类似的警告
chenjunt 发表于 2014-4-27 22:40 | 显示全部楼层
怎么来的啊
 楼主| ousj 发表于 2014-4-27 22:42 | 显示全部楼层
在CCS上调试一个语音算法的代码(.c,.h),用的6446 simulator模式,编译链接完毕以后,将声场的.out文件load以后在运行,就会提示
juventus9554 发表于 2014-4-27 22:42 | 显示全部楼层
只测试打开语音的代码呢
 楼主| ousj 发表于 2014-4-27 22:44 | 显示全部楼层
juventus9554 发表于 2014-4-27 22:42
只测试打开语音的代码呢

也出现了相同的问题
llljh 发表于 2014-4-27 22:44 | 显示全部楼层
可能是程序或是设置或是cmd文件
zyf部长 发表于 2014-4-27 22:48 | 显示全部楼层
代码看看吧
 楼主| ousj 发表于 2014-4-27 22:48 | 显示全部楼层
int main( )
{
short int * speech_samples; /* Array of speechsamples */
INT32 file_length;/* Number of samples in speech file */
INT32 num_read; /*number of elements read from file */
charpSpeechFilename[100];
   char *argv[]={"dg105.wav"};
FILE *speech_file;
   intPartitionNumber;
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 speechsamples 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);
printf("num_read=%d",num_read);
   return 0;
}
小小猫咪 发表于 2014-4-27 22:50 | 显示全部楼层
芯片是哪个型号啊,CCS是哪个版本?
 楼主| ousj 发表于 2014-4-27 22:50 | 显示全部楼层
算了,先结贴了,明天再说吧
huangfeng33 发表于 2014-5-6 20:49 | 显示全部楼层
应该不是你源代码的问题,可能是哪里设置有误,GEL文件或者CMD文件。。。
拿起书本 发表于 2014-5-6 20:50 | 显示全部楼层
先用开发板随机带的例子编译、下载和运行,检验一下仿真环境是否已经正确搭好。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

712

主题

7557

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部