Can't get REPL prompt. Blank REPL with empty main.py file

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
tomrogue
Posts: 5
Joined: Mon Jun 29, 2015 11:13 pm

Can't get REPL prompt. Blank REPL with empty main.py file

Post by tomrogue » Mon Jun 29, 2015 11:25 pm

Hey there,

I am ssh-ed into a system that is connected to a Pyboard.
I was able to get the REPL just fine for a while. Then I mounted the Pyboard in order to alter the main.py file, and now I can't get the ">>>" prompt back when I run "sudo screen /dev/ttyACM0". I have read the other post on this forum with a similar issue that was solved by stopping a script that was running on the board. So I went back into the main.py file and wiped the file completely and unmounted the device successfully. Still couldn't get the ">>>" to show up. I have tried crtl-c, ctrl-d and many other commands to no avail. I would factory reset the board but I don't have physical access to it as I'm working remotely. Does anyone have any suggestions or a explanation as to what might be happening?

thanks in advance :)

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Can't get REPL prompt. Blank REPL with empty main.py file

Post by dhylands » Tue Jun 30, 2015 6:13 am

Perhaps the main.py isn't really empty?

When you use USB Mass Storage, if you don't eject the board, then I've seen cases where the host files don't get written to the pyboard properly.

I know that I've run into lots of situations (typically involving interrupts) where the board will hard lockup and requires a hard reset to recover.

I normally don't write main.py and instead just copy my file to test to some other name like foo.py and use import foo from the REPL to test it.

tomrogue
Posts: 5
Joined: Mon Jun 29, 2015 11:13 pm

Re: Can't get REPL prompt. Blank REPL with empty main.py file

Post by tomrogue » Fri Jul 03, 2015 7:08 pm

Thanks Dave, you were totally right. problem solved :)

Post Reply