I've been running into trouble when connecting my free-dap hardware (based upon d11_usb_mini) with the target but not powering the free-dap hardware.
The symptom looks like the target does not work since the target's nRST voltage drops from 3,3 V to 1,3 V. Since the target tries to hold 3,3 V on nRST, the Atmel SAMD 11 on the free-dap hardware is subject to a voltage between PA09 and GND (connected via J7/J8 to the target).
Together with a pal we came up with the following circuit:
This should disconnect PA09 from J7 unless V_USB is present. Of cause, the logic will be inverted (PA09 becoming RST instead of ¬RST) but that can be fixed in software fairly easy. When V_USB is not present, the pulldown will make sure that T2 is disconnected (GND is present since it's connected to the target via J8).
I have a couple of questions:
Have you experienced this behaviour, too (target not working when connected to unpowered free-dap hardware)?
Does this circuit fix my the behaviour or have we overlooked something else?
I have never tried, and it was never a design goal to have that scenario working, but I see why it would not work.
This should fix the reset, but the other pins will have similar behavior. If you want a complete fix, you need a real bidirectional buffer. But generally there is no limit to how much you can improve the hardware :)
Hi,
I've been running into trouble when connecting my free-dap hardware (based upon d11_usb_mini) with the target but not powering the free-dap hardware.
The symptom looks like the target does not work since the target's
nRST
voltage drops from 3,3 V to 1,3 V. Since the target tries to hold 3,3 V onnRST
, the Atmel SAMD 11 on the free-dap hardware is subject to a voltage between PA09 and GND (connected via J7/J8 to the target).Together with a pal we came up with the following circuit:
This should disconnect PA09 from J7 unless
V_USB
is present. Of cause, the logic will be inverted (PA09 becoming RST instead of ¬RST) but that can be fixed in software fairly easy. WhenV_USB
is not present, the pulldown will make sure that T2 is disconnected (GND is present since it's connected to the target via J8).I have a couple of questions:
-- ooxi