From eea5c9322f2228d8605beb5b72700c96b0cc54a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Wed, 3 Sep 2025 21:40:07 +0200 Subject: [PATCH 1/5] riscv v0.15.0 --- riscv/CHANGELOG.md | 2 ++ riscv/Cargo.toml | 4 ++-- riscv/macros/Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index 4a278448..14c18258 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.15.0] - 2025-09-04 + ### Added - New convenience `try_new` and `new` associated functions for `Mtvec` and `Stvec`. diff --git a/riscv/Cargo.toml b/riscv/Cargo.toml index db32ab6d..0cae7f10 100644 --- a/riscv/Cargo.toml +++ b/riscv/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv" -version = "0.14.0" +version = "0.15.0" edition = "2021" rust-version = "1.67" repository = "https://github.com/rust-embedded/riscv" @@ -28,5 +28,5 @@ critical-section-single-hart = ["critical-section/restore-state-bool"] critical-section = "1.2.0" embedded-hal = "1.0.0" riscv-pac = { path = "../riscv-pac", version = "0.2.0" } -riscv-macros = { path = "macros", version = "0.2.0", optional = true } +riscv-macros = { path = "macros", version = "0.3.0", optional = true } paste = "1.0.15" diff --git a/riscv/macros/Cargo.toml b/riscv/macros/Cargo.toml index 6b940d6b..43773c7a 100644 --- a/riscv/macros/Cargo.toml +++ b/riscv/macros/Cargo.toml @@ -9,7 +9,7 @@ keywords = ["riscv", "register", "peripheral"] license = "MIT OR Apache-2.0" name = "riscv-macros" repository = "https://github.com/rust-embedded/riscv" -version = "0.2.0" +version = "0.3.0" edition = "2021" [lib] From c2d70e30b6f76b0ac163deacdaa889fd73900043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Wed, 3 Sep 2025 21:41:28 +0200 Subject: [PATCH 2/5] riscv-peripheral v0.4.0 --- riscv-peripheral/CHANGELOG.md | 6 ++++++ riscv-peripheral/Cargo.toml | 4 ++-- riscv-peripheral/src/lib.rs | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/riscv-peripheral/CHANGELOG.md b/riscv-peripheral/CHANGELOG.md index cecd8999..15593aa6 100644 --- a/riscv-peripheral/CHANGELOG.md +++ b/riscv-peripheral/CHANGELOG.md @@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.4.0] - 2025-09-04 + ### Added - Constant methods to access to PLIC and ACLINT registers for HART 0. These new methods are especially convenient for single-HART targets. +### Removed + +- Removed `riscv` reexport. + ## [v0.3.0] - 2025-06-10 ### Changed diff --git a/riscv-peripheral/Cargo.toml b/riscv-peripheral/Cargo.toml index 27b6b6b6..c0caff29 100644 --- a/riscv-peripheral/Cargo.toml +++ b/riscv-peripheral/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv-peripheral" -version = "0.3.0" +version = "0.4.0" edition = "2021" rust-version = "1.75" repository = "https://github.com/rust-embedded/riscv" @@ -16,7 +16,7 @@ license = "ISC" [dependencies] embedded-hal = "1.0.0" paste = "1.0" -riscv = { path = "../riscv", version = "0.14.0" } +riscv = { path = "../riscv", version = "0.15.0" } riscv-pac = { path = "../riscv-pac", version = "0.2.0" } [package.metadata.docs.rs] diff --git a/riscv-peripheral/src/lib.rs b/riscv-peripheral/src/lib.rs index 26bf0803..be677477 100644 --- a/riscv-peripheral/src/lib.rs +++ b/riscv-peripheral/src/lib.rs @@ -3,7 +3,6 @@ #![deny(missing_docs)] #![no_std] -pub use riscv; // re-export riscv crate to allow macros to use it pub use riscv_pac::result; // re-export the result module pub mod common; // common definitions for all peripherals From 5ca859b14320a7ea619e93c86b27948043836d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Wed, 3 Sep 2025 21:41:52 +0200 Subject: [PATCH 3/5] riscv-semihosting v0.2.1 --- riscv-semihosting/CHANGELOG.md | 3 +++ riscv-semihosting/Cargo.toml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/riscv-semihosting/CHANGELOG.md b/riscv-semihosting/CHANGELOG.md index 5e6fae75..e0ebbf6e 100644 --- a/riscv-semihosting/CHANGELOG.md +++ b/riscv-semihosting/CHANGELOG.md @@ -5,8 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.2.1] - 2025-09-04 + ### Changed +- Update riscv to 0.15.0. - Use `cfg(any(target_arch = "riscv32", target_arch = "riscv64"))` instead of `cfg(riscv)`. ### Removed diff --git a/riscv-semihosting/Cargo.toml b/riscv-semihosting/Cargo.toml index 845812ec..127ccf54 100644 --- a/riscv-semihosting/Cargo.toml +++ b/riscv-semihosting/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0" name = "riscv-semihosting" readme = "README.md" repository = "https://github.com/riscv-rust/riscv" -version = "0.2.0" +version = "0.2.1" edition = "2021" rust-version = "1.67" @@ -24,4 +24,4 @@ default = ["jlink-quirks"] [dependencies] critical-section = "1.2.0" -riscv = { path = "../riscv", version = "0.14.0" } +riscv = { path = "../riscv", version = "0.15.0" } From 9926a3d172e9fbe9696dd1545563ab25172e637f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Wed, 3 Sep 2025 21:42:15 +0200 Subject: [PATCH 4/5] riscv-rt v0.16.0 --- riscv-rt/CHANGELOG.md | 3 +++ riscv-rt/Cargo.toml | 6 +++--- riscv-rt/macros/Cargo.toml | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/riscv-rt/CHANGELOG.md b/riscv-rt/CHANGELOG.md index a7192d60..619ee337 100644 --- a/riscv-rt/CHANGELOG.md +++ b/riscv-rt/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.16.0] - 2025-09-04 + ### Added - New `post-init` feature to run a Rust `__post_init` function before jumping to `main`. @@ -16,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Additional feature `no-xie-xip` to work on chips without the XIE and XIP CSRs (e.g. ESP32-C2, ESP32-C3) - Additional feature `defmt` which will implement `defmt::Format` on certain types - Additional feature `pre-default-start-trap` to execute custom code before `_default_start_trap` + ### Changed - `main` function no longer needs to be close to `_start`. A linker script may copy diff --git a/riscv-rt/Cargo.toml b/riscv-rt/Cargo.toml index 28c57bf9..da9b550c 100644 --- a/riscv-rt/Cargo.toml +++ b/riscv-rt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riscv-rt" -version = "0.15.0" +version = "0.16.0" rust-version = "1.67" repository = "https://github.com/rust-embedded/riscv" authors = ["The RISC-V Team "] @@ -24,9 +24,9 @@ targets = [ riscv-target-parser = { path = "../riscv-target-parser", version = "0.1.2" } [dependencies] -riscv = { path = "../riscv", version = "0.14.0" } +riscv = { path = "../riscv", version = "0.15.0" } riscv-pac = { path = "../riscv-pac", version = "0.2.0" } -riscv-rt-macros = { path = "macros", version = "0.5.0" } +riscv-rt-macros = { path = "macros", version = "0.6.0" } defmt = { version = "1.0.1", optional = true } diff --git a/riscv-rt/macros/Cargo.toml b/riscv-rt/macros/Cargo.toml index 837cfcaf..11d7159b 100644 --- a/riscv-rt/macros/Cargo.toml +++ b/riscv-rt/macros/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["riscv", "runtime", "startup"] license = "MIT OR Apache-2.0" name = "riscv-rt-macros" repository = "https://github.com/rust-embedded/riscv" -version = "0.5.0" +version = "0.6.0" edition = "2021" [lib] From 2d90e00effd8c9022ddc9d6d3cb419258dd4719c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas=20Rodr=C3=ADguez?= Date: Mon, 8 Sep 2025 09:12:18 +0200 Subject: [PATCH 5/5] riscv-semihosting: remove riscv dependency --- riscv-peripheral/CHANGELOG.md | 2 +- riscv-rt/CHANGELOG.md | 2 +- riscv-semihosting/CHANGELOG.md | 4 ++-- riscv-semihosting/Cargo.toml | 1 - riscv/CHANGELOG.md | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/riscv-peripheral/CHANGELOG.md b/riscv-peripheral/CHANGELOG.md index 15593aa6..244a22af 100644 --- a/riscv-peripheral/CHANGELOG.md +++ b/riscv-peripheral/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [v0.4.0] - 2025-09-04 +## [v0.4.0] - 2025-09-08 ### Added diff --git a/riscv-rt/CHANGELOG.md b/riscv-rt/CHANGELOG.md index 619ee337..847d066b 100644 --- a/riscv-rt/CHANGELOG.md +++ b/riscv-rt/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [v0.16.0] - 2025-09-04 +## [v0.16.0] - 2025-09-08 ### Added diff --git a/riscv-semihosting/CHANGELOG.md b/riscv-semihosting/CHANGELOG.md index e0ebbf6e..fb266762 100644 --- a/riscv-semihosting/CHANGELOG.md +++ b/riscv-semihosting/CHANGELOG.md @@ -5,11 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [v0.2.1] - 2025-09-04 +## [v0.2.1] - 2025-09-08 ### Changed -- Update riscv to 0.15.0. +- Removed `riscv` dependency, as it was unused. - Use `cfg(any(target_arch = "riscv32", target_arch = "riscv64"))` instead of `cfg(riscv)`. ### Removed diff --git a/riscv-semihosting/Cargo.toml b/riscv-semihosting/Cargo.toml index 127ccf54..af3f44e5 100644 --- a/riscv-semihosting/Cargo.toml +++ b/riscv-semihosting/Cargo.toml @@ -24,4 +24,3 @@ default = ["jlink-quirks"] [dependencies] critical-section = "1.2.0" -riscv = { path = "../riscv", version = "0.15.0" } diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index 14c18258..59dc1adb 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [v0.15.0] - 2025-09-04 +## [v0.15.0] - 2025-09-08 ### Added