Page 1 of 1

Micropython does not restart with Ctrl/D

Posted: Tue Nov 27, 2018 9:30 pm
by hybotics
Hi,

I have been experiencing this behavior with Micropython v1.9.4. When I Ctrl/C a running script after I save a new version to my PyBoard, the script does not start when I Ctrl/D. Instead, I get a bogus "SyntaxError: invalid syntax" at a line where there is no error or anywhere above it. Eventually, the script starts, but this is pretty annoying.

Code: Select all

>>> 
PYB: sync filesystems
PYB: soft reboot
Traceback (most recent call last):
  File "main.py", line 25
SyntaxError: invalid syntax
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 
PYB: sync filesystems
PYB: soft reboot
Traceback (most recent call last):
  File "main.py", line 25
SyntaxError: invalid syntax
MicroPython v1.9.4 on 2018-05-11; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 
PYB: sync filesystems
PYB: soft reboot

Press Ctrl/C to quit.
I have to Ctrl/D many times before the script finally starts. Is there a fix for this?

8-Dale

Re: Micropython does not restart with Ctrl/D

Posted: Tue Nov 27, 2018 10:40 pm
by HermannSW
I have seen similar CTRL-D issue with Wemos D1 ESP8266 board today, with same 1.9.4 5/11/2018 version.
After flashing the 1.9.4 7/18/2018 version the issue was gone:
https://github.com/Hermann-SW/webrepl/issues/3

Re: Micropython does not restart with Ctrl/D

Posted: Wed Nov 28, 2018 10:29 pm
by hybotics
HermannSW wrote:
Tue Nov 27, 2018 10:40 pm
I have seen similar CTRL-D issue with Wemos D1 ESP8266 board today, with same 1.9.4 5/11/2018 version.
I flashed the 11/28/2018 version of the v1.9.4 dp-thread version, but I still have the problem. It is triggered by saving to PYBFLASH.

8-Dale

Re: Micropython does not restart with Ctrl/D

Posted: Wed Nov 28, 2018 10:59 pm
by Jonwalter
hybotics wrote:
Wed Nov 28, 2018 10:29 pm
HermannSW wrote:
Tue Nov 27, 2018 10:40 pm
I have seen similar CTRL-D issue with Wemos D1 ESP8266 board today, with same 1.9.4 5/11/2018 version.
I flashed the 11/28/2018 version of the v1.9.4 dp-thread version, but I still have the problem. It is triggered by saving to PYBFLASH.

8-Dale
i`m confirm it!