Store read-only data in flash to save SRAM space: avr-progmem
#331
Rahix
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Shamelessly advertising other peoples projects here. @Cryptjar has built a crate to painlessly store data in "PROGMEM" which means in the flash memory, next to the program code. By default, read-only data is still stored in SRAM which will quickly use up all the available space. With this crate, it can be moved to flash instead. And as a bonus, it provides quite a nice API to do this.
Find it here: https://crates.io/crates/avr-progmem
Beta Was this translation helpful? Give feedback.
All reactions