-->
Page 1 of 1

Nodemcu - luatool - No proper answer from MCU

PostPosted: Sun Sep 13, 2015 8:57 am
by atilalms
Hello guys,

I have researched about the best toolchain for ESP8266. After install the SDK, I discovered that a good way to start is to use nodemcu lua.

I think, for this moment, that create a C programm is painful and hard. So, I decide to create a file in lua and use luatool to compile (I don't know if there is another way. PS.: I am using Linux Ubuntu).

With "sudo make flash" command I can write the example data into ESP8266, but when I use luatool I always get the same error:

Code: Select allatilalms@atilalms:/opt/Espressif/luatool/luatool$ sudo ./luatool.py --port /dev/ttyUSB0 --src teste1.lua --dest init.lua --verbose
Set timeout None
Set interCharTimeout None
Upload starting
Stage 1. Deleting old file from flash memory
->file.open("init.lua", "w")Traceback (most recent call last):
  File "./luatool.py", line 172, in <module>
    writeln("file.open(\"" + args.dest + "\", \"w\")\r")
  File "./luatool.py", line 44, in writeln
    raise Exception('No proper answer from MCU')
Exception: No proper answer from MCU


When I try "screen /dev/ttyUSB0 9600" appears a blank screen in terminal and I can't do anything.
I already gave permissions to /dev/ttyUSB0 and I know that the device is in this port (lsusb; dmesg | grep usb)

Hope for answers!

Thanks!