Attempt 1: I followed this guide: https://www.instructables.com/Getting-Started-With-the-ESP8266-ESP-01/#discuss and got to step 3 where it says to upload the "BareMinimum" example from 01.Basics example. I keep getting this error when having everything connected like in the guide up till step 3 but i can never get it to flash correctly. Same results if I switch up the TX and RX connections, ground the RST pin, and use an external power supply for the ESP8266-01.
The error message says: esptool.FatalError: Failed to connect to ESP8266: Invalid head of packet (0x1C).
Attempt 2: Tried using library version 2.5.0 instead of 3.0.2 (newest)
Attempt 3: Used the sample code below
#include <Arduino.h>
void setup() {
Serial.begin(9600);
}
void loop() {
delay(1000);
Serial.println("Hello World!");
}
