Expand description
Minimal startup / runtime for HPMicro MCUs.
§Getting Start
cargo add hpm-rt --build
§Example
Run in RAM, usually used when debugging.
// build.rs
use hpm_rt::*;
fn main() {
RuntimeBuilder::from_ram(Family::HPM6700_6400)
.build()
.unwrap();
println!("cargo:rerun-if-changed=build.rs");
}
Here is a minimal example of booting from flash on the HPM6750EVKMINI board.
// build.rs
use hpm_rt::*;
fn main() {
let xpi_nor_cfg = XpiNorConfigurationOption::new();
RuntimeBuilder::from_flash(Family::HPM6700_6400, xpi_nor_cfg)
.xpi0_flash_size(8 * 1024 * 1024)
.build()
.unwrap();
println!("cargo:rerun-if-changed=build.rs");
}
Modules§
- Family
- HPMicro MCU family memory info
Structs§
- Device
- Device definition
- Memory
- Memory definition
- Runtime
Builder - Boot Image builder
- XpiNor
Configuration Option - XPI NOR flash configuration info
Enums§
- Flash
Interface - Flash interface type
- Flash
Size - Flash size
- Flash
Type - Flash type
- IOVoltage
- Flash I/O Voltage
- Instance
- Indicate which XPI instance is used
- Memory
Type - Memory partitions.
- PinGroup
- XPI pin group
- Port
Connection - XPI connection type
- QuadIO
Enable Sequence - Quad I/O enable sequence
- Sector
Erase Size - Sector erase size
- Sector
Size - Sector size