Page 1 of 1

REPL Prompt very slow

Posted: Tue Jul 05, 2022 9:26 am
by mike1098
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

Re: REPL Prompt very slow

Posted: Wed Jul 06, 2022 12:27 am
by KJM
What ide you using Michael? I've used the 8286 on Thonny, uPyCraft & Atom & always found the repl fairly fast.

Re: REPL Prompt very slow

Posted: Wed Jul 06, 2022 2:23 am
by jimmo
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?)

Re: REPL Prompt very slow

Posted: Thu Jul 07, 2022 8:20 am
by mike1098
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

Re: REPL Prompt very slow

Posted: Thu Jul 07, 2022 3:57 pm
by mike1098
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

Re: REPL Prompt very slow

Posted: Thu Jul 07, 2022 6:51 pm
by mike1098
Hello,

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

regards

Michael