ESP8266-01 GPIO2 boot problem

Hello Guys,

(sorry for my bad english)

I am new to the ESP and need some help. I hope someone can help me out.

I have programmed my ESP8266-01 using Arduino IDE to switch on/off LED usig web browser. The LED default state LOW. The GPIO2 pin of ESP-01 is connected through 220 resister to the LED.

If I boot the module with GPIO2 connected to LED, the ESP-01 goes on and nothing happens. And when I boot the module with GPIO2 not connected (floating) and wait until module is booted and then connect it to LED, everything works fine.

I have searched and read that the GPIO2 should be HIGH when starting the module and that somekind of pullup should be applied?

Can anyone help me with this and tell me how I can get this to work?

Thank u all in advance!