Skip to content

SAMD: Support SAMD internal flash and QSPI flash simultaneously #15449

Closed Answered by ironss-iotec
ironss-iotec asked this question in SAMD
Discussion options

You must be logged in to vote

It turns out that about 50 lines of Micropython gives me a Partition() class that lets me set the offset and size of a number of partitions in a Flash(). The Partition() class

  • uses the Flash() blockdev API to read, write and erase the flash hardware
  • provides a raw-flash-like API to read, write and erase at any offset in its allocated region, calculating the block_num to pass to the underlying Flash() blockdev.
  • provides a blockdev API (readblocks, writeblocks and ioctl) that gives the size of the partition (rather than the raw flash), and calculates the block_num to pass to the underlying Flash() blockdev

I mount the LFS filesystem on one of the Partition()s, and use the other partitions…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ironss-iotec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SAMD
Labels
enhancement Feature requests, new feature implementations
2 participants
Converted from issue

This discussion was converted from issue #15447 on July 11, 2024 07:59.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy