Putty REPL not working

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
rbli
Posts: 6
Joined: Sun Nov 09, 2014 5:19 am

Putty REPL not working

Post by rbli » Sun Jan 25, 2015 1:36 pm

how to troubleshoot Putty REPL not working. Empty window, no response.

rbli
Posts: 6
Joined: Sun Nov 09, 2014 5:19 am

Re: Putty REPL not working

Post by rbli » Sun Jan 25, 2015 1:42 pm

this looks related, but no solution/troubleshooting is given:

https://github.com/micropython/micropython/issues/587

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

Re: Putty REPL not working

Post by dhylands » Sun Jan 25, 2015 7:16 pm

One thing to try is to reset the file system on the pyboard.

Use Mode 3 boot mode as described here: http://docs.micropython.org/en/latest/general.html

It is possible to put commands in your boot.py that disables the REPL over USB serial. This will wipe all of that out.

rbli
Posts: 6
Joined: Sun Nov 09, 2014 5:19 am

Re: Putty REPL not working

Post by rbli » Wed May 06, 2015 1:57 pm

Tried Factory reset several times. One time it worked but for little. Neither HyperTerminal nor Putty are connecting. Tried last advice in this (https://github.com/micropython/micropython/issues/587) thread but after a while problem occured again.

jamesito
Posts: 1
Joined: Mon Jun 22, 2015 7:07 pm

Re: Putty REPL not working

Post by jamesito » Mon Jun 22, 2015 7:12 pm

I´m having the same exact problem. Do anyone knows how to fix it?

fonzie
Posts: 1
Joined: Fri Dec 21, 2018 5:35 pm

Re: Putty REPL not working

Post by fonzie » Fri Dec 21, 2018 5:42 pm

I was having the same issue with a NodeMCU board: a blank screen in Putty and I could not type, but no connection error.
After narrowing the problem to the flashing process (other flashes such as sonoff was working fine) I noticed that you have to use the exact options in esptool to flash the board:

esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-20170108-v1.8.7.bin

taken from:

http://docs.micropython.org/en/v1.9.4/e ... intro.html

after that it worked flawlessly.

r32ando
Posts: 1
Joined: Tue Oct 08, 2019 9:17 pm

Re: Putty REPL not working

Post by r32ando » Tue Oct 08, 2019 9:36 pm

SOLVED on windows

Just getting my feet wet with pyboard as well and had this non responsive repl problem.

I like others, probably have loaded some code into main.py and got something running. I then tried the next more complicated serial connection with putty. This is what was causing the unresponsiveness in the putty window.

I resolved the issue by both:-

1. clearing the contents of the main.py file so nothing is running
or
2. pressing CTRL-C in the non responsive putty window once connected, to keyboard interrupt the running program

The repl >>> appeared in the putty window in both situations :)

It appears that on windows, the serial connection wont give a repl response if the cpu is busy.

I hope this helps some other newbies, and I cant believe this is not in bold red on the serial connection instructions.

Mark Ando

mafaa
Posts: 3
Joined: Sun Dec 15, 2019 3:56 pm

Re: Putty REPL not working

Post by mafaa » Sun Dec 15, 2019 4:03 pm

Very useful for the beginners.
I can able to connect with PuTTY

Post Reply