This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

delay()函数延迟分别在stareware和sysbios下,实际延迟时间不一致,差异较大。

Other Parts Discussed in Thread: SYSBIOS

delay()函数延迟分别在stareware和sysbios下,使用CCS烧录到nandflash中(block1开始),实际延迟时间不一致,差异较大。

同样的延迟函数代码:

void delay(n)

{

  while(n - - > 0u);

}

同样的aisgen配置文件:  期望CPU 是456M

1. 在stareware下

   uartinit();

   delay(7654321);  // 实际延迟时间为1,812ms

   *******

2. 在sysbios下

   uartinit();

   delay(7654321);  // 实际延迟时间为0.846ms

   *******

从现象上看,在sysbios下延迟时间是对的,在stareware下延迟时间是错的,似乎不是  CPU 为 456M;