[INFO] cloning repository https://github.com/fudanchii/stm32f401x [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fudanchii/stm32f401x" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 21f930b393d5c62a80d0e40dd5dac8509bc41db2 [INFO] checking fudanchii/stm32f401x/21f930b393d5c62a80d0e40dd5dac8509bc41db2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffudanchii%2Fstm32f401x" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fudanchii/stm32f401x on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-5-tc1/source/.cargo/config [INFO] started tweaking git repo https://github.com/fudanchii/stm32f401x [INFO] finished tweaking git repo https://github.com/fudanchii/stm32f401x [INFO] tweaked toml for git repo https://github.com/fudanchii/stm32f401x written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/fudanchii/stm32f401x already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal v0.2.1 [INFO] [stderr] Downloaded nb v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7c9eceb958b240fe3b1cb4016f3bc2297c5949779cde61ff318de25b0a1b197a [INFO] running `Command { std: "docker" "start" "-a" "7c9eceb958b240fe3b1cb4016f3bc2297c5949779cde61ff318de25b0a1b197a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7c9eceb958b240fe3b1cb4016f3bc2297c5949779cde61ff318de25b0a1b197a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c9eceb958b240fe3b1cb4016f3bc2297c5949779cde61ff318de25b0a1b197a", kill_on_drop: false }` [INFO] [stdout] 7c9eceb958b240fe3b1cb4016f3bc2297c5949779cde61ff318de25b0a1b197a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c20f3977d7c49929c525414951c30e5e27de696332f662cec26a6f5129194253 [INFO] running `Command { std: "docker" "start" "-a" "c20f3977d7c49929c525414951c30e5e27de696332f662cec26a6f5129194253", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling stm32f401x v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking nb v0.1.1 [INFO] [stderr] Checking embedded-hal v0.2.1 [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/asm.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/asm.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | asm!("bkpt"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/embedded_flash.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | asm!("bkpt"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `asm` is in scope, but it is a module, not a macro [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/asm.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/asm.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | asm!("bkpt"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/embedded_flash.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/peripherals/rcc.rs:53:13 [INFO] [stdout] | [INFO] [stdout] 53 | asm!("nop"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 25 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 26 | #[no_mangle] [INFO] [stdout] 27 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 65 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 66 | #[no_mangle] [INFO] [stdout] 67 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 83 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 84 | #[no_mangle] [INFO] [stdout] 85 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe extern "C" fn system_init() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | rcc::APB1::enable_pwr(); [INFO] [stdout] | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 30 | [INFO] [stdout] 31 | / while !rcc::hsi_ready() { [INFO] [stdout] 32 | | nop(); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 34 | [INFO] [stdout] 35 | rcc::disable_pll(); [INFO] [stdout] | ------------------- non-asm is unsupported in naked functions [INFO] [stdout] 36 | [INFO] [stdout] 37 | / pwr::CR::set( [INFO] [stdout] 38 | | pwr::VOS::Scale2, [INFO] [stdout] 39 | | pwr::ADCDC1::Unset, [INFO] [stdout] 40 | | pwr::MRLVDS::Unset, [INFO] [stdout] ... | [INFO] [stdout] 49 | | pwr::LPDS::Unset, [INFO] [stdout] 50 | | ); [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] 51 | [INFO] [stdout] 52 | rcc::config_pll(rcc::InputClock::HSI); [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | rcc::enable_pll(); [INFO] [stdout] | ------------------ non-asm is unsupported in naked functions [INFO] [stdout] 54 | rcc::use_pll(); [INFO] [stdout] | --------------- non-asm is unsupported in naked functions [INFO] [stdout] 55 | [INFO] [stdout] 56 | / dbgmcu::CR::set( [INFO] [stdout] 57 | | dbgmcu::TraceMode::Async, [INFO] [stdout] 58 | | dbgmcu::TraceIO::Disable, [INFO] [stdout] 59 | | dbgmcu::DebugStandby::Enable, [INFO] [stdout] 60 | | dbgmcu::DebugStop::Enable, [INFO] [stdout] 61 | | dbgmcu::DebugSleep::Enable, [INFO] [stdout] 62 | | ); [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 75 | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 76 | [INFO] [stdout] 77 | / while bss < ebss { [INFO] [stdout] 78 | | ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 79 | | bss = bss.offset(1); [INFO] [stdout] 80 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub unsafe extern "C" fn init_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 95 | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 96 | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 97 | [INFO] [stdout] 98 | / while data < edata { [INFO] [stdout] 99 | | ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 100 | | data = data.offset(1); [INFO] [stdout] 101 | | sidata = sidata.offset(1); [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 113 | zero_bss(); [INFO] [stdout] | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | init_data(); [INFO] [stdout] | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 115 | system_init(); [INFO] [stdout] | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 116 | main() [INFO] [stdout] | ------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/dbgmcu.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 41 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] 46 | | dbgstop: DebugStop, [INFO] [stdout] 47 | | dbgsleep: DebugSleep, [INFO] [stdout] 48 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(undefined_naked_function_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | (*DBGMCU).CR = (tr as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `asm` in this scope [INFO] [stdout] --> src/lib.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | asm!("bkpt"); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `asm` is in scope, but it is a module, not a macro [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 14 + use core::arch::asm; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | | (io as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | | (dbgstandby as u32) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | | (dbgstop as u32) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | | (dbgsleep as u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] 46 | | dbgstop: DebugStop, [INFO] [stdout] 47 | | dbgsleep: DebugSleep, [INFO] [stdout] 48 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] 49 | unsafe { [INFO] [stdout] 50 | / (*DBGMCU).CR = (tr as u32) [INFO] [stdout] 51 | | | (io as u32) [INFO] [stdout] 52 | | | (dbgstandby as u32) [INFO] [stdout] 53 | | | (dbgstop as u32) [INFO] [stdout] 54 | | | (dbgsleep as u32); [INFO] [stdout] | |____________________________________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/embedded_flash.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 10 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | unsafe { [INFO] [stdout] 13 | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 14 | / while ((*FLASH).ACR & FLASH_ACR_LATENCY_2WS) != FLASH_ACR_LATENCY_2WS { [INFO] [stdout] 15 | | asm!("nop"); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/pwr.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 87 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 100 | | lpds: LPDS, [INFO] [stdout] 101 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | (*PWR).CR |= (vos as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | | (adcdc1 as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | | (mrlvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | | (lplvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | | (fpds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | | (dbp as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | | (pls as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | | (pvde as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | | (csbf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | | (cwuf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | | (pdds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | | (lpds as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 100 | | lpds: LPDS, [INFO] [stdout] 101 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] 102 | unsafe { [INFO] [stdout] 103 | / (*PWR).CR |= (vos as u32) [INFO] [stdout] 104 | | | (adcdc1 as u32) [INFO] [stdout] 105 | | | (mrlvds as u32) [INFO] [stdout] 106 | | | (lplvds as u32) [INFO] [stdout] ... | [INFO] [stdout] 113 | | | (pdds as u32) [INFO] [stdout] 114 | | | (lpds as u32); [INFO] [stdout] | |________________________________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 13 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 18 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 19 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 31 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 42 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 43 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 70 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 71 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 91 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 92 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | unsafe { ((*RCC).CR & RCC_CR_HSIRDY) == RCC_CR_HSIRDY } [INFO] [stdout] | -------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | unsafe { [INFO] [stdout] 22 | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 23 | [INFO] [stdout] 24 | / while pll_ready() { [INFO] [stdout] 25 | | asm!("nop"); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | unsafe { [INFO] [stdout] 34 | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 35 | [INFO] [stdout] 36 | / while !pll_ready() { [INFO] [stdout] 37 | | asm!("nop"); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | embedded_flash::setup(); [INFO] [stdout] | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 49 | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 52 | / while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 53 | | asm!("nop"); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 57 | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 60 | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 63 | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | let f_pll_input = match input { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | / let f_pll_input = match input { [INFO] [stdout] 77 | | InputClock::HSI => 16, [INFO] [stdout] 78 | | InputClock::HSE => 8, [INFO] [stdout] 79 | | }; [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] 80 | let n: u32 = 336; [INFO] [stdout] | ----------------- non-asm is unsupported in naked functions [INFO] [stdout] 81 | let m = &f_pll_input; [INFO] [stdout] | --------------------- non-asm is unsupported in naked functions [INFO] [stdout] 82 | let f_vco = &f_pll_input * (&n / m); [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 83 | let p = &f_vco / f_pll; [INFO] [stdout] | ----------------------- non-asm is unsupported in naked functions [INFO] [stdout] 84 | let q = &f_vco / f_peripherals; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | -------------------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | unsafe { (*RCC).CR & RCC_CR_PLLRDY == RCC_CR_PLLRDY } [INFO] [stdout] | ------------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 102 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 110 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 117 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 118 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 125 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 126 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 134 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 142 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 104 | unsafe { [INFO] [stdout] 105 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOAEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | unsafe { [INFO] [stdout] 113 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOBEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | unsafe { [INFO] [stdout] 121 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOCEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | unsafe { [INFO] [stdout] 129 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIODEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 136 | unsafe { [INFO] [stdout] 137 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOEEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 144 | unsafe { [INFO] [stdout] 145 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOHEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 154 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 155 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 157 | unsafe { [INFO] [stdout] 158 | (*RCC).APB1ENR |= RCC_APB1ENR_PWREN; [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `used` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(used)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(asm)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 25 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 26 | #[no_mangle] [INFO] [stdout] 27 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 65 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 66 | #[no_mangle] [INFO] [stdout] 67 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/lib.rs:85:1 [INFO] [stdout] | [INFO] [stdout] 83 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 84 | #[no_mangle] [INFO] [stdout] 85 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[inline]` is ignored on function prototypes [INFO] [stdout] --> src/lib.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | #[inline(never)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub unsafe extern "C" fn system_init() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 29 | rcc::APB1::enable_pwr(); [INFO] [stdout] | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 30 | [INFO] [stdout] 31 | / while !rcc::hsi_ready() { [INFO] [stdout] 32 | | nop(); [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] 34 | [INFO] [stdout] 35 | rcc::disable_pll(); [INFO] [stdout] | ------------------- non-asm is unsupported in naked functions [INFO] [stdout] 36 | [INFO] [stdout] 37 | / pwr::CR::set( [INFO] [stdout] 38 | | pwr::VOS::Scale2, [INFO] [stdout] 39 | | pwr::ADCDC1::Unset, [INFO] [stdout] 40 | | pwr::MRLVDS::Unset, [INFO] [stdout] ... | [INFO] [stdout] 49 | | pwr::LPDS::Unset, [INFO] [stdout] 50 | | ); [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] 51 | [INFO] [stdout] 52 | rcc::config_pll(rcc::InputClock::HSI); [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 53 | rcc::enable_pll(); [INFO] [stdout] | ------------------ non-asm is unsupported in naked functions [INFO] [stdout] 54 | rcc::use_pll(); [INFO] [stdout] | --------------- non-asm is unsupported in naked functions [INFO] [stdout] 55 | [INFO] [stdout] 56 | / dbgmcu::CR::set( [INFO] [stdout] 57 | | dbgmcu::TraceMode::Async, [INFO] [stdout] 58 | | dbgmcu::TraceIO::Disable, [INFO] [stdout] 59 | | dbgmcu::DebugStandby::Enable, [INFO] [stdout] 60 | | dbgmcu::DebugStop::Enable, [INFO] [stdout] 61 | | dbgmcu::DebugSleep::Enable, [INFO] [stdout] 62 | | ); [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 68 | pub unsafe extern "C" fn zero_bss() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | ----------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 75 | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 76 | [INFO] [stdout] 77 | / while bss < ebss { [INFO] [stdout] 78 | | ptr::write_volatile(bss, mem::zeroed()); [INFO] [stdout] 79 | | bss = bss.offset(1); [INFO] [stdout] 80 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:86:1 [INFO] [stdout] | [INFO] [stdout] 86 | pub unsafe extern "C" fn init_data() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | ------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 95 | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 96 | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 97 | [INFO] [stdout] 98 | / while data < edata { [INFO] [stdout] 99 | | ptr::write(data, ptr::read(sidata)); [INFO] [stdout] 100 | | data = data.offset(1); [INFO] [stdout] 101 | | sidata = sidata.offset(1); [INFO] [stdout] 102 | | } [INFO] [stdout] | |_____- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/lib.rs:112:1 [INFO] [stdout] | [INFO] [stdout] 112 | pub unsafe extern "C" fn reset_handler() -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 113 | zero_bss(); [INFO] [stdout] | ----------- non-asm is unsupported in naked functions [INFO] [stdout] 114 | init_data(); [INFO] [stdout] | ------------ non-asm is unsupported in naked functions [INFO] [stdout] 115 | system_init(); [INFO] [stdout] | -------------- non-asm is unsupported in naked functions [INFO] [stdout] 116 | main() [INFO] [stdout] | ------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/dbgmcu.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 40 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 41 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] 46 | | dbgstop: DebugStop, [INFO] [stdout] 47 | | dbgsleep: DebugSleep, [INFO] [stdout] 48 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(undefined_naked_function_abi)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | (*DBGMCU).CR = (tr as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:51:20 [INFO] [stdout] | [INFO] [stdout] 51 | | (io as u32) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:52:20 [INFO] [stdout] | [INFO] [stdout] 52 | | (dbgstandby as u32) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | | (dbgstop as u32) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/dbgmcu.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | | (dbgsleep as u32); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/dbgmcu.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / pub fn set( [INFO] [stdout] 43 | | tr: TraceMode, [INFO] [stdout] 44 | | io: TraceIO, [INFO] [stdout] 45 | | dbgstandby: DebugStandby, [INFO] [stdout] 46 | | dbgstop: DebugStop, [INFO] [stdout] 47 | | dbgsleep: DebugSleep, [INFO] [stdout] 48 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] 49 | unsafe { [INFO] [stdout] 50 | / (*DBGMCU).CR = (tr as u32) [INFO] [stdout] 51 | | | (io as u32) [INFO] [stdout] 52 | | | (dbgstandby as u32) [INFO] [stdout] 53 | | | (dbgstop as u32) [INFO] [stdout] 54 | | | (dbgsleep as u32); [INFO] [stdout] | |____________________________________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/embedded_flash.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 10 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/embedded_flash.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn setup() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | unsafe { [INFO] [stdout] 13 | (*FLASH).ACR |= FLASH_ACR_ICEN | FLASH_ACR_PRFTEN | FLASH_ACR_LATENCY_2WS; [INFO] [stdout] | -------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 14 | / while ((*FLASH).ACR & FLASH_ACR_LATENCY_2WS) != FLASH_ACR_LATENCY_2WS { [INFO] [stdout] 15 | | asm!("nop"); [INFO] [stdout] 16 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/pwr.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 86 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 87 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 100 | | lpds: LPDS, [INFO] [stdout] 101 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:103:27 [INFO] [stdout] | [INFO] [stdout] 103 | (*PWR).CR |= (vos as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:104:20 [INFO] [stdout] | [INFO] [stdout] 104 | | (adcdc1 as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:105:20 [INFO] [stdout] | [INFO] [stdout] 105 | | (mrlvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | | (lplvds as u32) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | | (fpds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | | (dbp as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | | (pls as u32) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | | (pvde as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | | (csbf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | | (cwuf as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:113:20 [INFO] [stdout] | [INFO] [stdout] 113 | | (pdds as u32) [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/pwr.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 114 | | (lpds as u32); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/pwr.rs:88:5 [INFO] [stdout] | [INFO] [stdout] 88 | / pub fn set( [INFO] [stdout] 89 | | vos: VOS, [INFO] [stdout] 90 | | adcdc1: ADCDC1, [INFO] [stdout] 91 | | mrlvds: MRLVDS, [INFO] [stdout] ... | [INFO] [stdout] 100 | | lpds: LPDS, [INFO] [stdout] 101 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] 102 | unsafe { [INFO] [stdout] 103 | / (*PWR).CR |= (vos as u32) [INFO] [stdout] 104 | | | (adcdc1 as u32) [INFO] [stdout] 105 | | | (mrlvds as u32) [INFO] [stdout] 106 | | | (lplvds as u32) [INFO] [stdout] ... | [INFO] [stdout] 113 | | | (pdds as u32) [INFO] [stdout] 114 | | | (lpds as u32); [INFO] [stdout] | |________________________________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 13 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 18 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 19 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:31:1 [INFO] [stdout] | [INFO] [stdout] 30 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 31 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:43:1 [INFO] [stdout] | [INFO] [stdout] 42 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 43 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 70 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 71 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 91 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 92 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn hsi_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | unsafe { ((*RCC).CR & RCC_CR_HSIRDY) == RCC_CR_HSIRDY } [INFO] [stdout] | -------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn disable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | unsafe { [INFO] [stdout] 22 | (*RCC).CR &= !RCC_CR_PLLON; [INFO] [stdout] | --------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 23 | [INFO] [stdout] 24 | / while pll_ready() { [INFO] [stdout] 25 | | asm!("nop"); [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn enable_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | unsafe { [INFO] [stdout] 34 | (*RCC).CR |= RCC_CR_PLLON; [INFO] [stdout] | -------------------------- non-asm is unsupported in naked functions [INFO] [stdout] 35 | [INFO] [stdout] 36 | / while !pll_ready() { [INFO] [stdout] 37 | | asm!("nop"); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn use_pll() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 45 | embedded_flash::setup(); [INFO] [stdout] | ------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 49 | (*RCC).CFGR |= RCC_CFGR_SW_PLL; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 52 | / while (&(*RCC).CFGR & RCC_CFGR_SWS_PLL) != RCC_CFGR_SWS_PLL { [INFO] [stdout] 53 | | asm!("nop"); [INFO] [stdout] 54 | | } [INFO] [stdout] | |_________- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 57 | (*RCC).CFGR &= !RCC_CFGR_HPRE; [INFO] [stdout] | ------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 60 | (*RCC).CFGR |= RCC_CFGR_PPRE1_DIV2; [INFO] [stdout] | ----------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 63 | (*RCC).CFGR &= !RCC_CFGR_PPRE2; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | let f_pll_input = match input { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: referencing function parameters is not allowed in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: follow the calling convention in asm block to use parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:72:1 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn config_pll(input: InputClock) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | / let f_pll_input = match input { [INFO] [stdout] 77 | | InputClock::HSI => 16, [INFO] [stdout] 78 | | InputClock::HSE => 8, [INFO] [stdout] 79 | | }; [INFO] [stdout] | |______- non-asm is unsupported in naked functions [INFO] [stdout] 80 | let n: u32 = 336; [INFO] [stdout] | ----------------- non-asm is unsupported in naked functions [INFO] [stdout] 81 | let m = &f_pll_input; [INFO] [stdout] | --------------------- non-asm is unsupported in naked functions [INFO] [stdout] 82 | let f_vco = &f_pll_input * (&n / m); [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] 83 | let p = &f_vco / f_pll; [INFO] [stdout] | ----------------------- non-asm is unsupported in naked functions [INFO] [stdout] 84 | let q = &f_vco / f_peripherals; [INFO] [stdout] | ------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] ... [INFO] [stdout] 87 | (*RCC).PLLCFGR = (q << 24) as u32 | (input as u32) | (p << 16) as u32 | (n << 6) as u32 | m; [INFO] [stdout] | -------------------------------------------------------------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:93:1 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn pll_ready() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | unsafe { (*RCC).CR & RCC_CR_PLLRDY == RCC_CR_PLLRDY } [INFO] [stdout] | ------------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 101 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 102 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 110 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 117 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 118 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 125 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 126 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 134 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 141 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 142 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn enable_gpioa() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 104 | unsafe { [INFO] [stdout] 105 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOAEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn enable_gpiob() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 112 | unsafe { [INFO] [stdout] 113 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOBEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn enable_gpioc() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | unsafe { [INFO] [stdout] 121 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOCEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub fn enable_gpiod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | unsafe { [INFO] [stdout] 129 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIODEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn enable_gpioe() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 136 | unsafe { [INFO] [stdout] 137 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOEEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn enable_gpioh() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 144 | unsafe { [INFO] [stdout] 145 | (*RCC).AHB1ENR |= RCC_AHB1ENR_GPIOHEN; [INFO] [stdout] | -------------------------------------- non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0736]: attribute incompatible with `#[naked]` [INFO] [stdout] --> src/peripherals/rcc.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 154 | #[naked] [INFO] [stdout] | -------- function marked with `#[naked]` here [INFO] [stdout] 155 | #[inline(always)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the `inline` attribute is incompatible with `#[naked]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: Rust ABI is unsupported in naked functions [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0787]: naked functions must contain a single asm block [INFO] [stdout] --> src/peripherals/rcc.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn enable_pwr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 157 | unsafe { [INFO] [stdout] 158 | (*RCC).APB1ENR |= RCC_APB1ENR_PWREN; [INFO] [stdout] | ------------------------------------ non-asm is unsupported in naked functions [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `used` has been stable since 1.30.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(used)] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm` has been stable since 1.59.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(asm)] [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 74 | let mut bss: *mut _ = addr_of_mut!(__bss_start__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 75 | let ebss: *mut _ = addr_of_mut!(__bss_end__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 94 | let mut data: *mut _ = addr_of_mut!(__data_start__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 95 | let edata: *mut _ = addr_of_mut!(__data_end__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:96:30 [INFO] [stdout] | [INFO] [stdout] 96 | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 96 | let mut sidata: *mut _ = addr_of_mut!(__etext); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 65 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0736, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0736`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f401x` (lib) due to 66 previous errors; 24 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:74:27 [INFO] [stdout] | [INFO] [stdout] 74 | let mut bss: *mut _ = &mut __bss_start__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 74 | let mut bss: *mut _ = addr_of_mut!(__bss_start__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | let ebss: *mut _ = &mut __bss_end__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 75 | let ebss: *mut _ = addr_of_mut!(__bss_end__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | let mut data: *mut _ = &mut __data_start__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 94 | let mut data: *mut _ = addr_of_mut!(__data_start__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | let edata: *mut _ = &mut __data_end__; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 95 | let edata: *mut _ = addr_of_mut!(__data_end__); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/lib.rs:96:30 [INFO] [stdout] | [INFO] [stdout] 96 | let mut sidata: *mut _ = &mut __etext; [INFO] [stdout] | ^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: this will be a hard error in the 2024 edition [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 96 | let mut sidata: *mut _ = addr_of_mut!(__etext); [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 65 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0736, E0787. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0736`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32f401x` (lib test) due to 66 previous errors; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c20f3977d7c49929c525414951c30e5e27de696332f662cec26a6f5129194253", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c20f3977d7c49929c525414951c30e5e27de696332f662cec26a6f5129194253", kill_on_drop: false }` [INFO] [stdout] c20f3977d7c49929c525414951c30e5e27de696332f662cec26a6f5129194253