Sketch does does not execute on UNO R3 + WiFi ATmega328P+ESP8266 (32Mb memory) USB-TTL

Hi Folks,

I just bought a UNO R3 + WiFi ATmega328P+ESP8266 (32Mb memory) USB-TTL and I was able to upload the WiFiScan example sketch from ESP8266 library on the board. The DIP configuration is 1,2,3,4 OFF and 5,6,7 ON. 8 is OFF.

The board configuration on Arduino IDE V 1.8.13 is:
Board : Arduino
Model : Uno wifi
Upload Speed : 115200
CPU frenquency: 80Mhz
Flash size : 4MB (FS:2MB OTA:~1019KB)
Debug port : Disable
Debug Level "None"
IwIP Variant: v2 Lower Memory
VTables: Flash
Exceptions : Legacy (New can return nullprt)
Erase Flash : Only Sketch
SSL Support : All SSL cipher (most compatilble)
Port : COM5

I have tried with "Generic ESP8266 Module" board and the error is the same.

Below you can see that the upload was correctly done:
esptool.py v2.8
Serial port COM5
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 40:f5:20:3e:9e:6d
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 271024 bytes to 199846...
Wrote 271024 bytes (199846 compressed) at 0x00000000 in 17.7 seconds (effective 122.4 kbit/s)...
Hash of data verified.

Leaving...
Soft resetting...

The weird situation is the result that is shown on the Serial Port, please see below:
18:14:52.321 -> ⸮⸮⸮⸮⸮gn⸮{$⸮re⸮g⸮#⸮⸮`⸮{e⸮o⸮o'⸮s$|⸮g⸮g⸮⸮⸮o<gs⸮⸮g⸮|
By the way COM5 serial bound is 115200.

I really appreciate any guidance.

Thank you in Advance.

Below the WiFiScan Sketch just for reference, as it is the example from ESP8266 library:

/*
    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);
}

The easier you make it to read and copy the code the more likely it is that you will get help

Please follow the advice given in the link below when posting code , use code tags and post the code here

Post links to the technical information of all of the hardware parts. There are many different hardware items that will fit your description.