can't see files on pico

486 views
Skip to first unread message

Bent T. Jensen

unread,
Jun 11, 2023, 9:22:41 PM6/11/23
to thonny
I am new to Thonny, but everything worked fine but then ak=ll of the sudden I no longer get the 'save' pupop with the choise saving to the computer or to the pico. similarly, I can't see the main.py, thatI managed to save it on pico, but forgot how. so I cannot update the main.py code. Any idea what I am doing wrong?
thanks

Paul Naish

unread,
Jun 12, 2023, 12:18:32 PM6/12/23
to thonny
Apologies. I replied directly to @benttor (OP) directly instead of 'Reply All'. Unfortunately, I can't find a way to retrieve that message.
In the messge, I suggested ensuring the View->Files was open to try a PICO refresh; The interpreter was pointed properly.

Here was @benttor's reply

```
thank you for your reply. I wasn't able to make it work with your suggestions. Added some more details below:

I am running thommy v. 4.1.0 on a mini Mac (macOS v. 10.15.7), and raspberry pi pick connected with USB. Not sure what ‘pointing to remote micropython interpreter’ means. In tools->options->interpreter the pull-down shows only ‘Board in FS mode. @ /dev/cu.usbmodem14301’, ‘<try to detect port automatically>’, and ‘<WebREPL>’.

'Board n FS mode' and 'try detect automatically' gives me this in the shell:
"PROBLEM IN THONNY'S BACK-END: Internal error (serial.serialutil.SerialException: write failed: [Errno 6] Device not configured).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.
Process ended with exit code 0."

WebREPL shows this URL: ws://192.168.4.1:8266/ and shows (only copied the beginning):
"

Could not interrupt current process. Please wait, try again or select Stop/Restart!
Traceback (most recent call last):
  File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websockets/legacy/client.py", line 655, in __await_impl_timeout__
    return await self.__await_impl__()
  File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in __await_impl__
    _transport, _protocol = await self._create_connection()
  File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection"
```
 I would suggest your review Getting started with Raspberry Pi Pico. I'm not sure what's happening here. Have you installed the firmware?

In Thonny, you should see something like the following in the pulldown

Untitled.png



Reply all
Reply to author
Forward
0 new messages