analogWrite on 8266 for servo pwm

Trying to get basic pwm working on my 8266.

I have been running FASTLED without problem (thousand of lines of code) and have no problem running on servo functions on gpio14 (clk or data can't remember which .

It appears the unit is resetting. The servo jumps after the first statement, then after seconds jumps again. The output on monitor is garbage after the initial serial.println. See screen print.

The default frequency is 1k, but I tried 5k as well no luck.

I have added a separate ps thinking that this tiny little servo is pulling too much power, no luck.

What is causing the reset ? See attached screen print for what the monitor looks like.

int LED = 8; //  D5 = 14, 7,8,9 for leds

void setup() 
{ 
  Serial.begin(9600);
 // analogWriteFreq(5000);
} 
 
void loop() 
{ 
  
 Serial.println("10  PWM");
  analogWrite(LED,1023);
  delay(50);
 
  Serial.println("20  PWM");
  analogWrite(LED,20);
  delay(50);
 
  Serial.println("300 PWM");
  analogWrite(LED,300);
  delay(50);

}

io 8 is one of the SPI pins for the internal flash memory

the garbage is bootlog at different baud rate

int LED = 8;

Should that be

int LED = D8;

?

thanks. I don't know how I got away with using fastled on pins 7,8 and 9 but they work fine for leds on that library.

But when I switched the servos to gpio 13 and 15 everything was fine (D7 & D8).

Thanks again.