logo elektroda
logo elektroda
X
logo elektroda

Esp8266 - communication, cannot open init lua

pluszak22 3495 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16056427
    pluszak22
    Level 2  
    Hi, I'm new to the topic, but to the point
    I would like to start playing with esp, specifically ESP8266 12 on a NodeMcu V3 board, I found some tutorial, installed the drivers (CH340), downloaded the flasher and apparently the upload was successful, downloaded esplorer and unfortunately I encountered a problem, after selecting the appropriate COM, setting the baud to 9600, and pressing Open I just have Communication with MCU.... and so (where Open lights up red, RTS and DTR green, CTS not at all) when I switch off and on DTR something like this appears:
    Esp8266 - communication, cannot open init lua
    supposedly communication ok, but it detects firmware and cannot open init.lua
    i can upload some program (i found an example for blinking diode) send to esp and it works, however there is something wrong with the communication, because when i uploaded some program for wifi, or tried something with this init lua the time connection reached, similarly when i tried to use XTCOM utility the connection is not reached
    i am using a usb cable (the board has a built-in converter), I have used 2 cables and the same thing happens on each one
    Anyone can help or provide a useful link, I can't find anything myself
  • ADVERTISEMENT
  • #2 16056564
    Wojciech.
    Level 36  
    Check for other baud values.
  • ADVERTISEMENT
  • #3 16056630
    pluszak22
    Level 2  
    Checked, same for all
  • ADVERTISEMENT
  • Helpful post
    #4 16058566
    piotr411
    Level 22  
    You have done everything in an exemplary way, the ESP has connected nicely.
    Now you have to write a program to make it work :)

    The error that popped up indicates that there is no boot file in memory, which you have to create yourself.

    For learning time, however, do not do this, because you may lock the processor. Unblocking is not difficult, but it takes some experience to unblock it.

    Write e.g.

    Code: Lua
    Log in, to see the code


    The text will be sent to the com port and displayed on the terminal
  • #5 16059131
    pluszak22
    Level 2  
    piotr411 well I just noticed that I have blocked the processor, because I also installed the arduino 1.6.4 and I've uploaded a program from it, which runs nicely, but now I don't know how the hell to delete it, so that it can work in esplorer again;D, but with Arduino I already know what and how, but I don't really know how to work (or how to make it work) the serial port monitor, because in esplorer I could see what is executed (I pasted some example programs, even connected to WIFI and I could see the IP) anyone?
  • #6 16067155
    uzi18
    Level 24  
    If you have downloaded something from Arduino then now to play Lua again - upload to Lua processor :)
    init.lua is a file that is started automatically when the Lua interpreter is initialised.
  • #7 16908639
    kogiel
    Level 17  
    I have a question, is it normal that init.lua program runs only after reset, and not after power on? because if so, it makes no sense, because with the remote sensor it will be difficult to reset it manually, and if the program should start automatically, what am I doing wrong?
  • ADVERTISEMENT
  • #8 16917067
    uzi18
    Level 24  
    the terminal log would be useful - in this situation, as far as I know, it should start every time, unless there is something wrong with the signals and it enters bootloader mode
  • #9 17353025
    kogiel
    Level 17  
    The reason for the "stutter" during power-up was a too large electrolyte on the power supply, but now I have another question, how to write init lua to wait at least a moment for the format command, because it is a little annoying when you have to reset it 15 times to upload something
  • #10 17358785
    kogiel
    Level 17  
    I see no one knows the answer, so I'll answer myself ;-)

    Code: Lua
    Log in, to see the code


    Now if we send the password "exit" via uart within half a second
    then the init.lua file will be deleted and you can safely program the ESP :-)
ADVERTISEMENT