Closed thedevleon closed 9 months ago
Installing with the testing2 branch works: install probe-rs --git https://github.com/probe-rs/probe-rs --branch feature/testing2 --features cli --bin probe-rs
, but there are a bunch of errors when running:
$ cargo test
Finished test [unoptimized + debuginfo] target(s) in 0.03s
Running tests/example_test.rs (target/riscv32imac-unknown-none-elf/debug/deps/example_test-ae604d781d4f9ebe)
Erasing ✔ [00:00:01] [###############################################################################################################################################################] 256.00 KiB/256.00 KiB @ 249.17 KiB/s (eta 0s )
Programming ✔ [00:00:01] [##################################################################################################################################################################] 79.38 KiB/79.38 KiB @ 62.35 KiB/s (eta 0s ) Finished in 2.323s
WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
WARN probe_rs::rtt::syscall: Unknown semihosting operation=0000 parameter=4086e318
WARN probe_rs::rtt::syscall: Unknown semihosting operation=0100 parameter=4086fbd0
running 8 tests
test unit_tests::takes_state ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::log ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::it_works_ignored ... ignored
test unit_tests::it_fails1 ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::it_fails2 ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::it_passes ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::it_fails3 ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
test unit_tests::it_timeouts ... WARN probe_rs::rtt::syscall: Unknown semihosting operation=0015 parameter=4086e318
ERROR probe_rs::architecture::riscv::communication_interface: Executing the abstract command for write_32 failed: Exception (Abstractcs { .0: 10000302, progbufsize: 10, busy: false, cmderr: 3, datacount: 2 })
FAILED
failures:
---- unit_tests::takes_state ----
A RISC-V specific error occurred.
---- unit_tests::log ----
A RISC-V specific error occurred.
---- unit_tests::it_fails1 ----
A RISC-V specific error occurred.
---- unit_tests::it_fails2 ----
A RISC-V specific error occurred.
---- unit_tests::it_passes ----
A RISC-V specific error occurred.
---- unit_tests::it_fails3 ----
A RISC-V specific error occurred.
---- unit_tests::it_timeouts ----
A RISC-V specific error occurred.
failures:
unit_tests::takes_state
unit_tests::log
unit_tests::it_fails1
unit_tests::it_fails2
unit_tests::it_passes
unit_tests::it_fails3
unit_tests::it_timeouts
test result: FAILED. 0 passed; 7 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.46s
Hei @thedevleon ,
Please use add --locked
for now to fix the defmt semver break:
cargo install probe-rs --git https://github.com/probe-rs/probe-rs --branch feature/testing --features cli --bin probe-rs --locked
(The branch feature/testing2 is for development. Currently not stable)
EDIT:
I've fixed the feature/testing
branch. --locked
should no longer be required.
@thedevleon Out of interest: Which platform were you on when running the feature/testing2
branch? https://github.com/probe-rs/embedded-test/issues/24#issuecomment-1954333228
Thank you
Thanks, with the --locked option it installs and the tests in the sample run correctly. I'm running the sample on the C6.
I'm running the sample on the C6.
sorry I meant linux or windows. because we're having troubles with the testing2 branch on certain platforms.
I'm running the sample on the C6.
sorry I meant linux or windows. because we're having troubles with the testing2 branch on certain platforms.
Ah, I'm running Ubuntu 22.04.3.
I cloned the example repo and tried to run
cargo test
, which results in this error:Turns out, that the probe-rs runner was never installed with the test feature, because the following command fails to compile:
cargo install probe-rs --git https://github.com/probe-rs/probe-rs --branch feature/testing --features cli --bin probe-rs
results in: