Problem with programmed via Arduino IDeESP8266 rst cause : 4 boot mode (3,7)-I'm driving crazy already

Well it's my engineering project that i fully want to move from arduino to esp8266. I want it to measure temperature from 2 points via one analog input (in previous version of program it worked) it comunnicates with local network (same here), but problems start when I want to use the OLED screen then the program crashes mainly rst cause:4 boot mode (3,7) previos it showe boot mode (3,6)