You are viewing a static version of the site. Enable JavaScript to benefit from the
full functionality of this site and enable such things as forum posting.
compile error
solarJack:
Cannot run program "/usr/bin/python" (in directory "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build"): error=2, No such file or directory
I can use the plugin installer and see I have a python file in the 'tools' folder..with a solid star..
dont know where to go from here..
solarJack:
Compiling...
• Preprocessing...
• Converting binary files
• Generating linker script
• Compiling sketch...
◦ nodeMCU_HotWaterCat5_combined.cpp
• Compiling core...
‣ esp8266
• Compiling libraries...
‣ ESP_WiFiManager [/home/jack/Documents/sketchbook/libraries/ESP_WiFiManager]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ SafeString-1.0.5 [/home/jack/Documents/sketchbook/libraries/SafeString-1.0.5]
‣ ESP8266WebServer [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WebServer]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ SafeString-1.0.5 [/home/jack/Documents/sketchbook/libraries/SafeString-1.0.5]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ DNSServer [/home/jack/.uecide/libraries/Communications/esp8266/DNSServer]
• Linking sketch...
‣ Generating bin file...
Unable to start process
Cannot run program "/usr/bin/python" (in directory "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build"): error=2, No such file or directory
‣ Generating eep file...
‣ Generating etx file...
‣ Generating lss file...
Compiling finished.
Memory usage
• Program size: 373,508 bytes
• Memory size: 48,540 bytes
• Compilation took 24.793 seconds.
matt:
Python on Linux / OS X relies on a system installed version of python. I'd expect most systems to already have one, but maybe your system doesn't. Try installing python? You will also need to install pyserial as well.
solarJack:
Compiling...
• Preprocessing...
• Converting binary files
• Generating linker script
• Compiling sketch...
◦ nodeMCU_HotWaterCat5_combined.cpp
• Compiling core...
‣ esp8266
• Compiling libraries...
‣ ESP_WiFiManager [/home/jack/Documents/sketchbook/libraries/ESP_WiFiManager]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ SafeString-1.0.5 [/home/jack/Documents/sketchbook/libraries/SafeString-1.0.5]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ ESP8266WebServer [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WebServer]
‣ DNSServer [/home/jack/.uecide/libraries/Communications/esp8266/DNSServer]
‣ ESP8266WebServer [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WebServer]
• Linking sketch...
‣ Generating bin file...
Creating BIN file "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build/nodeMCU_HotWaterCat5.bin" using "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build/nodeMCU_HotWaterCat5.elf"
‣ Generating eep file...
‣ Generating etx file...
‣ Generating lss file...
Compiling finished.
Memory usage
• Program size: 373,508 bytes
• Memory size: 48,540 bytes
• Compilation took 55.355 seconds.
THANKYOU!!
solarJack:
FYI NOTE.. after the initial upload, which is successful, then next uploads fail due to baud rate.. I use 9600 and apparently that value is retained, instead of the correct baud rate for programming..115200.. I changed baud rate to 115200 and uploads work again.. not sure if this is an error of just how things must be..
thanks again, nice to have this project working..
matt:
The upload baud rate should be set at upload time through the ESP8266's autobaud method - that is, enter programming mode, then send UUUUUUUUUUUUUUUUUUUUUUUU, which sets the baud rate to whatever it need to be. All that is done by esptool.py, and nothing to do with UECIDE. It could be that something is happening to the DTR/RTS signals that's preventing it going into programming mode until you do something to change the baud rate which then resets it. Try running:
stty -F /dev/ttyUSB0 hupcl
after uploading and before a new upload, without changing the baud rate, to see if that makes it work. If it does it'll prove it's a DTR/RTS problem.
solarJack:
here is the upload status after first time--
Compiling...
• Preprocessing...
• Converting binary files
• Generating linker script
• Compiling sketch...
◦ nodeMCU_HotWaterCat5_combined.cpp
• Compiling core...
‣ esp8266
• Compiling libraries...
‣ ESP_WiFiManager [/home/jack/Documents/sketchbook/libraries/ESP_WiFiManager]
‣ ESP8266WiFi [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WiFi]
‣ SafeString-1.0.5 [/home/jack/Documents/sketchbook/libraries/SafeString-1.0.5]
‣ DNSServer [/home/jack/.uecide/libraries/Communications/esp8266/DNSServer]
‣ SafeString-1.0.5 [/home/jack/Documents/sketchbook/libraries/SafeString-1.0.5]
‣ ESP8266WebServer [/home/jack/.uecide/libraries/Communications/esp8266/ESP8266WebServer]
• Linking sketch...
‣ Generating bin file...
Creating BIN file "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build/nodeMCU_HotWaterCat5.bin" using "/home/jack/Documents/sketchbook/nodeMCU_HotWaterCat5/build/nodeMCU_HotWaterCat5.elf"
‣ Generating eep file...
‣ Generating etx file...
‣ Generating lss file...
Compiling finished.
Memory usage
• Program size: 373,312 bytes
• Memory size: 48,576 bytes
• Compilation took 43.792 seconds.
Uploading firmware...
esptool.py v2.8-dev
Serial port /dev/ttyUSB0
Traceback (most recent call last):
File "/home/jack/.uecide/programmers/esptool/esptool.py", line 3201, in <module>
_main()
File "/home/jack/.uecide/programmers/esptool/esptool.py", line 3194, in _main
main()
File "/home/jack/.uecide/programmers/esptool/esptool.py", line 2889, in main
esp = chip_class(each_port, initial_baud, args.trace)
File "/home/jack/.uecide/programmers/esptool/esptool.py", line 237, in init
self._port = serial.serial_for_url(port)
File "/usr/local/lib/python2.7/dist-packages/serial/init .py", line 88, in serial_for_url
instance.open()
File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0'
I tried stty -F /dev/ttyUSB0 hupcl
but I get--
ack@jack-ThinkPad-T410c:~$ stty -F /dev/ttyUSB0 hupcl
stty: /dev/ttyUSB0: Device or resource busy
USB0 is the correct one for the board..
matt:
Something's locking the port. No idea what. You could try the good old uninstall of modemmanager
, see if that helps.
solarJack:
Looks like if I just close the serial monitor in uecide, then upload, all is good.. this time I tried switching back to 115200 and it still gave the same baud error from python.. I will just close serial monitor before I upload.. not so bad..
matt:
Ah, the serial monitor. Yes, you must close that.