4refr0nt / ESPlorer

Integrated Development Environment (IDE) for ESP8266 developers
http://esp8266.ru/esplorer/
GNU General Public License v2.0
1.23k stars 325 forks source link

Save to ESP doesn't work for Micropython #67

Open alexzaitsev opened 6 years ago

alexzaitsev commented 6 years ago

Hello, I use v 0.2.0-rc6 on MacOS.

I've written a file using 'Save to ESP' button.

screen shot 2017-12-27 at 22 46 38

It was successful. Then I checked the file using picocom:

screen shot 2017-12-27 at 22 48 56

And seems that it's empty.

Btw, several times I couldn't even write a file using 'Save to ESP' - the last line was cut.

alexzaitsev commented 6 years ago

UPD After several tries seems that it wrote file but still it was done not properly:

screen shot 2017-12-27 at 23 03 55

That's because you use f.write(...) and don't add a newline symbol.

Josverl commented 6 years ago

I have been working on improving support for uPython. This has not yet been merged into this repo , but you can try the fork located at : https://github.com/Josverl/ESPlorer/tree/MT-Build to see if that helps resolve your issues. In that version I have re-written the file upload handling as well as added other uPython functionality.

kurtsvl commented 6 years ago

Josverl i use your version of Esplorer for ESP32 programming and it works great unlike the original, the binary mode of loading is great, thank you. P/S I hope the author uses your changes in The original version ESplorer.

liudr commented 6 years ago

I got the same issue using MicroPython. I think the IDE strips line ends and never puts them back when writing to the dev board. This should be an easy fix (?) by the author.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.