Comments (6)
Fixed in #123
from debugprobe.
I believe that the intention is that you'd wire PROBE_PIN_RESET up to the RUN pin on the target board that you're debugging? I.e. that's why it's a "hardware reset" rather than a "software reset".
(Ahh, although re-reading your original post, perhaps I've misunderstood what it is that you're asking?)
from debugprobe.
Correct, I've been experimenting with wiring to both the RUN pin and the 3V3_EN pin. My trouble is understanding how to use this functionality once recompiling and uploading the modified picoprobe firmware - It doesn't appear to be hardware-resetting the target Pico (although I'll admit I haven't scoped it with a logic analyzer yet).
I'm curious if there's a specific command I can send through GDB/OpenOCD to manually activate the reset line functionality? Looking for documentation on how to use this feature after it's already been wired up.
from debugprobe.
This is just a guess, but I wonder if that might be part of the old "custom picoprobe interface", and not yet part of the (now-default) "standard cmsis-dap interface" ? 🤷
Ahh... looks like 0761424 is the commit that hooks it into the "standard cmsis-dap interface", so is probably a more-useful starting point than #10 ?
from debugprobe.
Can you try the options listed in the OpenOCD user guide? https://openocd.org/doc/html/Reset-Configuration.html
from debugprobe.
Okay, finally found the time to test everything with a logic analyzer attached 🙂 Bottom line, none of the configuration options I tried from that OpenOCD page managed to produce a low signal on PROBE_PIN_RESET (I was monitoring the probe's pins 0 and 1 for good measure).
That said, I can confirm that sending monitor cmsis-dap info
through GDB returns ... nRESET = 1
, which is a promising start.
Adding "reset_config srst_only"
to "openOCDLaunchCommands"
in my lauch.json changes the output of monitor reset_config
, but still no low signal on PROBE_PIN_RESET.
And same goes for manually sending monitor adapter assert srst
via GDB. No signal.
Setting monitor debug 3
and viewing the OpenOCD output shows that OpenOCD believes SRST is asserted during reset; but again, no change in signal.
I looked into the target configuration file and did find this in OpenOCD's .../target/rp2040.cfg
:
# srst does not exist; use SYSRESETREQ to perform a soft reset
$_TARGETNAME_0 cortex_m reset_config sysresetreq
However, I don't believe this is related as OpenOCD believes it is asserting and releasing SRST during reset when it is enabled.
from debugprobe.
Related Issues (20)
- Not able to flash picoW using picoprobe HOT 13
- Replace UART with another SWD
- Request 2 cancelled on connection close HOT 4
- UART enable define doesn't actually disable UART code
- probe.c only includes probe.pio.h, doesn't include define for _oen version HOT 2
- Feature suggestion: add ability to unlock flash sectors HOT 4
- Probe can no longer connect to Pico after rename HOT 6
- Fatal error: bsp/board.h: No such file or directory HOT 3
- OpenOCD Unable to Connect to debugprobe HOT 1
- Unable to use debugprobe HOT 3
- Version info in USB descriptor struct not updated during 1.1 release
- OpenOCD Unable to Connect to debugprobe HOT 2
- UART doesn't support transmitting a break signal HOT 4
- Incorrect macro used in ifdef can cause a build failure HOT 2
- Add version number to picotool output HOT 3
- YD-RP2040 HOT 3
- debugprobe not resonsive shortly after starting debug HOT 9
- Document pinout in README HOT 5
- Open source license is not documented 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 debugprobe.