Quantcast
Viewing all articles
Browse latest Browse all 4899

General • Adding storage to the Pico

Hi,

happy new year. Image may be NSFW.
Clik here to view.
:-)


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.

Statistics: Posted by picocpp — Sun Jan 05, 2025 5:34 am



Viewing all articles
Browse latest Browse all 4899

Trending Articles