Giter Site home page Giter Site logo

Comments (6)

P33M avatar P33M commented on June 16, 2024 1

Fixed in #123

from debugprobe.

lurch avatar lurch commented on June 16, 2024

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.

recursivenomad avatar recursivenomad commented on June 16, 2024

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.

lurch avatar lurch commented on June 16, 2024

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.

P33M avatar P33M commented on June 16, 2024

Can you try the options listed in the OpenOCD user guide? https://openocd.org/doc/html/Reset-Configuration.html

from debugprobe.

recursivenomad avatar recursivenomad commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.