2020-05-02 02:03 AM
Hey folks
Just got on populating the passives and ICs on what would appear to be my first ever STM32 based controller (custom PCB). Quite successful and rather impressed with the end result although, perhaps, with the exception of being able to program (ST-Link) while external power is applied (learning harder than I thought lol).
Can someone please share a "basic" schematic that would allow for this be achieved. I understand that there are several Discovery board schematics however those shows rather complex circuits with jumpers all over & al. I'm just hoping to see if we have a far better, and "simple/r", approach to that.
Any brilliant ideas welcome, that would be kind and helpful. Thanks guys
Solved! Go to Solution.
2020-05-02 07:35 AM
The ST-Link programmer you have is not an official programmer. It's an even lower cost knock-off. But it probably works fine. I don't know if the 3V3 on your programmer is intended to power the board. I suspect it is. Whereas in the official programmers, the board needs to be self-powered. This is an important difference.
Try to only connect GND, SWDIO, and SWCLK. Official programmers also connect NRST but it is not strictly needed.
Here is a link with programmer schematic info:
http://www.keil.com/support/man/docs/ulinkplus/ulinkplus_jtagswd_interface.htm
2020-05-02 02:13 AM
> with the exception of being able to program (ST-Link) while external power is applied
Post photo of your setup.
JW
2020-05-02 03:30 AM
I was confused as well when designing a board for an F730, so i made connections for all 8 signals to/from an stlink2. I don't think the jtag stuff is needed, so i think you just need swd, power and ground so 5 signals/pins. The power connection to the stlink is not for powering anything but rather is used by the stlink to detect the correct voltage for interacting with the target.
2020-05-02 04:58 AM
Sure. Not much going on in all honesty other than;
1) External pwr (24V to 5V) Step-down feeding a LDO (3V3)
2) PC/Programmer connecting to 3V3, SWCLK, SWDIO, GND
2020-05-02 05:02 AM
Tried connecting SWCLK, SWDIO, GND and leaving 3V3 disconnected and that didn't worked out. Still getting current going to the programmer. Tried a diode on the prog GND to prevent that and that didn't do anything.
2020-05-02 05:03 AM
If anyone have achieved programming from ST-LINK (USB/PC) and with External Power ON, it would be nice to see how you did that circuit-wise.
Basic schematic (i.e. as basic as it can get) would certainly help visualizing this.
Cheers guys
2020-05-02 05:14 AM
Dunno. The stlink is powered thru the usb and the target board should be powered separately. The Vcc connection between the two is for sensing on the stlink. I've had no trouble using stlink with multiple boards using 8 pogo pins to connect to pads on the f730 target board.
2020-05-02 05:27 AM
I have a feeling what you are trying to say is that the programmer I am using might/could be the issue ;) Attached is what I was given by the IC supplier, told me this is all what I needed to get balls rolling. Do I need to get myself an official ST-LINK V3 or similar to get External Power to work with PC/USB?
Given I might use the same SW interface on the official prog (i.e. SWCLK, SWDIO, 3V3, GND), would the end result (fault?) not be the same as this V2.1?
2020-05-02 05:31 AM
There is nothing to visualize. I'm only trying to help because I've got little to do at the moment.
The datasheet contains everything you need to know. The stlink header pinout is readily accessible. Connect pins according to their labels.
*Edited by Moderation*
2020-05-02 05:37 AM
I am not bored troll. I am a mechanical engineer who've recently taken onto EEV and trying to wrap my head around several MCU technologies/circuits, particularly STM32. I am hoping to seek "best advice" from a professional/experienced community.
Am I on the right forum??