I am trying to write some test-cases using defmt-tests for STM32F407VGT6 board, the project can be viewed in this link :GitHub - Admsher/EMDU_pc but whenever i try to ru the test (inside the tests folder) i get this error:
```
error: linking with rust-lld
failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/admsher/.cargo/bin:/home/admsher/.local/bin:/home/admsher/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "rust-lld" "-flavor" "gnu" "/tmp/rustcsHZ2er/symbols.o" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/deps/test_name-6478156d5614d5ba.10jqsumbji5t3aoozoc0eunzj.rcgu.o" "--as-needed" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/deps" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/debug/deps" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/defmt-eaca66108fa6cbeb/out" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/cortex-m-438eb70daae46cb1/out" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/cortex-m-rt-948deabeaea378a1/out" "-L" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/stm32f4-staging-920e4d24429d04cb/out" "-L" "/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib" "-Bstatic" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/deps/libpanic_halt-248124ca8b2caf69.rlib" "/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib/librustc_std_workspace_core-631b6933909f32ef.rlib" "/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib/libcore-c4c0c2673412e8cf.rlib" "/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib/libcompiler_builtins-5af4163d12d892d9.rlib" "-Bdynamic" "--eh-frame-hdr" "-z" "noexecstack" "-L" "/home/admsher/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/thumbv7em-none-eabihf/lib" "-o" "/home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/deps/test_name-6478156d5614d5ba" "--gc-sections" "-Tlink.x" "-Tdefmt.x"
= note: rust-lld: error: /home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/cortex-m-rt-948deabeaea378a1/out/link.x:54: symbol not found: DefaultHandler_
rust-lld: error: /home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/cortex-m-rt-948deabeaea378a1/out/link.x:54: symbol not found: DefaultHandler_
rust-lld: error:
BUG(cortex-m-rt): the reset vector is missing
rust-lld: error:
BUG(cortex-m-rt): the exception vectors are missing
rust-lld: error:
ERROR(cortex-m-rt): The interrupt vectors are missing.
Possible solutions, from most likely to less likely:
- Link to a svd2rust generated device crate
- Check that you actually use the device/hal/bsp crate in your code
- Disable the 'device' feature of cortex-m-rt to build a generic application (a dependency
may be enabling it)
- Supply the interrupt handlers yourself. Check the documentation for details.
rust-lld: error: /home/admsher/rust-repo/EMDU_pc/stm32-emdu/target/thumbv7em-none-eabihf/debug/build/cortex-m-rt-948deabeaea378a1/out/link.x:54: symbol not found: DefaultHandler_
rust-lld: error:
BUG(cortex-m-rt): the reset vector is missing
rust-lld: error:
BUG(cortex-m-rt): the exception vectors are missing
rust-lld: error:
ERROR(cortex-m-rt): The interrupt vectors are missing.
Possible solutions, from most likely to less likely:
- Link to a svd2rust generated device crate
- Check that you actually use the device/hal/bsp crate in your code
- Disable the 'device' feature of cortex-m-rt to build a generic application (a dependency
may be enabling it)
- Supply the interrupt handlers yourself. Check the documentation for details.
Any heads up is appreciated , thanks