• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP8266 goes crazy on reset!

Q&A Forum › Category: ESP8266 › ESP8266 goes crazy on reset!
0 Vote Up Vote Down
Enzo Pontone asked 5 years ago

Hi, please help!

Following your text “MicroPython_Programming_with_ESP32_and_ESP8266_V1_2” I’m trying to upload and execute some test scripts.

I tried both with uPyCraft and Thonny. It goes all fine when I exec the scripts from the shell or interact with python statements. I can successfully upload both boot.py and main.py to my ESP8266 but when I press the RST button I get some rows of random characters on the console:

"�$oo���"p��ls$rlp�N���lcn�|����b��no�l��l`�oNl�$`Ns�����#d `�N��c�Nl��|�n��lp�n�r�ܜ��cn�|llc��oN�l�l`�2nol`or���o2$�`p�o�r�����{�#n�|��p��oo�$`�2no$`n{���o#��`r��Nb�� ���2�N천p��o|�ld$l`b��|r��l�N��o�"

and trying to interact again on the console i get the error ”

PROBLEM WITH THONNY’S BACK-END:

Traceback (most recent call last):
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 340, in handle_command
response = handler(cmd)
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 713, in _cmd_get_globals
"{name : repr(value) for (name, value) in globals().items() if not name.startswith('__')}"
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 469, in _evaluate
_, _, value_repr = self._execute_print_expr(expr, prelude, cleanup)
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 466, in _execute_print_expr
return self._execute(script, capture_output)
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 431, in _execute
self._ensure_raw_propmt()
File "B:\Programming\uPython\Thonny\lib\site-packages\thonny\plugins\micropython\backend.py", line 428, in _ensure_raw_propmt
raise TimeoutError("Could not ensure raw prompt")
TimeoutError: Could not ensure raw prompt

I re-flashed “esp8266-20190125-v1.10” and it flashed ok but nothing changed!

I need to go on for my work to be done, please can you tell me how can I solve this issue?

Thanks a lot in advance!

Question Tags: ESP8266, raw prompt, restart
3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello Enzo, I hope you are doing well.

When an ESP8266 restarts, it always prints that debugging gibberish (even in the Arduino IDE). That’s something that can’t be changed, because it’s in the actual chip and not in your firmware (MicroPython or Arduino).

You should ignore that gibberish text.

"�$oo���"p��ls$rlp�N���lcn�|����b��no�l��l`�oNl�$`Ns�����#d `�N��c�Nl��|�n��lp�n�r�ܜ��cn�|llc��oN�l�l`�2nol`or���o2$�`p�o�r�����{�#n�|��p��oo�$`�2no$`n{���o#��`r��Nb�� ���2�N천p��o|�ld$l`b��|r��l�N��o�"

When do you see that Thonny IDE error message?

If you press the STOP button in Thonny IDE, it should restart your board and ignore that error.

Do you always see that error message?

0 Vote Up Vote Down
Enzo Pontone answered 5 years ago

Hi Rui, all fine here. I hope the same for you! Thanks for your answer.

When do you see that Thonny IDE error message?

If I reset by the RST button after the rubbish you told to ignore it responds correctly on the console to my request fron a browser:

"��oܞ��c�b���$#l���l�{�

Connection successful
('10.0.0.190', '255.255.255.0', '10.0.0.4', '10.0.0.4')
Connection successful
('10.0.0.190', '255.255.255.0', '10.0.0.4', '10.0.0.4')
Got a connection from ('10.0.0.5', 62972)
Content = b'GET / HTTP/1.1\r\nHost: 10.0.0.190\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\n\r\n'
Got a connection from ('10.0.0.5', 62973)
Content = b'GET /favicon.ico HTTP/1.1\r\nHost: 10.0.0.190\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0\r\nAccept: image/webp,*/*\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\n\r\n'.

But If I try to interact again on the console (e.g. with a return from keyboard) i get that error.

If you press the STOP button in Thonny IDE, it should restart your board and ignore that error.

Yes, it does.

Do you always see that error message?

Every time I reset by the RST button and after that try to interact via the console.

0 Vote Up Vote Down
Enzo Pontone answered 5 years ago

Hi Rui,

don’t waste more time on this question: after some tries I found that when software is running in the device you can’t interact with the console (unless you inserted explicit keyboard input request in the software, of course).

Thanks.

Enzo

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.