"Not enough memory" when saving from editor in PicoMite

I understand that when I hit F1 or F2 in the editor in PicoMite it’s not immediately saving to disk.

Even so, if I edit an exiting file and hit F1 or F2, I get a “Not enough memory” error. This is with the stock Pico 1 that ships with it, running the PicoMite build that comes flash.

Am I missing something? How do I edit an existing file without this error?

Ah. So if I explicitly run edit “filename.bas” it should allow me to save like I want it to?

And then after saving and exiting or saving and running (F1/F2) I need run save “filename.bas” again?

I ran into this after upgrading to the PicoMite_PICO_V6.00.02RC23.uf2 firmware. But I haven’t fully explored it yet. I usually save everything to the B: drive (SD card) anyway.

Saving from the editor only saves to temporary core ram to execute and edit again in quick succession for program development… To permanently save your file yes you must enter from the prompt 'save "filename (it will append .bas if ommited and final quote not needed). It will save to the root of your current drive (B: for SD card) Three additional flash areas exist on the core itself, 1-3. One and two can contain what you like, maybe an autorun program. Slot 3 is usually used for ‘library’ routines, functions or anything you want to run before every program such as ‘option angle degrees’…

1 Like

What I’ve figured out is this only seems to happen if I edit a file on b: and attempt to save. Editing and saving on the Pi Pico flash doesn’t cause this.

Maybe the filesystem on your SD card is full or corrupt?

I can copy or create files just fine, and it’s the 32gb card that came with it. It’s only updating that errors out.

I’ve never used MMBASIC ─ does it provide a way to copy files between A: and B:, so you could potentially initially save your files on A: and then copy them onto B:?

Yep! The built in flash works fine and I can copy over. I’d prefer to work solely off the SD card but I’ve been getting by for now.

MMBASIC works really well. I think I like it more than micropython for ease of development.

1 Like