Skip to content

Commit

Permalink
Add Flexspi Storage Bus Driver
Browse files Browse the repository at this point in the history
- Flexspi NOR Storage Bus Driver
- Example Storage Service
  • Loading branch information
Shaibal-Microsoft committed Mar 10, 2025
1 parent 66949e8 commit 7e382e0
Show file tree
Hide file tree
Showing 6 changed files with 1,954 additions and 11 deletions.
22 changes: 13 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ default = ["mimxrt685s", "rt"]
## [`rp-pac`](https://docs.rs/crates/rp-pac). This brings in the
## [`cortex-m-rt`](https://docs.rs/cortex-m-rt) crate, which adds
## startup code and minimal runtime initialization.
rt = [
"mimxrt685s-pac?/rt",
"mimxrt633s-pac?/rt",
]
rt = ["mimxrt685s-pac?/rt", "mimxrt633s-pac?/rt"]

## Enable [defmt support](https://docs.rs/defmt) and enables `defmt`
## debug-log messages and formatting in embassy drivers.
Expand Down Expand Up @@ -57,6 +54,7 @@ _mimxrt685s = []
_mimxrt633s = []

[dependencies]
storage-bus-service = { git = "https://github.com/Shaibal-Microsoft/embedded-services" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy" }
embassy-time-driver = { git = "https://github.com/embassy-rs/embassy", optional = true }
embassy-time-queue-utils = { git = "https://github.com/embassy-rs/embassy", optional = true }
Expand All @@ -76,8 +74,6 @@ critical-section = "1.1"
chrono = { version = "0.4", default-features = false, optional = true }
embedded-io = { version = "0.6.1" }
embedded-io-async = { version = "0.6.1" }
embedded-storage = { version = "0.3" }
embedded-storage-async = { version = "0.4.1" }
rand_core = "0.6.4"
fixed = "1.23.1"

Expand All @@ -87,13 +83,21 @@ embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = { version = "1.0" }
embedded-hal-nb = { version = "1.0" }

mimxrt600-fcb = "0.1.0"
document-features = "0.2.7"
paste = "1.0"

# PACs
mimxrt685s-pac = { version = "0.2.2", optional = true, features = ["rt", "critical-section", "defmt"] }
mimxrt633s-pac = { version = "0.2.0", optional = true, features = ["rt", "critical-section", "defmt"] }
mimxrt685s-pac = { version = "0.2.2", optional = true, features = [
"rt",
"critical-section",
"defmt",
] }
mimxrt633s-pac = { version = "0.2.0", optional = true, features = [
"rt",
"critical-section",
"defmt",
] }

[dev-dependencies]
embassy-executor = { git = "https://github.com/embassy-rs/embassy" }
Expand Down
3 changes: 3 additions & 0 deletions examples/rt685s-evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ embassy-time = { git = "https://github.com/embassy-rs/embassy", features = [
"defmt",
"defmt-timestamp-uptime",
] }
storage-bus-service = { git = "https://github.com/Shaibal-Microsoft/embedded-services" }
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = "1.0.0"
futures = { version = "0.3.30", default-features = false, features = [
"async-await",
] }
embedded-storage = { version = "0.3" }
embedded-storage-async = { version = "0.4.1" }
mimxrt600-fcb = "0.1.0"
rand = { version = "0.8.5", default-features = false }

Expand Down
4 changes: 2 additions & 2 deletions examples/rt685s-evk/memory.x
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ SECTIONS {
KEEP(* (.biv))
. = ALIGN(4);
} > BIV

.keystore : {
. = ALIGN(4);
KEEP(* (.keystore))
. = ALIGN(4);
} > KEYSTORE
}
}
Loading

0 comments on commit 7e382e0

Please sign in to comment.