From fcdd87f7ef3317faa93ff6039dd96feb820d306f Mon Sep 17 00:00:00 2001 From: QL <35621141+chaosprint@users.noreply.github.com> Date: Sun, 15 Jun 2025 20:35:04 +0200 Subject: [PATCH 1/3] fix: picotool attribute needs unsafe --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dd9af28..b3f458d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,7 +74,7 @@ fn main() -> ! { } /// Program metadata for `picotool info` -#[link_section = ".bi_entries"] +#[unsafe(link_section = ".bi_entries")] #[used] pub static PICOTOOL_ENTRIES: [rp235x_hal::binary_info::EntryAddr; 5] = [ rp235x_hal::binary_info::rp_cargo_bin_name!(), From 6af804bc45c18e62f9289ad1f1e0b4158f43699f Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Mon, 21 Jul 2025 13:08:39 +0900 Subject: [PATCH 2/3] Use edition 2024 by default --- Cargo.toml | 2 +- README.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a12d7ff..0a3c6a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -edition = "2021" +edition = "2024" name = "rp235x-project-template" version = "0.1.0" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index 70e87f6..a8b006a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,9 @@ If you aren't using a debugger (or want to use other debugging configurations),

Requirements

-- The standard Rust tooling (cargo, rustup) which you can install from https://rustup.rs/ +- The standard Rust tooling (cargo, rustup) which you can install from + + Note that, this template targets Rust 2024 edition, which requires Rust 1.85. So, it is recommended to use the latest stable version. - Toolchain support for the cortex-m33 processors in the rp235x (thumbv8m.main-none-eabihf) From 2c1fd2ae74b21a4bbe726b60747cca4e78c98ae9 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Mon, 21 Jul 2025 13:16:13 +0900 Subject: [PATCH 3/3] Format --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b3f458d..82ca3ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use embedded_hal::digital::OutputPin; use panic_probe as _; use rp235x_hal::clocks::init_clocks_and_plls; use rp235x_hal::{self as hal, entry}; -use rp235x_hal::{pac, Clock}; +use rp235x_hal::{Clock, pac}; // Provide an alias for our BSP so we can switch targets quickly. // Uncomment the BSP you included in Cargo.toml, the rest of the code does not need to change.