[MCU] 提示是什么意思

[复制链接]
683|15
 楼主| lizye 发表于 2019-6-15 13:11 | 显示全部楼层 |阅读模式

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这样类似的警告
shimx 发表于 2019-6-15 13:18 | 显示全部楼层

怎么来的啊
 楼主| lizye 发表于 2019-6-15 13:22 | 显示全部楼层
在CCS上调试一个语音算法的代码(.c,.h),用的6446 simulator模式,编译链接完毕以后,将声场的.out文件load以后在运行,就会提示
spark周 发表于 2019-6-15 13:24 | 显示全部楼层
只测试打开语音的代码呢
 楼主| lizye 发表于 2019-6-15 13:27 | 显示全部楼层

也出现了相同的问题
zhaoxqi 发表于 2019-6-15 13:34 | 显示全部楼层
可能是程序或是设置或是cmd文件
jiajs 发表于 2019-6-15 13:37 | 显示全部楼层

代码看看吧
 楼主| lizye 发表于 2019-6-15 13:40 | 显示全部楼层

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;
}
zhenykun 发表于 2019-6-15 13:42 | 显示全部楼层

芯片是哪个型号啊,CCS是哪个版本?
jlyuan 发表于 2019-6-15 13:46 | 显示全部楼层
这个错误是哪个编译器的?
dengdc 发表于 2019-6-15 13:51 | 显示全部楼层
CCS的编译器没有这个相关的代码吧。
liliang9554 发表于 2019-6-15 13:54 | 显示全部楼层
指针地址的错误?
heweibig 发表于 2019-6-15 13:57 | 显示全部楼层

应该不是你源代码的问题,可能是哪里设置有误,GEL文件或者CMD文件。。。
jiahy 发表于 2019-6-15 14:00 | 显示全部楼层

先用开发板随机带的例子编译、下载和运行,检验一下仿真环境是否已经正确搭好。
午夜粪车 发表于 2019-6-15 14:03 | 显示全部楼层

这是哪里提示的问题?
找不到这个地址了,存储地址有问题。
 楼主| lizye 发表于 2019-6-15 14:06 | 显示全部楼层
唉,还是没有什么结果,算了,先结贴吧,多谢大家啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则

852

主题

9757

帖子

2

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