I’m working on Micropython and Thonny.
I have followed you instructions and it is working,
just when I say %lsdevice or %cat
Unknown command: cat
Unknown command: lsdevice
the command are unknown, can you help me?
I’m on Windows 10
thanks in advance
Where are you typing those commands? On the Shell, right?
And is the Thonny IDE finding the ESP32?
If you go to Device > Show device’s boot script, does it respond to that command?
I’m sorry for the delay in my response.
Great you’re trying.
As you can see in my screen cut (in my first intervention), I’m typing it in the Shell just after the 3 >>>
My first concern was to see which files were uploaded to the ESP32.
I can upload and the program (just the intern led blinking) and it is working, and if I unplug the ESP32 and just add power the program is running.
But the Thonny I downloaded is quite different from the one you describe and I found out there is a windows showing files uploaded and files on my PC.
The device option do not have any function, they have been distributed…..
Now to the boot.py file, yes it exist (I don’t know where it came from and the is some lines all starting with a # so it must be a comment not to take care about.
Maybe this courses the problems, but I have not been able to find information about how the boot.py should look like.
It just pops up in the book without any explanation or description of the content.
If your Thonny IDE has a tab for the files, it should also include a folder that shows the files uploaded to the ESP32, right? It should be a new version of Thonny IDE.
The boot.py is automatically loaded into your ESP board when you flash MicroPython firmware and those lines are included in there by default. Those lines should be “uncommented” if you intend to use Web REPL with the ESP32/ESP8266.
I hope this is clear.
Let me know if you have more doubts.
Thanks a lot.
Yes, the new Thonny has not a tab, I’ll call it a window showing the files uploaded.
I now understand, the boot.py is generated automatically with comment sign for each line. Those lines should be uncommented for Web REPL.
I’m moving on in my training;-)