Raspberry Pi Pico: how to access the filesystem

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
JumpZero
Posts: 54
Joined: Mon Oct 30, 2017 5:54 am
Location: Arcachon - France

Re: Raspberry Pi Pico: how to access the filesystem

Post by JumpZero » Wed Jan 27, 2021 12:19 pm

Roberthh wrote:
Wed Jan 27, 2021 9:59 am
If on the target a file board.py exists, which define a symbol called name with the name of that board, pyboard mounts the board under that name. e.g a board,py file with the content:

name = "esp32"

causes the board mounter under the directory /esp32. Side effect: If you use:

name = ""

the board will be mounted under /, but no files can be copied to that place. Using e.g. esp32 works.
Thanks for that! Just tried and yes it works (name = "esp8266")
Nice fonctionnality

JumpZero
Posts: 54
Joined: Mon Oct 30, 2017 5:54 am
Location: Arcachon - France

Re: Raspberry Pi Pico: how to access the filesystem

Post by JumpZero » Wed Jan 27, 2021 12:22 pm

Roberthh wrote:
Wed Jan 27, 2021 10:21 am
I CAN edit files & write them back with the linux version of my pye editor.
Some time ago I had no success trying your pye editor. But reading this now it seems I misunderstood.
pye runs on the linux host, not on the micropython device itself?

edit: my Raspberry Pi Pico isn't yet arrived. Ordered last Thursday (1st day on sale) coming by Int'l mail from UK to France... Still waiting :(

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Raspberry Pi Pico: how to access the filesystem

Post by Roberthh » Wed Jan 27, 2021 12:30 pm

Pye is designed to run on Micropython boards. For the sake of completeness, there is also a Linux version.

JumpZero
Posts: 54
Joined: Mon Oct 30, 2017 5:54 am
Location: Arcachon - France

Re: Raspberry Pi Pico: how to access the filesystem

Post by JumpZero » Wed Jan 27, 2021 6:11 pm

Ok thanks, I think I was missing of RAM. I'll try again when I'll receive the Pico.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Raspberry Pi Pico: how to access the filesystem

Post by Roberthh » Wed Jan 27, 2021 6:18 pm

I had to make a specific vetsoon for the pico, because the standard build does not include the module re. It is in the git repository.

User avatar
Angainor
Posts: 15
Joined: Thu Sep 24, 2020 9:14 am

Re: Raspberry Pi Pico: how to access the filesystem

Post by Angainor » Sat Jan 30, 2021 3:02 pm

Same issue here I guess.

Got a pico, wanted to use rshell. repl works fine, but cp to the /pyboard creates an empty file with timeout error.

Installed thonny, that copied the file ok.

However I'd like to use the "usual" simple rshell, so following that thread.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Raspberry Pi Pico: how to access the filesystem

Post by Roberthh » Sat Jan 30, 2021 3:37 pm


User avatar
Angainor
Posts: 15
Joined: Thu Sep 24, 2020 9:14 am

Re: Raspberry Pi Pico: how to access the filesystem

Post by Angainor » Sat Jan 30, 2021 3:55 pm

Awesome, thanks!

Post Reply