rst cause:4, boot mode:(1,7) ESP8266

Guten morgen liebe Community.
Bin mittlerweiele etwas Ratlos. Nutze einen ATmega328P+ESP8266 von RobotDyn und bekomme nach dem Kompilieren des Sektches über die Serielle Ausgabe des Microcontrollers die im Topic stehende Fehlermeldung.
Habe mittlerweile herausgefunden, das sich dies ereignet wenn die pindef() Funktion ausgeführt wird.
Scheinbar nach der dritten pinMode Definition. Könnte von euch einer bitte mal über den angefügten Code sehen und mir meinen Fehler verdeutlichen?
Habe scheinbar Tomaten auf den Augen.

#include <ESP8266WiFi.h>                      //ESP8266Wifi Bibliothek
#include <WiFiClient.h>                       //Wifi Client Bibliothek
#include <TroykaDHT.h>                        //DHT11 und 22 Bibliothek
#include <PubSubClient.h>                     //MQTT Bibiothek
#include <OneWire.h>                          //1Wire Biblithek
#include <DallasTemperature.h>                //DS1820 Bibliothek


const int rPin1=6;                            //Pindefinition zu ArduinoPin
const int rPin2=11;
const int rPin3=12;
const int rPin4=13;
const int rPin5=14;
const int rPin6=15;
const int rPin7=16;
const int rPin8=17;
const int rtest=18;

int rcounter = 0;                             //Hardware Reset Counter
int pubcount = 0;                             //Publish bei Initialisierung nach Neustart mit Retain Flag
DHT dht(19, DHT22);                           //Pinzuweisung für DHT11/22
OneWire oneWire(5);                           //Zuweisung Name zu Pin
DallasTemperature sensors(&oneWire);          //Verknüpfung Name zu 1Wire

IPAddress server(10, 10, 0, 6);               //MQTT Zieladresse

IPAddress staticIP(10, 10, 0, 4);             //Statische IP
IPAddress gateway(10, 10, 0, 200);            //Gateway
IPAddress subnet(255, 255, 255, 0);           //Subnet mask
IPAddress dns(192, 168, 77, 40);              //DNS

const char* ssid = "ssid";                //SSID
const char* password = "passwd";             //Password
const char* deviceName = "ArduinoKeller";     //Hostname

String temp = "";                             //DHT11/22 Temperatur String
String humi = "";                             //DHT11/22 Feuchte String
String temp2 = "";                            //DS1820 String
unsigned long lastSend;                       //Zeitglied für Sensorwerte

WiFiClient ethClient;                         //Definition ehtClient
PubSubClient client(ethClient);               //Definition für Pub und Sub

void setup() {
  Serial.begin(115200);
  delay(100);
  pindef();
  dht.begin();                                //DHT Funktion aus Bibliothek starten
  sensors.begin();                            //Sensors Funkton aus Bibliothek starten
  delay(500);
  setupwifi();
  client.setServer(server, 1883);             //Verbindung über Port
  client.setCallback(callback);               //Hören auf MQTT
}

void pindef()
{
  pinMode(rPin1, OUTPUT);
  pinMode(rPin2, OUTPUT);
  pinMode(rPin3, OUTPUT);
  pinMode(rPin4, OUTPUT);
  pinMode(rPin5, OUTPUT);
  pinMode(rPin6, OUTPUT);
  pinMode(rPin7, OUTPUT);
  pinMode(rPin8, OUTPUT);
  pinMode(rtest, OUTPUT);
  Serial.println("Pins zugewiesen");
  delay(100);
}

Mit erleuchtender Erwartung.

Gruß,
Torsten

rst cause 4 is wdt reset - you would do better on a german language forum; I am sure there are german language electronics forums, probably forums specific to ESP8266. wdt reset is pretty common, is a problem with your code, but I don't know enough about ESP8266 for Arduino to help more. And it will be easier for you to read an answer in german - google translate isn't very good for technical discussions.

Thanks, didn´t see that. I´ll better try the German forum.

Straggle00:
Thanks, didn´t see that. I´ll better try the German forum.

Generally though, those kinds of error messages indicate inadequate 3.3V . You need to power your ESP8266 from a reliable 3.3V 1A power supply.

.