The Raspberry Pi Pico has 2MB flash storage.
It’s not straight forward to google how much of that is taken up by micropython, but it seems it may be about 600 kB pico memory - Raspberry Pi Forums. Also, the image e.g. ‘rp2-pico-20220618-v1.19.1.uf2’ is about 600kB; I guess that might translate into that much flash usage.
I calculate 2*1024-600 = 1448 kB.
However, under Thonny, the free space is reported as 848 kB.
Any ideas why it’s that low?
It’s an artifact of how python is stored in flash, 1mb is reserved for the python interpreter and running programs.the remainder is shown as available space for saved files and additional libraries.
Ref: Overview | Getting Started with Raspberry Pi Pico and CircuitPython | Adafruit Learning System
Hi @Nox ,
I suppose there isn’t anything that could be done about it? I’m running a data logging application where I’m about 200 kB short of storage for data. With 1448 kB, I’d have plenty, but with 848 kB, I don’t have enough.
For data-logging, get yourself a 3-4 Euro SD-card breakout and attach it using SPI. The internal flash is not optimal for this kind of usage.
@bablokb - I am toying with that idea… what are the chances of soldering something to the SPI connector to the back of this: Enviro Indoor (Pico W Aboard) - Enviro Indoor Only ? I’m thinking of trying of this… :)
Looking at the schematic, it seems that GP10-GP15 are not used. This is SPI1. and there is free space on the back (if the usb-connector is on the top, these pins are on the lower left side. You don’t need all of them).
I had success with single-row female sockets. The pins of these sockets are just at the correct height of the SMD-soldered Pico. Using pins instead of sockets works also, but sockets are easier because the socket is lying flat on the pcb. Don’t use excessive heat.
Only one side of the pico is free - the other side is covered by plastic. So that would mean that the female sockets cannot be soldered?
This is a misunderstanding. Of course the lower side of the pico is soldered to the board. But you would solder the socket to the side of the pico, not to the top. So the socket is flat on the board (“plastic” as you call it), the pins are facing to the pico and the openings for the wires are facing outside.
That’s really helpful. When you say ‘pins’, you mean a header, right, maybe a right-angle one? Or do you mean just solder thicker wires?
I’ve yet to check the pins, but probably they won’t be in the required order for the sd card holder anyway… Just to add, I’m thinking of e.g. this Introduction | Micro SD Card Breakout Board Tutorial | Adafruit Learning System.
I will post an image on Thursday. Then it should be clear.
As promised, here are two images. This is not your board, it is the badger2040w, which is physically similar. As I have written in a previous post, I would recommend a simple single row socket.
Of course you could also solder wires, or pin-headers or whatever. This depends on your soldering skills and use-case. But IMHO socket solution is the simplest. You could also add some glue to give some additional support, but that is not really necessary.
In the following images the socket is not soldered yet. And it is also not the right location for your needs.
@bablokb - that is really really helpful - I just couldn’t picture it, now I know what to do. Thank you!