Comments (9)
This is most likely a defmt issue because they construct the header in a way that allows the debugger to attach to it, but isn't fully initialized. It should be fixed there, rtt-target doesn't have this problem, but obviously doesn't support defmt.
from probe-rs.
I have the same issues with rtt-target: https://gitlab.com/dzamlo/minimal-example-rtt-issue/-/tree/rtt-target?ref_type=heads
from probe-rs.
I have the same issue with the rtt backend of esp-println
from probe-rs.
If I remove the .await
, using hal::Delay
to wait instead of Timer
, but let everything else the same (still an async function, embassy still initialized), it seems to works as expected.
If I use .await
for something else than a timer, like waiting for a falling edge on a gpio, I get the issues.
from probe-rs.
After further investigation, it is the call to core::arch::asm!("wfi"); that cause the issue, so nothing to do with async in itself. I've made a minimal reproduction: https://gitlab.com/dzamlo/minimal-example-rtt-issue/-/tree/wfi-example?ref_type=heads
I get the same issues with an esp32-c6.
from probe-rs.
I can reproduce the issue on a STM32L476 (on a nucleo board with a ST-LINK/V2-1): https://gitlab.com/dzamlo/minimal-example-rtt-issue-arm
In addition to RTT issues, I sometime cannot even flash the board and get one the following error messages:
Error: Connecting to the chip was unsuccessful.
Caused by:
0: An error with the usage of the probe occurred
1: An error specific to a probe type occurred
2: Command failed with status SwdDpWait
Error: Connecting to the chip was unsuccessful.
Caused by:
0: An ARM specific error occurred.
1: The debug probe encountered an error.
2: An error specific to a probe type occurred
3: Command failed with status JtagNoDeviceConnected
The solution to recover is to connect BOOT0 to VCC and unplug, replug the board.
from probe-rs.
It is know that WFI can cause this dependent on what debug bits you set because the chips disable the debug unit. But we can become more resilient I guess.
Duplicate of #350.
from probe-rs.
Is there any way to detect this situation ? It would be very helpful to show a link to a page that explain the situtation in this case, instead of just having the logs not working.
from probe-rs.
It would be nice to at least display a hint I guess, but it's not easy to really know.
from probe-rs.
Related Issues (20)
- probe-rs run fails with stack configuration error on STM32G431C6Tx HOT 1
- Cant flash ESP32-S2 HOT 14
- Cant flash ESP32-C2 HOT 13
- Can't Flash STM32F750N8Hx HOT 18
- Panic in `jtag_dtm.rs` when using `probe-rs` in combination with `ESP32-C3` and `ESP-Prog` HOT 29
- cargo-embed produces broken output, probe-rs does not HOT 11
- Register values are corrupted during step execution in Armv8a
- stm32f105rb works with probe-rs version 0.21.1 but not with 0.23.0 HOT 2
- Flashing `esp32-s3` with `probe-rs` causes flash algorithm verification fail HOT 14
- embedded-test: `--skip` conflicts with libtest_mimic HOT 1
- probe-rs info Failed to open the debug probe. HOT 14
- `probe-rs run test` fails on ESP32
- probe-rs download cannot download elf to RAM memory HOT 1
- Memory leak when running embedded-test HOT 4
- RP2040 - Core gets stuck after reflashing HOT 2
- RP2040 Can't attach to running probe HOT 2
- Allow writing to bootloader segments by modifying MCU's fuses HOT 1
- cargo embed rtt BinaryLE channel does not work properly HOT 1
- JTAG-lock-pick Tiny 2 support HOT 2
- probe-rs run leaves RTT in blocking mode when disconnecting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probe-rs.