REPL Prompt very slow

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
mike1098
Posts: 4
Joined: Tue Jul 05, 2022 8:37 am

REPL Prompt very slow

Post by mike1098 » Tue Jul 05, 2022 9:26 am

Hello,

First let me say many thanks to all contributors of micropython. It helps me a lot to develop code for MCUs.
I developed my project on a LUA NodeMCU and now I want to transfer the code to a Espressif ESP-WROOM-02 ESP8266 to have a smaller form factor.
It was possible to install micropython on the ESP-WROOM-02 without any problem. I first cleared the flash and then transferred the firmware. So far that looked OK but if I access REPL its very slow and didnt accept some characters or even swallow them. With copy paste it works somehow but not so usable to test things like wifi connection or GPIOs.

Anyone an idea why REPL doesnt work on the ESP-WROOM-02 board?

Any help is much appreciated.

regards

Michael

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: REPL Prompt very slow

Post by KJM » Wed Jul 06, 2022 12:27 am

What ide you using Michael? I've used the 8286 on Thonny, uPyCraft & Atom & always found the repl fairly fast.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: REPL Prompt very slow

Post by jimmo » Wed Jul 06, 2022 2:23 am

mike1098 wrote:
Tue Jul 05, 2022 9:26 am
Espressif ESP-WROOM-02 ESP8266
That's just the module right? What did you use to connect to the UART? (i.e. FTDI etc?)

mike1098
Posts: 4
Joined: Tue Jul 05, 2022 8:37 am

Re: REPL Prompt very slow

Post by mike1098 » Thu Jul 07, 2022 8:20 am

Hello,

I use 'screen /dev/ttyUSB0 115200' and for development https://tinkerdoodle.cc on both same issue.

In Thonny I got a timeout:

Code: Select all

raise TimeoutError("Reaction timeout. Bytes read: %s" % self._read_buffer)
TimeoutError: Reaction timeout. Bytes read: bytearray(b'')
The TTL converter use a ch341-uart chip. The NodeMCU is using the same chip and this board is working with Thonny very well.

Thanks

Michael

mike1098
Posts: 4
Joined: Tue Jul 05, 2022 8:37 am

Re: REPL Prompt very slow

Post by mike1098 » Thu Jul 07, 2022 3:57 pm

I did a couple of tests with Arduino IDE and also having issue there. Upload of code sketch works well but serial communication even with lower baud rate is not stable.
I am currently using power from the TTL converter and suspect that maybe its not strong enough for runtime. I will test later with a reliable power source.

Thank you

Michael

mike1098
Posts: 4
Joined: Tue Jul 05, 2022 8:37 am

Re: REPL Prompt very slow

Post by mike1098 » Thu Jul 07, 2022 6:51 pm

Hello,

After connecting a "real" power source all works fine.
Thank you and sorry to bother you for nothing.

regards

Michael

Post Reply