ESP8266 WIFi looks is not getting any kind of connections and lots of errors

Hi, I'm new with esp8266.

I have the library and shows in the Boards.

My code to test it is:

#include <ESP8266WiFi.h>
/*
  ESP8266 Blink by Simon Peter
  Blink the blue LED on the ESP-01 module
  This example code is in the public domain

  The blue LED on the ESP-01 module is connected to GPIO1
  (which is also the TXD pin; so we cannot use Serial.print() at the same time)

  Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);     // Initialize the LED_BUILTIN pin as an output


  Serial.begin(115200);
  Serial.println();

  WiFi.begin("Frontier8672", "4098471100");

  Serial.print("Connecting");
  while (WiFi.status() != WL_CONNECTED)
  {
    delay(500);
    Serial.print(".");
  }
  Serial.println();

  Serial.print("Connected, IP address: ");
  Serial.println(WiFi.localIP());
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (Note that LOW is the voltage level
  // but actually the LED is on; this is because
  // it is active low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}

But in terminal i get this over and over without any pause:

ctx: cont
sp: 3ffffb90 end: 3fffffc0 offset: 01a0
3ffffd30:  feefeffe feefeffe feefeffe feefeffe  
3ffffd40:  feefeffe feefeffe feefeffe 3ffffef0  
3ffffd50:  0000049c 0000049c 00000020 40100970  
3ffffd60:  feefeffe feefeffe feefeffe feefeffe  
3ffffd70:  00000000 400042db 000000fd 40100bc8  
3ffffd80:  40004b31 00001000 000000fd 401002e4  
3ffffd90:  40105c60 feefeffe feefeffe 4022da8d  
3ffffda0:  40105e1d 4022db77 3ffef06c 0000049c  
3ffffdb0:  000000fd 3ffffef0 3ffef06c 4022db5a  
3ffffdc0:  ffffff00 55aa55aa 0000000a 00000020  
3ffffdd0:  00000020 000000c6 000000d2 aa55aa55  
3ffffde0:  000000ff 4022e05a 3ffef06c 3ffef06c  
3ffffdf0:  000000ff 000000db 000000db 401006b0  
3ffffe00:  40105e1d 00000001 3ffef07c 4022e27a  
3ffffe10:  00000005 3ffef06c 000000ff 3ffffef0  
3ffffe20:  3fffff10 3ffef0a3 0000000a 00000020  
3ffffe30:  3ffef12c 3fffff51 00000001 4022e32a  
3ffffe40:  3ffffef0 40239860 00000000 0000000a  
3ffffe50:  3ffef46c 3fffff10 3fff53a4 4022e2f9  
3ffffe60:  3ffef06c 4022e360 3ffe84cc 3ffe860c  
3ffffe70:  4020196e 3ffe860c 3ffe8619 402018c3  
3ffffe80:  3ffe8500 3fff100c 00000020 4010093b  
3ffffe90:  00000020 000000c6 000000c6 aa55aa55  
3ffffea0:  00000000 4024864b 00000000 401002f4  
3ffffeb0:  3ffe8530 00000001 3ffeeae0 40248666  
3ffffec0:  40248696 00000001 00000001 00000001  
3ffffed0:  4020362a 3ffeeae0 feefeffe feefeffe  
3ffffee0:  ab89c000 fef08351 feefeffe 00000100  
3ffffef0:  6e6f7246 72656974 32373638 40100900  
3fffff00:  4020329d feefeffe feefeffe feefeffe  
3fffff10:  38393034 31313734 3f003030 402035af  
3fffff20:  3ffe8651 00000000 616e000a 40203205  
3fffff30:  3ffe8651 40203771 ffffffff 00000001  
3fffff40:  feefeffe 00000001 3ffee34c 3ffee3c4  
3fffff50:  40201a00 3ffee34c 3ffe8681 00000002  
3fffff60:  00000004 00000000 3ffee318 00000001  
3fffff70:  3fffdad0 00000000 3ffee34c 3ffee3c4  
3fffff80:  3fffdad0 3ffee318 3ffee34c 40201071  
3fffff90:  feefeffe feefeffe feefeffe feefeffe  
3fffffa0:  feefeffe 00000000 3ffee384 402024b4  
3fffffb0:  feefeffe feefeffe 3ffe84e8 40100bfd  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1392, room 16 
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

I'm ding it with an arduino UNO using the follow connection:

GND -> GND
VCC -> 3.3v
TX -> TX
RX -> RX
CHPD -> vcc
GPIO0 -> Ground (only when upload code)

Can anyone can give me a hand with this?
probably I have to reflash?

Thanks

RST also need to be connected to VCC, not just CH_PD. Also during upload, so connect first, upload flash, and if you want to use LED_BUILTIN, you can not really use Serial TX, they are both connected to pin 1.
You can connect a led + resistor between pin 2 and VCC (so active LOW) and use that for blinking if you want to use Serial. You can also send long Serial msgs that will blink the led.

Thanks for the help!!!, I appreciated it. I'll try this in a few and let you know.

I tried it.

I connect reset to VCC and CH_PD and upload the WIFIScan example script.

Still getting same messages in terminal.

/*
   This sketch demonstrates how to scan WiFi networks.
   The API is almost the same as with the WiFi Shield library,
   the most obvious difference being the different file you need to include:
*/
#include "ESP8266WiFi.h"

void setup() {
 Serial.begin(115200);

 // Set WiFi to station mode and disconnect from an AP if it was previously connected
 WiFi.mode(WIFI_STA);
 WiFi.disconnect();
 delay(100);

 Serial.println("Setup done");
}

void loop() {
 Serial.println("scan start");

 // WiFi.scanNetworks will return the number of networks found
 int n = WiFi.scanNetworks();
 Serial.println("scan done");
 if (n == 0) {
   Serial.println("no networks found");
 } else {
   Serial.print(n);
   Serial.println(" networks found");
   for (int i = 0; i < n; ++i) {
     // Print SSID and RSSI for each network found
     Serial.print(i + 1);
     Serial.print(": ");
     Serial.print(WiFi.SSID(i));
     Serial.print(" (");
     Serial.print(WiFi.RSSI(i));
     Serial.print(")");
     Serial.println((WiFi.encryptionType(i) == ENC_TYPE_NONE) ? " " : "*");
     delay(10);
   }
 }
 Serial.println("");

 // Wait a bit before scanning again
 delay(5000);
}

Maybe I need to reflash the ESP8266?

Maybe I need to reflash the ESP8266?

and upload the WIFIScan example script.

To what are you uploading sketch. This sketch is meant to be uploaded to the ESP, what else do you want to do ?
Just to make sure you have everything connected properly.
VCC - 3.3v
RST - 3.3v
CH_PD - 3.3v
TX - TX
RX - RX (via voltage divider)
GPIO0 - to GND during reset to flash firmware, otherwise pulled up or free floating
GPIO2 - pulled up or free floating
GND - GND

The ESP is quite power hungry, how are you providing the 3.3v ?

I tried the Blink code and is working, now I want to connect it to my wifi network.

I'm providing VCC thru the Arduino Uno and I'm not using the voltage divider for RX.

Let me try the voltage divider and use my power supply to feed 3.3 directly to the ESP8266.

Thanks.

I'm providing VCC thru the Arduino Uno

I can do that as well, on an Uno and on a Mega, but a dedicated 3.3v regulator TO-220 + extra capacitor is recommended

and I'm not using the voltage divider for RX.

Oh eh, that you really should do on an ESP-01.

I get a new ESP01 and Is different to the one I have. Mine looks like a really cheap one.

In the new one all works perfect, so my guess is the old one is too old and probably the flash is not the correct one for that.

Thanks for all your help in this. I really appreciate it.

Mine looks like a really cheap one

They are all really cheap ! but easily damaged.
If you can post pictures of both for reference, that would be great.

Here are the pictures.

The one that works perfect to me is the one with ESP-01S, the one that gives me a lot of troubles is the AI Cloud Inside.

I don't know if you have experienced the same with this AI Cloud Inside. Now I'm worry to buy more like that.

After read some, I think the Cloud Inside ones is just a ESP-01 and the new one is 01S. That can aaffect?

I got this nice USB - ESP01 adapter from Amazon:

The ESP-01S works fine with it. With the AI Cloud Inside just goes crazy.

Well i actually have a whole batch of AI Cloud inside ones, and so far 2 of them failed a basic test. I can upload a sketch but nothing else. They don't respond at all. That's bad news for me as well, I had just about finished the previous batch. Maybe some part of the SDK is missing or it has a different SDK in there. Anyway i need to have those in stock so i will have something to order. Of course no telling when a next batch may arrive. And well, they are cheap but they aren't free, and i'm sure my buyer protection has expired, all i can do now is at least inform the seller that the product is faulty. Thanx for the update !

The strange hing is that the other ones i have are also ESP-01 and not ESP-01S and they seem fine, (ESP-01S has a bigger flash size i think, probably better that way you can do OTA updates i suppose) So it must be this AI-cloud inside that has the issues.

Ok my friend I fixed it. (Well no, I found the tutorial for it XD)

I use this bin to flash the esp01 and nice works just fine.

I think this is for the weird ones:

I'm going to save these files with love #lol.

Give it a try and let me know.

I thought i posted a response before, i found online that if i select "Generic ESP8285 module" it does work.
The issue is the flash ! it somehow works in a different way, i was looking at actually replacing the flash, when i managed to read the text on it "PN25F08b' googled that and that took me here where 'grovkillen' says

You can flash it with the ESP8285 version.

and that worked. I thought i posted this earlier and was actually waiting for your response and to try it out, but probably got erased during the adding of 'karma' for you. I was so happy ! you have 1 unit, i have 50pcs. Anyway all black pcb ESP-01 are 1mB (8Mbit) flash size, but they don't all use the same chip.

One of the things about having 50pcs is that you still have units with the original firmware flashed onto it, and that actually still worked (on 48 of 'm) Which made me consider that they are not actually broken. So by comparing 2 different units i noticed that the flash was different, and figured it may be broken, that's how i got to looking at the chip number and looking for a replacement online. Anyway if you just want to use the Arduino IDE to create your own firmware, use ESP8285 as board and try that out !

I tried in teh Arduino IDE to use the 8265 but nothing. The only thing that works was this BIB for flash. Thanks for all the help!

It must have a different type of flash again, try all 4 flash modes (QIO, QOUT, DIO, DOUT) and see if you can read the writing on the Flashchip (the SOIC 8 package)