stm32-rs / stm32f4xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F4 family

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defmt error: adc_dma_rtic not compile

burrbull opened this issue · comments

error: linking with `rust-lld` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/burrbull/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/burrbull/.local/bin:/home/burrbull/bin:/home/burrbull/.cargo/bin:/home/burrbull/.local/bin:/home/burrbull/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "rust-lld" "-flavor" "gnu" "/tmp/rustcMouglq/symbols.o" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2.rtic_adc_dma.3fee3e59-cgu.4.rcgu.o" "--as-needed" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/deps" "-L" "/home/burrbull/stm32f4xx-hal/target/release/deps" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/build/cortex-m-bd1f2488825f29d7/out" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/build/cortex-m-rt-809bfdea6595f977/out" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/build/defmt-75ab611d33231f2c/out" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/build/ft6x06-fc82a3a9cf5ba26d/out" "-L" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/build/stm32f4-8bbb437697b672bc/out" "-L" "/home/burrbull/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib" "-Bstatic" "/tmp/rustcMouglq/libcortex_m-3170bb75468f0001.rlib" "/home/burrbull/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib/libcompiler_builtins-16cc2a5f3bf3857d.rlib" "-Bdynamic" "--eh-frame-hdr" "-z" "noexecstack" "-L" "/home/burrbull/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib" "-o" "/home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2" "--gc-sections" "-Tlink.x"
  = note: rust-lld: warning: section type mismatch for .uninit.defmt-rtt.BUFFER
          >>> /home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2.rtic_adc_dma.3fee3e59-cgu.4.rcgu.o:(.uninit.defmt-rtt.BUFFER): SHT_PROGBITS
          >>> output section .uninit: SHT_NOBITS
          
          rust-lld: warning: section type mismatch for .uninit.rtic0
          >>> /home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2.rtic_adc_dma.3fee3e59-cgu.4.rcgu.o:(.uninit.rtic0): SHT_PROGBITS
          >>> output section .uninit: SHT_NOBITS
          
          rust-lld: warning: section type mismatch for .uninit.rtic1
          >>> /home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2.rtic_adc_dma.3fee3e59-cgu.4.rcgu.o:(.uninit.rtic1): SHT_PROGBITS
          >>> output section .uninit: SHT_NOBITS
          
          rust-lld: warning: section type mismatch for .got
          >>> <internal>:(.got): SHT_PROGBITS
          >>> output section .got: SHT_NOBITS
          
          rust-lld: warning: section type mismatch for .got.plt
          >>> <internal>:(.got.plt): SHT_PROGBITS
          >>> output section .got: SHT_NOBITS
          
          rust-lld: warning: section type mismatch for .got
          >>> <internal>:(.got): SHT_PROGBITS
          >>> output section .got: SHT_NOBITS
          
          rust-lld: error: undefined symbol: _defmt_timestamp
          >>> referenced by mod.rs:98 (src/export/mod.rs:98)
          >>>               /home/burrbull/stm32f4xx-hal/target/thumbv7em-none-eabihf/release/examples/rtic_adc_dma-af9e174f55262ab2.rtic_adc_dma.3fee3e59-cgu.4.rcgu.o:(defmt::export::header::he70ebdfd0e2eb29e)
          
          rust-lld: error: section .defmt.{"package":"stm32f4xx-hal","tag":"defmt_info","data":"temperature: {}, voltage: {}","disambiguator":"2084365844857250734","crate_name":"rtic_adc_dma"} virtual address range overlaps with .text
          >>> .defmt.{"package":"stm32f4xx-hal","tag":"defmt_info","data":"temperature: {}, voltage: {}","disambiguator":"2084365844857250734","crate_name":"rtic_adc_dma"} range is [0x8000198, 0x8000198]
          >>> .text range is [0x8000198, 0x80023C3]
          
          rust-lld: error: section .text virtual address range overlaps with .defmt.{"package":"panic-probe","tag":"defmt_error","data":"{}","disambiguator":"9448177036453248414","crate_name":"panic_probe"}
          >>> .text range is [0x8000198, 0x80023C3]
          >>> .defmt.{"package":"panic-probe","tag":"defmt_error","data":"{}","disambiguator":"9448177036453248414","crate_name":"panic_probe"} range is [0x8000199, 0x8000199]
          
          rust-lld: error: section .defmt.{"package":"stm32f4xx-hal","tag":"defmt_info","data":"temperature: {}, voltage: {}","disambiguator":"2084365844857250734","crate_name":"rtic_adc_dma"} load address range overlaps with .text
          >>> .defmt.{"package":"stm32f4xx-hal","tag":"defmt_info","data":"temperature: {}, voltage: {}","disambiguator":"2084365844857250734","crate_name":"rtic_adc_dma"} range is [0x8000198, 0x8000198]
          >>> .text range is [0x8000198, 0x80023C3]
          
          rust-lld: error: section .text load address range overlaps with .defmt.{"package":"panic-probe","tag":"defmt_error","data":"{}","disambiguator":"9448177036453248414","crate_name":"panic_probe"}
          >>> .text range is [0x8000198, 0x80023C3]
          >>> .defmt.{"package":"panic-probe","tag":"defmt_error","data":"{}","disambiguator":"9448177036453248414","crate_name":"panic_probe"} range is [0x8000199, 0x8000199]
          

error: could not compile `stm32f4xx-hal` due to previous error
warning: build failed, waiting for other jobs to finish...

need to add

  "-C", "link-arg=-Tdefmt.x",