Micropython does not restart with Ctrl/D

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
hybotics
Posts: 33
Joined: Tue Apr 03, 2018 2:58 am
Contact:

Micropython does not restart with Ctrl/D

Post by hybotics » Tue Nov 27, 2018 9:30 pm

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

HermannSW
Posts: 197
Joined: Wed Nov 01, 2017 7:46 am
Contact:

Re: Micropython does not restart with Ctrl/D

Post by HermannSW » 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.
After flashing the 1.9.4 7/18/2018 version the issue was gone:
https://github.com/Hermann-SW/webrepl/issues/3
Pico-W Access Point static file webserver:
https://github.com/Hermann-SW/pico-w

Tiny MicroPython robots (the PCB IS the robot platform)
viewtopic.php?f=5&t=11454

webrepl_client.py
https://github.com/Hermann-SW/webrepl#webrepl-shell

hybotics
Posts: 33
Joined: Tue Apr 03, 2018 2:58 am
Contact:

Re: Micropython does not restart with Ctrl/D

Post by hybotics » 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

Jonwalter
Posts: 6
Joined: Mon Apr 09, 2018 12:41 pm
Contact:

Re: Micropython does not restart with Ctrl/D

Post by Jonwalter » Wed Nov 28, 2018 10:59 pm

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!

Post Reply