probe-rs / embedded-test

A test harness and runner for embedded devices
63 stars 7 forks source link

Unable to run tests on ESP32-C6: "The target did not respond with test list until timeout." #43

Open akauppi opened 5 hours ago

akauppi commented 5 hours ago

Steps

$ git clone https://github.com/probe-rs/embedded-test-example
$ cd embedded-test-example
$ cargo test
[...]
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s
     Running tests/example_test.rs (/home/ubuntu/target/riscv32imac-unknown-none-elf/debug/deps/example_test-ca528a9059f152d1)
      Erasing ✔ 100% [####################] 320.00 KiB @ 107.63 KiB/s (took 3s)
  Programming ✔ 100% [####################]  87.98 KiB @   2.43 KiB/s (took 36s)                                                                                                                    Finished in 36.14s
Frame 0: <unknown function @ 0x40017606> @ 0x40017606
Frame 1: <unknown function @ 0x400233e8> @ 0x400233e8
Error: The target did not respond with test list until timeout.
error: test failed, to rerun pass `--test example_test`

My system:

$ lsb_release -a
[...]
Description:    Ubuntu 24.04.1 LTS

$ probe-rs --version
probe-rs 0.24.0 (git commit: 3421e932)

$ rustc --version
rustc 1.82.0 (f6e511eec 2024-10-15)

The probe-rs is installed from Git, but I expect that should not be a problem? Noticed that the embedded-test-example lacks somewhat behind in its dependencies, e.g. esp-hal 0.17.0 instead of 0.21.1.

How to get the example repo to run the tests?

akauppi commented 5 hours ago