-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 not supported? #72
Comments
I have same problem here :( Found a solution ?? |
Just a work-around. IIRC https://github.com/4refr0nt/luatool worked OK. |
need to get me a esp32 i think. |
I've had the same issue when trying to communicate with the ESP8266 chip on my Adafruit Feather Huzzah. Installing the cp210x.ko kernel module driver from Silicon Labs (which the Adafruit guide links to) didn't fix it either. Just like for @joysfera, I can communicate with my device using Whenever I try |
As a workaround comment next line in uploader.py |
But NodeMCU on ESP32 does print the '>' char prompt, just like on the ESP8266, doesn't it? |
I don't know, I haven't check. I am not really good at python. I'll try to check. |
I split the expect sync line to two lines and got me further, but now I'm hitting a different problem. self.__expect('%sync%\r\n')
self.__expect() |
Uploading binary file in verbose mode causes it to print garbage. This patch fixes it. Hope it helps somebody. diff --git a/nodemcu_uploader/uploader.py b/nodemcu_uploader/uploader.py
index e12d243..b8a15e2 100644
--- a/nodemcu_uploader/uploader.py
+++ b/nodemcu_uploader/uploader.py
@@ -74,7 +74,8 @@ class Uploader(object):
time.sleep(self.autobaud_time) # Wait for autobaud timer to expire
self.__exchange(';') # Get a defined state
self.__writeln('print("%sync%");')
- self.__expect('%sync%\r\n> ')
+ self.__expect('%sync%\r\n')
+ self.__expect()
except CommunicationTimeout:
raise DeviceNotFoundException('Device not found or wrong port')
@@ -375,7 +376,7 @@ class Uploader(object):
log.debug('pad with %d characters', padding)
data = data + (' ' * padding)
log.debug("packet size %d", len(data))
- self.__write(data)
+ self.__write(data, True)
self._port.flush()
return self.__got_ack()
|
Tried all above mentioned patches, nothing helped. |
FYI, working on a real fix. Seems like the issue is related to multiple Lua commands in one line. Doesn't make sense but spliting the commands to separate lines seems to help so I'm giving it a try. |
I'm using a SparkFun ESP-32 Thing and had to rebuild the firmware for 26MHz. I found that commenting out the auto-baud code in
helps. BUT not all the time. When I get the usual error, then I connect as a terminal, enter |
nodemcu-uploader fails on NodeMCU for ESP32 on my esp32 dev board. No idea why. The 'terminal' works normally, but the 'upload' dies this way:
The text was updated successfully, but these errors were encountered: