We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abnormal document: https://embassy.dev/book/#_interrupt_driven Code Source: https://github.com/embassy-rs/embassy/blob/main/docs/examples/layer-by-layer/blinky-irq/src/main.rs
The following issues occurred during direct compilation:
error: linking with `rust-lld` failed: exit status: 1 | = note: LC_ALL="C" PATH="/home/gongsi/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/gongsi/.cargo/bin:/home/gongsi/.nvm/versions/node/v22.13.0/bin:/home/gongsi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/gongsi/dev_env/go/bin:/home/gongsi/Downloads/gcc-arm-none-eabi-10.3-2021.10-aarch64-linux/gcc-arm-none-eabi-10.3-2021.10//bin:/home/gongsi/Downloads/gcc-arm-none-eabi-10.3-2021.10-aarch64-linux/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/bin:/home/gongsi/dev_env/go/bin:/home/gongsi/Downloads/gcc-arm-none-eabi-10.3-2021.10-aarch64-linux/gcc-arm-none-eabi-10.3-2021.10//bin:/home/gongsi/Downloads/gcc-arm-none-eabi-10.3-2021.10-aarch64-linux/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/bin" VSLANG="1033" "rust-lld" "-flavor" "gnu" "/tmp/rustcuAHFkf/symbols.o" "<30 object files omitted>" "--as-needed" "-Bstatic" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/deps/{libpanic_probe-a2f1f92354c2a9e9.rlib,libdefmt_rtt-49eccd94f33da805.rlib,libembassy_stm32-6c35bcc643c86ab8.rlib,libembedded_hal_nb-37b8f531488990d6.rlib,libblock_device_driver-93dde0ab67fc2085.rlib,libaligned-77f8547a819c012f.rlib,libas_slice-9e69285a79dceee6.rlib,libsdio_host-5ae013fd1c152f18.rlib,libchrono-2a5be526c5b7d85c.rlib,librand_core-3994a3186f26df37.rlib,libembassy_embedded_hal-227c968dbb372f63.rlib,libembassy_time-6bee94579b62764b.rlib,libembedded_hal_async-ff33f3eca9dc28f5.rlib,libembedded_hal-b3687eb2d3836138.rlib,libembassy_futures-828a7d0f19579cf6.rlib,libembedded_storage_async-2e25333ab1d521c1.rlib,libembedded_storage-6c3fe3431d675aad.rlib,libbit_field-d1cef261e83005a0.rlib,libembedded_can-ad918403ffdffbd8.rlib,libcfg_if-22106275e95aa662.rlib,libembassy_time_queue_utils-d0a1c6683efbb4a2.rlib,libembassy_executor-f566033a10167558.rlib,libembassy_time_driver-64715014718d75e4.rlib,libstm32_metapac-847252737c478541.rlib,libembassy_sync-aacefcea3345b907.rlib,libfutures_util-ba6a64c003f1096b.rlib,libpin_project_lite-8b68caebfd6a7e06.rlib,libfutures_task-cb206238298008c4.rlib,libpin_utils-7a9a15f9a0b1ced1.rlib,libfutures_core-0a53b6542fabfc90.rlib,libfutures_sink-6fec620b86fab509.rlib,libembedded_io_async-da5aa430c5a5d3c3.rlib,libembedded_io-b7c6f29d7bda1f5e.rlib,libheapless-b0b68b71aa680aa1.rlib,libstable_deref_trait-0fe99e382ef56a8d.rlib,libhash32-2e8e42e58a9ccb3b.rlib,libbyteorder-2c4ca29d877edfa0.rlib,libembassy_hal_internal-d96f6a7c29246d1c.rlib,libdefmt-b314c75b6f22ab03.rlib,libbitflags-b5f138e78066633d.rlib,libnum_traits-ff95a3d47ea5836f.rlib,libcortex_m_rt-f53a036252f5641b.rlib,libcortex_m-023d6b912d7ac4a1.rlib,libembedded_hal-d1d7369946f19e1e.rlib,libvoid-5b77109c2968bdf2.rlib,libnb-6ca7cba225cd8332.rlib,libnb-f4090822aa935a71.rlib,libcritical_section-9cc7d3ecb839b22e.rlib,libvolatile_register-52a3cfcea152e037.rlib,libvcell-85233c4ae9cac450.rlib,libbare_metal-f8348608805d6fec.rlib,librustc_std_workspace_core-cf588f419860230e.rlib,libcore-df478bbba6d14b50.rlib,libcompiler_builtins-3d11ef4151d259a2.rlib}" "-Bdynamic" "--eh-frame-hdr" "-z" "noexecstack" "-L" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/build/app-f9f4f86b320795a6/out" "-L" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/build/cortex-m-dd9db2ca96d338a0/out" "-L" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/build/cortex-m-rt-e43a3807e67a4609/out" "-L" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/build/defmt-86f33fc2f3a67644/out" "-L" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/build/embassy-stm32-a4719cc763bf561c/out" "-L" "/home/gongsi/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stm32-metapac-16.0.0/src/chips/stm32l431rc" "-o" "/home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/deps/app-00576b9082130cc1" "--gc-sections" "--nmagic" "-Tlink.x" "-Tdefmt.x" = note: some arguments are omitted. use `--verbose` to show all linker arguments = note: rust-lld: error: duplicate symbol: EXTI15_10 >>> defined at main.rs:36 (src/main.rs:36) >>> /home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/deps/app-00576b9082130cc1.7sb6go550mb7bgws9dm7akpuj.rcgu.o:(EXTI15_10) >>> defined at exti.rs:328 (src/exti.rs:328) >>> embassy_stm32-6c35bcc643c86ab8.embassy_stm32.59e8df6758ead74c-cgu.06.rcgu.o:(.text.EXTI15_10+0x1) in archive /home/gongsi/learn/my_project/target/thumbv7em-none-eabihf/debug/deps/libembassy_stm32-6c35bcc643c86ab8.rlib
I don't understand why an empty project would have such a problem
# This file was automatically generated. [package] edition = "2021" name = "app" version = "0.1.0" [dependencies] embassy-stm32 = { version = "0.2.0", features = ["defmt", "stm32l431rc", "time-driver-any", "memory-x", "unstable-pac", "exti", "chrono","low-power"] } embassy-executor = { version = "0.7.0", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt"] } embassy-time = { version = "0.4.0", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } ufmt = "0.1" embassy-futures = {version = "0.1.1",features = ["defmt"]} defmt = "0.3.5" defmt-rtt = "0.4.0" cortex-m = {version = "0.7.7", features = ["critical-section-single-core"]} cortex-m-rt = "0.7.3" panic-probe = "0.3.1" embedded-io-async = "0.6.1" embedded-io = "0.6.1" embedded-alloc = {version = "=0.6.0", features = ["llff"]} heapless="0.8.0" nb = "1.0.0" static_cell = "2" stm32-metapac = {version = "16.0.0",features = ["pac","stm32l431rc"]} embassy-sync = "0.6.2" [[bin]] name = "app" test = false bench = false [profile.dev] [profile.release] debug = true [features] default = ["defmt-default"] defmt-default = [] defmt-trace = [] defmt-debug = [] defmt-info = [] defmt-warn = [] defmt-error = []
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following issues occurred during direct compilation:
I don't understand why an empty project would have such a problem
The text was updated successfully, but these errors were encountered: