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

5V Out #5

Open
dbrgn opened this issue Sep 4, 2020 · 5 comments · Fixed by #13
Open

5V Out #5

dbrgn opened this issue Sep 4, 2020 · 5 comments · Fixed by #13
Labels
bug Something isn't working

Comments

@dbrgn
Copy link

dbrgn commented Sep 4, 2020

The JLink allows powering the target device through pin 19 of the 20-pin connector or pin 7 of the 10-pin connector (opposite of TDI) (at least on the Olimex adapter. On other adapters, this pin is often unused and removed for keying). To enable this feature, you need to send the "power on" command to the debug probe first. You can chose between "power on" (temporarily enable 5V/USB power out until the probe is unplugged) or "power on perm" (permanently enable power on that pin).

It would be nice if the hs-probe would support this as well! I use that feature extensively, it saves a lot of time if I don't need a separate power supply.

@dbrgn dbrgn added the enhancement New feature or request label Sep 4, 2020
@korken89
Copy link
Collaborator

korken89 commented Sep 4, 2020

In general I see no issue with this, but the STDC14 connector has GND on the KEY pin.
One could add a dual MOSFET to switch between GND or 5V.

Right now we have followed the STLinkV3 implementation and supply 5V on pin 1 of the STDC14 connector.

@korken89
Copy link
Collaborator

I fixed this for v1.3 :)

@dbrgn
Copy link
Author

dbrgn commented Aug 27, 2021

The hs-probe I got (v1.4) has the 5V output on the pin 7 of the STDC14, which is pin 5 of the 10-pin connector. However, for compatibility with JLink, Olimex etc it would need to be on pin 7 of the 10-pin connector (which is pin 9 of the STDC14).

Is this an accidental mix-up, or intentional?

To quote @adamgreig in Matrix:

37722db says it was done for "compatibility with tc2050" but I don't understand what that means

@dbrgn dbrgn reopened this Aug 27, 2021
@korken89 korken89 added bug Something isn't working and removed enhancement New feature or request labels Aug 27, 2021
@korken89
Copy link
Collaborator

korken89 commented Aug 27, 2021

Hi, unfortunately this looks like an accidental mix-up :(
It should be on pin 9 on the STDC14 and pin 7 on the Cortex-M Debug connector.

"Luckily" the trace is reachable, so if one wants to use it properly a tiny cut and some soldering will solve it.

@dbrgn
Copy link
Author

dbrgn commented Aug 27, 2021

"Luckily" the trace is reachable, so if one wants to use it properly a tiny cut and some soldering will solve it.

True, it should be pretty easy to cut in the upper left corner of the PCB (right next to the hole).

Afterwards I'd need to connect pin 3 of the MOSFET Q101 with pin 9 of the STDC14 connector, right? seems doable.

Once this is done, how is the 5V output enabled? Is there already support in the firmware?

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

Successfully merging a pull request may close this issue.

2 participants