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!
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?
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.