rust-embedded / rust-embedded/cortex-m
Provide storage section for writable flash memory
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 202
- Avg merge
- 6d 2h
- Merged PRs (30d)
- 2
Description
This may be getting a bit too complex to call "minimal", but to support applications that require some permanent storage there needs to be a section defined for that. This probably requires adding the flash page size into memory.x, then having a section something like
.storage BLOCK(_page_size) (NOLOAD) :
{
FILL(0xFF)
*(.storage .storage.*)
. = ALIGN(_page_size);
} > FLASH
If possible, aligning in between each .storage.* section would be wonderful to allow having separately erasable sections (although, I don't know any way to do so).
(Note, I have only used flash storage on the nrf51, I assume other cortex-m devices behave similarly, but this may not be general enough).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the linker configuration in memory.x and how Cortex-M flash layouts are currently defined. Determine whether a page-size-backed .storage section can be added generally, including alignment between storage subsections where possible. Done means applications can place permanent data in the section with flash-page alignment and the approach is suitable beyond the nrf51.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100