1

I'm trying to program a stm32l-discovery board and have come across this error that keeps appearing when I try to build my project.

error: #29: expected an expression
       for (int i = 0; i <999; i++){

I'm using Keil uVision 4.

Source:

while (1) {
   ////fade up
   int i = 0; 
   for (int i = 0; i <999; i++) { 
      TIM_SetCompare2(TIM2,i);
      ////Pulse width is set with this function 
      delay(100);
      //// the '2' relates to the channel in use 
   }
}

Anyone know what this means?

uraimo
  • 19,081
  • 8
  • 48
  • 55

0 Answers0