Hello,
I allow myself to contact you because despite my research and my discussion with Nicholas H.Tollervey, I can not find the source of my problem.
When using under Mac (10.13.6) version mu-editor 1.1 alpha1 in ESP mode I have a problem of access to the file and noise in the REPL:
{ll|Ädà|Ädìb<ì{ÛcÄ#óogl'oãì#p${ls$8ûgàlb'ã|älcû'oîdÇ$`ogdd`osncd``ûgà#gdÄÄò'oïlxónà{ãà#gã|d$#Äónoï$l no$`'{od xónà{ãàscgã|Äcûg'çl`ogl o;ÛgcÃ`{Ûo#`âìoärûg|ìdldl c|;loàoãl ã{dÄld`Äãr$ìdl`âslÄll`{l{dâÄcÄc|lbãc|Ädlcäò'çnoãdnädädld`güßãblläbãclÄcsdrl{óoÜãäónß#äl$óOSError: [Errno 2] ENOENT
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
>>>
For informations:
- I tested with two different ESP8266 with the latest firmware micropython (and it work with upycraft).
- I put the latest version of the CH340 driver on my mac.
I thank you for your attention to my request.
Best regards
noise in the REPL
Re: noise in the REPL
The garbage at the start of the ESP8266 is caused by the boot message of the ESP8266 rom loader sending at 74880 baud. Later MicroPython switches to 115200 baud. The reason for the message OSError: [Errno 2] ENOENT ist most likely the missing main.py script. If you have a main.py file, the message should be gone. An empty file is fine.
Re: noise in the REPL
I try it and is the same problem on the REPL:
{ll|Ädà|Ädìb<ì{ÛcÄ#óogl'oãì#p${ls$pû'àlcoâ<ìd#Äóngï$l g'$$`gsocl``ò'àcÃ'$óogçÇl8ûoà;Üãàb'ã|dlbóogçll`ogl n;Ûgl`xûoà;ãàÇ{b'ã|cû'oïd`gnd`osn#`;gc ãäoìrûg|ìdldl`b|{lÜoàoãl â{lÄld`Äã;$ìd$`ãslÄ$l`{l{lâcc|lbãÜc|Äd$cäûgç'oãÄdnäläd$d`ÀgüÄßã#$läÇ#ãblÄcrd;l{óoãäò'ß#äl$æTraceback (most recent call last):
File "main.py", line 6, in <module>
KeyboardInterrupt:
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
{ll|Ädà|Ädìb<ì{ÛcÄ#óogl'oãì#p${ls$pû'àlcoâ<ìd#Äóngï$l g'$$`gsocl``ò'àcÃ'$óogçÇl8ûoà;Üãàb'ã|dlbóogçll`ogl n;Ûgl`xûoà;ãàÇ{b'ã|cû'oïd`gnd`osn#`;gc ãäoìrûg|ìdldl`b|{lÜoàoãl â{lÄld`Äã;$ìd$`ãslÄ$l`{l{lâcc|lbãÜc|Äd$cäûgç'oãÄdnäläd$d`ÀgüÄßã#$läÇ#ãblÄcrd;l{óoãäò'ß#äl$æTraceback (most recent call last):
File "main.py", line 6, in <module>
KeyboardInterrupt:
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
Re: noise in the REPL
The garbage will not go away. That is sent before Micropython starts.
But now you have a main.py with a syntax error.
But now you have a main.py with a syntax error.
Re: noise in the REPL
HI thank you for your help.
I burn the firmware whit 115200 baud and I drop on it a main.py file. It's better, the noise is more small :
´¥iwiçµÌ/µä?
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
>>>
I burn the firmware whit 115200 baud and I drop on it a main.py file. It's better, the noise is more small :
´¥iwiçµÌ/µä?
MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
>>>
Re: noise in the REPL
I have this in the Log Courant:
OSError: Could not enter raw REPL.
2019-04-16 13:11:07,943 - mu.interface.main:740(show_message) DEBUG: There was a problem getting the list of files on the device. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your device and/or restarting Mu.
2019-04-16 13:11:07,944 - mu.interface.main:741(show_message) DEBUG: None
2019-04-16 13:11:22,311 - mu.logic:1120(show_admin) INFO: Showing admin with logs from /Users/florentjouines/Library/Logs/mu/mu.log
2019-04-16 13:11:22,312 - mu.logic:157(installed_packages) INFO: Packages found: ['/Users/florentjouines/Library/Application Support/mu/site-packages/scikit_learn-0.20.3.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/numpy-1.16.2.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/pyserial-3.4.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/scipy-1.2.1.dist-info']
2019-04-16 13:11:43,179 - mu.logic:1151(show_admin) INFO: No admin settings changed.
2019-04-16 13:16:25,500 - mu.modes.esp:184(toggle_files) INFO: Toggle filesystem off.
2019-04-16 13:16:26,177 - mu.modes.base:229(find_device) INFO: Found device on port: cu.wchusbserial1420
2019-04-16 13:16:26,177 - mu.modes.base:230(find_device) INFO: Serial number:
2019-04-16 13:16:26,189 - mu.modes.esp:180(toggle_files) INFO: Toggle filesystem on.
2019-04-16 13:16:28,735 - mu.modes.base:403(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
File "/Applications/mu-editor.app/Contents/Resources/app/mu/modes/base.py", line 400, in ls
result = tuple(microfs.ls(self.serial))
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 181, in ls
], serial)
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 132, in execute
raw_on(serial)
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 82, in raw_on
raise IOError('Could not enter raw REPL.')
OSError: Could not enter raw REPL.
2019-04-16 13:16:28,738 - mu.interface.main:740(show_message) DEBUG: There was a problem getting the list of files on the device. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your device and/or restarting Mu.
2019-04-16 13:16:28,738 - mu.interface.main:741(show_message) DEBUG: None
2019-04-16 13:16:36,944 - mu.logic:1120(show_admin) INFO: Showing admin with logs from /Users/florentjouines/Library/Logs/mu/mu.log
2019-04-16 13:16:36,947 - mu.logic:157(installed_packages) INFO: Packages found: ['/Users/florentjouines/Library/Application Support/mu/site-packages/scikit_learn-0.20.3.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/numpy-1.16.2.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/pyserial-3.4.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/scipy-1.2.1.dist-info']
OSError: Could not enter raw REPL.
2019-04-16 13:11:07,943 - mu.interface.main:740(show_message) DEBUG: There was a problem getting the list of files on the device. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your device and/or restarting Mu.
2019-04-16 13:11:07,944 - mu.interface.main:741(show_message) DEBUG: None
2019-04-16 13:11:22,311 - mu.logic:1120(show_admin) INFO: Showing admin with logs from /Users/florentjouines/Library/Logs/mu/mu.log
2019-04-16 13:11:22,312 - mu.logic:157(installed_packages) INFO: Packages found: ['/Users/florentjouines/Library/Application Support/mu/site-packages/scikit_learn-0.20.3.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/numpy-1.16.2.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/pyserial-3.4.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/scipy-1.2.1.dist-info']
2019-04-16 13:11:43,179 - mu.logic:1151(show_admin) INFO: No admin settings changed.
2019-04-16 13:16:25,500 - mu.modes.esp:184(toggle_files) INFO: Toggle filesystem off.
2019-04-16 13:16:26,177 - mu.modes.base:229(find_device) INFO: Found device on port: cu.wchusbserial1420
2019-04-16 13:16:26,177 - mu.modes.base:230(find_device) INFO: Serial number:
2019-04-16 13:16:26,189 - mu.modes.esp:180(toggle_files) INFO: Toggle filesystem on.
2019-04-16 13:16:28,735 - mu.modes.base:403(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
File "/Applications/mu-editor.app/Contents/Resources/app/mu/modes/base.py", line 400, in ls
result = tuple(microfs.ls(self.serial))
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 181, in ls
], serial)
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 132, in execute
raw_on(serial)
File "/Applications/mu-editor.app/Contents/Resources/app/mu/contrib/microfs.py", line 82, in raw_on
raise IOError('Could not enter raw REPL.')
OSError: Could not enter raw REPL.
2019-04-16 13:16:28,738 - mu.interface.main:740(show_message) DEBUG: There was a problem getting the list of files on the device. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your device and/or restarting Mu.
2019-04-16 13:16:28,738 - mu.interface.main:741(show_message) DEBUG: None
2019-04-16 13:16:36,944 - mu.logic:1120(show_admin) INFO: Showing admin with logs from /Users/florentjouines/Library/Logs/mu/mu.log
2019-04-16 13:16:36,947 - mu.logic:157(installed_packages) INFO: Packages found: ['/Users/florentjouines/Library/Application Support/mu/site-packages/scikit_learn-0.20.3.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/numpy-1.16.2.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/pyserial-3.4.dist-info', '/Users/florentjouines/Library/Application Support/mu/site-packages/scipy-1.2.1.dist-info']