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.

for循环不能执行



  char Index;

int RATE[22]={0xB5,0x62,0x06,0x08,0x06,0x00,0xFA,0x00,0x01,0x00,
  0x01,0x00,0x10,0x96,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};//数据更新速率为4HZ
 for(Index=0;Index<22;Index++)
   {

   UARTCharPut(UART7_BASE,RATE[Index]);

   UARTCharPut(UART5_BASE,RATE[Index]);

 

   }
不能执行循环,不能输出数据。每次只输出B5