Skip to content
New issue

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

Avoid using ESP32-C3-DevKitC-02 - for now #1

Open
akauppi opened this issue Jul 27, 2024 · 3 comments
Open

Avoid using ESP32-C3-DevKitC-02 - for now #1

akauppi opened this issue Jul 27, 2024 · 3 comments
Labels
bug Something isn't working C3-DevKitC-02 later

Comments

@akauppi
Copy link
Owner

akauppi commented Jul 27, 2024

On C6:

$ make run
make[1]: Entering directory '/home/ubuntu/Embassy-playground-2024'
cargo build --release --features=esp32c6 --target=riscv32imac-unknown-none-elf
   Compiling esp-hal v0.19.0
   Compiling esp-hal-embassy v0.2.0
   Compiling playground v0.1.0 (/home/ubuntu/Embassy-playground-2024)
    Finished `release` profile [optimized + debuginfo] target(s) in 24.32s
make[1]: Leaving directory '/home/ubuntu/Embassy-playground-2024'
probe-rs run --chip esp32c6 target/riscv32imac-unknown-none-elf/release/app
      Erasing ✔ [00:00:01] [##############################################################################################################] 128.00 KiB/128.00 KiB @ 112.12 KiB/s (eta 0s )
  Programming ✔ [00:00:05] [##################################################################################################################] 26.10 KiB/26.10 KiB @ 4.47 KiB/s (eta 0s )    Finished in 7.681s
INFO  RWDT watchdog enabled!
└─ app::____embassy_main_task::{async_fn#0} @ src/bin/app.rs:47  
INFO  Embassy initialized!
└─ app::____embassy_main_task::{async_fn#0} @ src/bin/app.rs:59  

The erasing and programming starts pretty instantaneously after the probe-rs run command.

INFO RTT messages are shown on the console.

On C3, however:

$ CHIP=esp32c3 make run
make[1]: Entering directory '/home/ubuntu/Embassy-playground-2024'
cargo build --release --features=esp32c3 --target=riscv32imc-unknown-none-elf
   Compiling esp32c3 v0.24.0
   Compiling esp-hal v0.19.0
   Compiling esp-hal-embassy v0.2.0
   Compiling playground v0.1.0 (/home/ubuntu/Embassy-playground-2024)
    Finished `release` profile [optimized + debuginfo] target(s) in 1m 12s
make[1]: Leaving directory '/home/ubuntu/Embassy-playground-2024'
probe-rs run --chip esp32c3 target/riscv32imc-unknown-none-elf/release/app
      Erasing ✔ [00:00:01] [##############################################################################################################] 192.00 KiB/192.00 KiB @ 138.98 KiB/s (eta 0s )
  Programming ✔ [00:00:06] [##################################################################################################################] 25.50 KiB/25.50 KiB @ 4.00 KiB/s (eta 0s )    Finished in 8.459s
 WARN probe_rs::session: Failed to deconfigure device during shutdown: A RISC-V specific error occurred.

Caused by:
    Error occurred during execution of an abstract command: HaltResume
Error: Failed to attach to RTT

Caused by:
    Error attempting to attach to RTT: RTT control block not found in target memory.
    - Make sure RTT is initialized on the target, AND that there are NO target breakpoints before RTT initialization.
    - For VSCode and probe-rs-debugger users, using `halt_after_reset:true` in your `launch.json` file will prevent RTT
    initialization from happening on time.
    - Depending on the target, sleep modes can interfere with RTT.
make: *** [Makefile:53: run] Error 1
  • The start of erasing takes 1..2 minutes from the probe-rs run command.

  • INFO RTT messages are not shown, or an error is received (like above)

probe-rs 0.24.0
@akauppi akauppi changed the title Don't use C3 DevKitC-02 No output on ESP32-C3-DevKitC-02 Jul 28, 2024
@akauppi akauppi added C3-DevKitC-02 later bug Something isn't working labels Jul 28, 2024
@akauppi akauppi changed the title No output on ESP32-C3-DevKitC-02 Avoid using ESP32-C3-DevKitC-02 Jul 29, 2024
@akauppi

This comment was marked as outdated.

@akauppi akauppi changed the title Avoid using ESP32-C3-DevKitC-02 Avoid using ESP32-C3-DevKitC-02 - for now Jul 29, 2024
@akauppi
Copy link
Owner Author

akauppi commented Jul 31, 2024

Root cause might be here.

@akauppi
Copy link
Owner Author

akauppi commented Aug 5, 2024

A user called okhsunrog brought this up on Matrix, and likely caused a fix to be made:
https://github.com/probe-rs/probe-rs/pull/2742/commits/3085cc174dc40cfeccaca23354678097651987f8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C3-DevKitC-02 later
Projects
None yet
Development

No branches or pull requests

1 participant