Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

General • Re: Adding storage to the Pico

$
0
0
Hi,

happy new year. :-)

I am currently working on this project: https://github.com/qubit999/senfOS

I have a working example of a baremetal tls https server that serves static and dynamic pages with server side includes from a tiny filesystem that is generated during compilation time.

I figured out that if I had to store guestbook entries I had to write them either in flash memory or in RAM.

Which microsd card module (cheap, <25$) can you recommend that works with Pico 2w? And would it be possible to access files on the microsd card with a higher level API since working on memory-level is a bit complex?

I'm also thinking about writing into RAM because after every reboot RAM is empty (data can be lost that's not an issue). In case I decide to write into RAM, what are general good practices when doing that? I would use a struct array with email, message, timestamp to hold the guestbook entries and whenever a specific size is hit, it will stop accepting messages.

Also, I want to add that I noticed that the default linker script sizes the flash memory to 2048k and the RAM to 256k which means that even though you might have a Raspberry Pico 2 or 2w, your uf2 image can only be the size of 2048k and the RAM couldn't be used fully. But I'm not 100% sure about that, maybe you can give me an insight.

Thank you in advance.
This one I have seen before, and while it also has VGA output, which may be useful for you, it also has a microSD card slot. It is about $22 USD, on pishop.us. I am in Canada, so it would probably cost more in CAD, but I'm assuming you meant USD when you said that you wanted it to be <$25.

Link: https://www.pishop.us/product/pimoroni- ... demo-base/

Also, I saw on the GitHub that it is an OS, and I saw in the photo you are using an OLED display for the Pico. Maybe if you'd like, you can add an optional feature to use it on a VGA monitor.

Also, just to add: senfOS looks like a cool project!

Hope this helps! :D

Statistics: Posted by Panda2344 — Wed Jan 08, 2025 1:17 am



Viewing all articles
Browse latest Browse all 3923

Trending Articles