最近小弟在用DA14580(Cortex M0的)做蓝牙。程序写好了,编译没有问题,发现只要下载进芯片,Command窗口里面就会出现下面的错误(只拷贝了一部分),芯片也死掉了。还请高手指点!!
FUNC void displayvalues(void)
{
int idx;
unsigned int min_delta;
exec("log > MyValues.log");
printf("*** dbg_remaining_times[]\n");
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_remaining_times[idx]);
____________________^
*** error 34, line 51: undefined identifier
}
printf("*** dbg_sleep_times[]\n");
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_sleep_times[idx]);
____________________^
*** error 34, line 55: undefined identifier
}
printf("*** dbg_check_times[]\n");
for (idx = 0; idx < 100; idx++) {
printf ("%d\n", dbg_check_times[idx]);转载
|