Can’t access filesystem/run scripts in MicroPython on P2-EC32MB (works in REPL, but Mu shows error)
Hi everyone,
I’m trying to run MicroPython on a Parallax P2-EC32MB Edge Module using a Mini Breakout Board and a Prop Plug
. The device connects fine, and I can access the REPL using the Mu Editor (v1.2.0), but I can’t run scripts or access the filesystem.
Setup:
1.  Board: P2-EC32MB Edge Module (32 MB PSRAM + 16 MB SPI Flash)
2.  Breakout: Parallax Mini Breakout Board
3.  Connection: Prop Plug (USB-Serial)
4.  Firmware: MicroPython v1.13-8-g4b51b34d8-dirty (2020-10-28, P2 BOARD with Propeller2 P2X8C4M64P)
5.  Editor: Mu 1.2.0 (ESP MicroPython mode, COM port detected)
6.  Host OS: Windows 11.
I tried following the instructions on this site "https://www.parallax.com/propeller-2/get-started/micropython"
What works:
The board connects and shows the REPL prompt. I can type commands interactively, e.g.:
print("Hello world")
Hello world
The REPL also reports the correct MicroPython version for the Propeller 2.
What doesn’t work:
When I click on “Files” in Mu, I get this popup:
Running a script gives this error:
where the REPL becomes locked and I have to restart it.
In the REPL, importing the os results in:
So it seems there’s no filesystem detected by MicroPython.
I'm using the ESP mode in Mu editor
From what I can tell, the version of MicroPython I have might not include the flash storage utilities (OzFFS) or SPI flash driver for the EC32MB module. The EC board has 16 MB SPI flash and 32 MB PSRAM, but perhaps MicroPython isn’t set up to mount that flash as a filesystem.
Questions:
- Does the standard P2 MicroPython build support the P2-EC32MB’s SPI flash for filesystem operations (os.listdir(), save, etc.)?
- If not, is there a special MicroPython build or a driver (like the “Flash File System Driver” demo) that I need to flash?
- Has anyone successfully used Mu’s “Files” feature or run uploaded scripts on the P2-EC32MB?
Thank you in advance

 
                            
Comments
Well, it's been a minute, but looks like was using the other version of Micropython with Mu:
https://forums.parallax.com/discussion/169862/micropython-for-p2/p21
This was the P2-RiscV version. Think there should be executables and source here somewhere...
Hi Rivergood,
The P2 Native Micropython build goes back 13 or 14 versions now, to a time before littlefs being implemented. We put OzFFS in there to plug the gap but this was something fairly minimal to plug a need at the time. It just resided in the standard 128Mb flash common to all boards (P2Edge-32MB included).
I don't recall trying Mu's 'files feature', I think this likely makes use of the ability of RP2040 to emulate a flash drive, which we never did with the P2 native Micropython, it was also prior to tinyusb being folded into Micropython.
None of this probably helps you much, sorry. Is Mu required for what you need to do? A lot of the MP work we did was actually with a keyboard and monitor attached to the P2, I think some features were only available this way. If you can tell us a bit more about what you're hoping to do we can at least comment on whether there's a way.