Giter Club home page Giter Club logo

sample-project's People

Contributors

9names avatar dirbaio avatar eolder avatar tacdom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sample-project's Issues

Add hardware probe model to README

It'd be really helpful to people getting started with Rust and the RPi Nano to list what hardware probe model was used in testing this project and how to connect it.

I've successfully used SWD through an RPi4 to the Nano, but not with probe-run.

Either libusb-1.0 not found or no such file or directory

When I run cargo build --release it says:

error: failed to run custom build command for `rp2040-boot2 v0.1.2 (https://github.com/rp-rs/rp2040-boot2-rs?branch=main#dae42b2d)`

Caused by:
  process didn't exit successfully: `/root/sample-project/target/release/build/rp2040-boot2-61537f02950957d3/build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'executing arm-none-eabi-gcc: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /root/.cargo/git/checkouts/rp2040-boot2-rs-b6d9ce848d516f57/dae42b2/build.rs:20:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

When I run cargo install --git https://github.com/rp-rs/probe-run --branch main It says:

error: failed to run custom build command for `hidapi v1.2.3`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installmg5Xss/release/build/hidapi-b9b4d89bf2287c3c/build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBUSB_1.0_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBUSB_1.0_STATIC
  cargo:rerun-if-env-changed=LIBUSB_1.0_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-musl
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_musl
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-musl
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_musl
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-musl
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_musl
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'Unable to find libusb-1.0: "Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"libusb-1.0\"`: No such file or directory (os error 2)"', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/hidapi-1.2.3/build.rs:65:60
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `probe-run-rp v0.1.9 (https://github.com/rp-rs/probe-run?branch=main#9ecd257b)`, intermediate artifacts can be found at `/tmp/cargo-installmg5Xss`

Caused by:
  build failed

error: linking with `rust-lld` failed: exit code: 0xc0000135

Getting the following when trying cargo build/run.

A popup shows up with this text: the code execution cannot proceed because zlib1__.dll was not found. Reinstalling the program may fix this problem.

Then in the terminal it says error: linking with rust-lld failed: exit code: 0xc0000135

See full build bellow.

(win 10, nightly-x86_64-pc-windows-gnu, rustc 1.53.0-nightly (07e0e2ec2 2021-03-24))

C:\projects\embedded\rp-rs\sample-project>cargo build
   Compiling typenum v1.13.0
   Compiling proc-macro2 v1.0.24
   Compiling semver-parser v0.7.0
   Compiling version_check v0.9.3
   Compiling unicode-xid v0.2.1
   Compiling cortex-m v0.7.2 (https://github.com/rust-embedded/cortex-m#87f6c01d)
   Compiling ucd-trie v0.1.3
   Compiling syn v1.0.65
   Compiling stable_deref_trait v1.2.0
   Compiling nb v1.0.0
   Compiling void v1.0.2
   Compiling vcell v0.1.3
   Compiling bitfield v0.13.2
   Compiling debug-helper v0.3.10
   Compiling cortex-m v0.6.7
   Compiling heapless v0.5.6
   Compiling byteorder v1.4.3
   Compiling defmt-parser v0.1.0
   Compiling cortex-m-rt v0.6.13
   Compiling rp2040-pac v0.1.1 (https://github.com/rp-rs/rp2040-pac?branch=main#f4339cb8)
   Compiling panic-probe v0.1.0
   Compiling r0 v0.2.2
   Compiling rp-test v0.1.0 (C:\projects\embedded\rp-rs\sample-project)
   Compiling semver v0.9.0
   Compiling pest v2.1.3
   Compiling nb v0.1.3
   Compiling generic-array v0.14.4
   Compiling volatile-register v0.2.0
   Compiling crc-any v2.3.5
   Compiling hash32 v0.1.1
   Compiling embedded-hal v0.2.4
   Compiling rustc_version v0.2.3
   Compiling rp2040-boot2 v0.1.2 (https://github.com/rp-rs/rp2040-boot2-rs?branch=main#dae42b2d)
   Compiling bare-metal v0.2.5
   Compiling semver-parser v0.10.2
   Compiling quote v1.0.9
   Compiling semver v0.11.0
   Compiling generic-array v0.12.4
   Compiling generic-array v0.13.3
   Compiling defmt v0.1.3
   Compiling as-slice v0.1.5
   Compiling aligned v0.3.4
   Compiling defmt-macros v0.1.1
   Compiling cortex-m-rt-macros v0.1.8
   Compiling defmt-rtt v0.1.0
warning: unused imports: `watchdog`, `xosc`
 --> src\main.rs:9:11
  |
9 | use pac::{watchdog, xosc};
  |           ^^^^^^^^  ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: ``
 --> src\pll.rs:2:21
  |
2 | use defmt::{assert, *};
  |                     ^

warning: constant is never used: `TIMER`
 --> src\resets.rs:7:1
  |
7 | pub const TIMER: u32 = 0x00200000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: constant is never used: `TBMAN`
 --> src\resets.rs:8:1
  |
8 | pub const TBMAN: u32 = 0x00100000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `SYSINFO`
 --> src\resets.rs:9:1
  |
9 | pub const SYSINFO: u32 = 0x00080000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `SYSCFG`
  --> src\resets.rs:10:1
   |
10 | pub const SYSCFG: u32 = 0x00040000;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PWM`
  --> src\resets.rs:14:1
   |
14 | pub const PWM: u32 = 0x00004000;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PIO1`
  --> src\resets.rs:17:1
   |
17 | pub const PIO1: u32 = 0x00000800;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PIO0`
  --> src\resets.rs:18:1
   |
18 | pub const PIO0: u32 = 0x00000400;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PADS_BANK0`
  --> src\resets.rs:20:1
   |
20 | pub const PADS_BANK0: u32 = 0x00000100;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `JTAG`
  --> src\resets.rs:21:1
   |
21 | pub const JTAG: u32 = 0x00000080;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `IO_BANK0`
  --> src\resets.rs:23:1
   |
23 | pub const IO_BANK0: u32 = 0x00000020;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `I2C1`
  --> src\resets.rs:24:1
   |
24 | pub const I2C1: u32 = 0x00000010;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `I2C0`
  --> src\resets.rs:25:1
   |
25 | pub const I2C0: u32 = 0x00000008;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `DMA`
  --> src\resets.rs:26:1
   |
26 | pub const DMA: u32 = 0x00000004;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `BUSCTRL`
  --> src\resets.rs:27:1
   |
27 | pub const BUSCTRL: u32 = 0x00000002;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: linking with `rust-lld` failed: exit code: 0xc0000135
  |
  = note: "rust-lld" "-flavor" "gnu" "--eh-frame-hdr" "-L" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\rp_test-89693fdeb81732ff.rp_test.c856skbz-cgu.0.rcgu.o" "-o" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\rp_test-89693fdeb81732ff" "--gc-sections" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\debug\\deps" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\rp-test-19c606f0fce00403\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\cortex-m-7babba7b7dd4585a\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\cortex-m-rt-1587981b35ffb7fb\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\defmt-bef2f13d6af39a96\\out" "-L" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib" "-Bstatic" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\librp2040_boot2-c0e3ccaa3cf1298c.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\librp2040_pac-39abca7eff2b5ee4.rlib" "--start-group" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libpanic_probe-47714ef64375d9fd.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libdefmt_rtt-e929c86401207f39.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m-d34fc5d972339d0b.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m-e98dff07c75c7072.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libembedded_hal-5f4cf4c0e964df7a.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvoid-513a952dcb0743cb.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libnb-c644e2ee3c32e0f5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libnb-fd01214d2a0d8f57.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvolatile_register-b768ea5d3a9b3411.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvcell-613f1ac525fb5d9f.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libbare_metal-0b94a32f9f2a743b.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libaligned-01c2d97cab05660d.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libas_slice-fae539af1eb4038f.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libstable_deref_trait-a94dea9ac439073d.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-4eac4ad1e1df63ae.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-365e96ff0e208b79.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libdefmt-edf9c4e950afda45.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libheapless-e266fa6f233fedd5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libhash32-425106a200b4b796.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libbyteorder-b5a8e1a19af1f6a6.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-64af7e003b7d02af.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libtypenum-f9ec1d697242b3b5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m_rt-a1a893f98b054067.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libr0-c05ff71e88493f55.rlib" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\librustc_std_workspace_core-14eda5ac28319027.rlib" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\libcore-b359574cade0493c.rlib" "--end-group" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\libcompiler_builtins-4446c87f50781d06.rlib" "--nmagic" "-Tlink.x" "-Tdefmt.x" "-Bdynamic"
  = note:

error: aborting due to previous error; 16 warnings emitted

error: could not compile `rp-test`

To learn more, run the command again with --verbose.


















C:\projects\embedded\rp-rs\sample-project>cargo run
   Compiling rp-test v0.1.0 (C:\projects\embedded\rp-rs\sample-project)
warning: unused imports: `watchdog`, `xosc`
 --> src\main.rs:9:11
  |
9 | use pac::{watchdog, xosc};
  |           ^^^^^^^^  ^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: ``
 --> src\pll.rs:2:21
  |
2 | use defmt::{assert, *};
  |                     ^

warning: constant is never used: `TIMER`
 --> src\resets.rs:7:1
  |
7 | pub const TIMER: u32 = 0x00200000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: constant is never used: `TBMAN`
 --> src\resets.rs:8:1
  |
8 | pub const TBMAN: u32 = 0x00100000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `SYSINFO`
 --> src\resets.rs:9:1
  |
9 | pub const SYSINFO: u32 = 0x00080000;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `SYSCFG`
  --> src\resets.rs:10:1
   |
10 | pub const SYSCFG: u32 = 0x00040000;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PWM`
  --> src\resets.rs:14:1
   |
14 | pub const PWM: u32 = 0x00004000;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PIO1`
  --> src\resets.rs:17:1
   |
17 | pub const PIO1: u32 = 0x00000800;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PIO0`
  --> src\resets.rs:18:1
   |
18 | pub const PIO0: u32 = 0x00000400;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `PADS_BANK0`
  --> src\resets.rs:20:1
   |
20 | pub const PADS_BANK0: u32 = 0x00000100;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `JTAG`
  --> src\resets.rs:21:1
   |
21 | pub const JTAG: u32 = 0x00000080;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `IO_BANK0`
  --> src\resets.rs:23:1
   |
23 | pub const IO_BANK0: u32 = 0x00000020;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `I2C1`
  --> src\resets.rs:24:1
   |
24 | pub const I2C1: u32 = 0x00000010;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `I2C0`
  --> src\resets.rs:25:1
   |
25 | pub const I2C0: u32 = 0x00000008;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `DMA`
  --> src\resets.rs:26:1
   |
26 | pub const DMA: u32 = 0x00000004;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: constant is never used: `BUSCTRL`
  --> src\resets.rs:27:1
   |
27 | pub const BUSCTRL: u32 = 0x00000002;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: linking with `rust-lld` failed: exit code: 0xc0000135
  |
  = note: "rust-lld" "-flavor" "gnu" "--eh-frame-hdr" "-L" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\rp_test-89693fdeb81732ff.rp_test.c856skbz-cgu.0.rcgu.o" "-o" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\rp_test-89693fdeb81732ff" "--gc-sections" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\debug\\deps" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\rp-test-19c606f0fce00403\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\cortex-m-7babba7b7dd4585a\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\cortex-m-rt-1587981b35ffb7fb\\out" "-L" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\build\\defmt-bef2f13d6af39a96\\out" "-L" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib" "-Bstatic" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\librp2040_boot2-c0e3ccaa3cf1298c.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\librp2040_pac-39abca7eff2b5ee4.rlib" "--start-group" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libpanic_probe-47714ef64375d9fd.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libdefmt_rtt-e929c86401207f39.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m-d34fc5d972339d0b.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m-e98dff07c75c7072.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libembedded_hal-5f4cf4c0e964df7a.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvoid-513a952dcb0743cb.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libnb-c644e2ee3c32e0f5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libnb-fd01214d2a0d8f57.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvolatile_register-b768ea5d3a9b3411.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libvcell-613f1ac525fb5d9f.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libbare_metal-0b94a32f9f2a743b.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libaligned-01c2d97cab05660d.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libas_slice-fae539af1eb4038f.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libstable_deref_trait-a94dea9ac439073d.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-4eac4ad1e1df63ae.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-365e96ff0e208b79.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libdefmt-edf9c4e950afda45.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libheapless-e266fa6f233fedd5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libhash32-425106a200b4b796.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libbyteorder-b5a8e1a19af1f6a6.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libgeneric_array-64af7e003b7d02af.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libtypenum-f9ec1d697242b3b5.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libcortex_m_rt-a1a893f98b054067.rlib" "C:\\projects\\embedded\\rp-rs\\sample-project\\target\\thumbv6m-none-eabi\\debug\\deps\\libr0-c05ff71e88493f55.rlib" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\librustc_std_workspace_core-14eda5ac28319027.rlib" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\libcore-b359574cade0493c.rlib" "--end-group" "C:\\Users\\Frank\\.rustup\\toolchains\\nightly-x86_64-pc-windows-gnu\\lib\\rustlib\\thumbv6m-none-eabi\\lib\\libcompiler_builtins-4446c87f50781d06.rlib" "--nmagic" "-Tlink.x" "-Tdefmt.x" "-Bdynamic"
  = note:

error: aborting due to previous error; 16 warnings emitted

error: could not compile `rp-test`

To learn more, run the command again with --verbose.

C:\projects\embedded\rp-rs\sample-project>

Source for clk_sys is not switched to pll_sys after PLLs are set up

To verify, looked at CLK_SYS_CTRL with debugger and it shows 0x00000000, so the clock source is pointing to clk_ref as expected. And CLK_SYS_SELECTED shows 0x00000001 which, if I've interpreted the datasheet correctly, also means that clk_ref is selected.

Is there a reason for setting up pll_sys and then not wiring clk_sys to it?

I tried something like this but it doesn't speed up the blinking:

clocks.clk_sys_ctrl.modify(|_, w| w.auxsrc().clksrc_pll_sys() );
clocks.clk_sys_ctrl.modify(|_, w| w.src().clksrc_clk_sys_aux() );
while clocks.clk_sys_selected.read().bits() != 2 {}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.