ST-link clone by baite

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Tue Aug 30, 2016 11:21 am

@TomaTLAB

I think I must be missing something here

I'm always wiring up SWD cables to STM32 and nRF51822 board, from JLink and BMP and STLink adaptors.

Unless the board has one of those big JLink cables, I just use 4 strands of the dupont cable, normally brown or black for GND, Red for Vcc, Yellow for SWDCLK and Orange for SWDIO

As my STLink, BMP and JLink programmers all have different pin arrangements, I just follow the same colour code each time and it all works fine.


But perhaps those cables do something else I don't understand.

denis
Posts: 17
Joined: Wed May 11, 2016 8:38 pm

Re: ST-link clone by baite

Post by denis » Thu Sep 01, 2016 8:21 pm

The schematic is something like this: http://www.avrki.ru/picture/articles/sa ... ink_v2.jpg Changes are:
R13 is 220ohm
R14 to R21 are 220ohm.
PB1 is unconnected (no pin JRST).
NRST (schematics) is labeled T_JRST.
LED_STLINK is only connected to 1 led.
Maybe there are others differences.

zmemw16
Posts: 1302
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: ST-link clone by baite

Post by zmemw16 » Fri Sep 02, 2016 12:34 pm

my olimexino has a 10 pin jtag, so i indulged with 2 of these
https://www.aliexpress.com/item/20-14-1 ... .57.rWctUq

tried for a back of the board screen shot 785k png
one day i'll find my phone ... ... ...

st-links, both of mine updated their s/w, one is 103c8t6, other 103cbt6, one has nrst & 3v3 brought out,
t'other 3v3 & 5v. 4 pin holes are present as well.
they're the plastic shrink wrapped usb ones, but i have a scalpel aka stanley knife.
i know there's a massive thread on re-programming them as well, i'll go and refresh the braincell.

oh my 5yr+ kindle seems to have really died - tried it a couple of weeks back as well. cpr worked and i did a snapshot.
its had its encounters with gravity, but not too bad for a slide and release power switch :D

stephen

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Tue Sep 27, 2016 7:01 am

denis wrote:A model of ST-link clone is done by baite: http://www.aliexpress.com/item/ST-Link- ... 84886.html at price of $2.57.
:D based on a stm32f103c8t6 chip.
:D sw and jtag connections.
:( Pins names are not labeled on boxe. You can buy a special cable for blue pill: http://www.aliexpress.com/item/STM8-STM ... 07499.html
:( Only one led (st-link has 2 leds).
:?: Voltage regulator is bigger than other clones (better?).

5 pads are on the bottom allowing to flash the stm32f103c8t6 (gnd,5V,boot0,TX,RX). I flash one with a black magic probe firmware (need some hacks) and it is working.
Denis

I just received one of these.

Did you push your changes to the BMP back to a github account somewhere ?

I presume you had to move PA4 and PA5 to some other pins.

denis
Posts: 17
Joined: Wed May 11, 2016 8:38 pm

Re: ST-link clone by baite

Post by denis » Tue Sep 27, 2016 9:42 pm

RogerClark wrote:Did you push your changes to the BMP back to a github account somewhere ?
I presume you had to move PA4 and PA5 to some other pins.
No, I don't push changes to a github account. It was a quick & dirty modification based on src/platforms/stlink. If you list me commands, I can push it to a github account.
Most of changes are removing everything related to the identification of V1/V2 (keep only V2 except for led) and move the RX/TX to USART1 (PB6/PB7).
Pin mapping is:
JRST: PB0
JTCK/SWCLK: PA5
JTMS/SWDIO: PB14
JTDO: PA6
JTDI: PA7
RX: PB7 (SWIM)
TX: PB6 (SWIM_RST)
Led: PA9

It is based on git release 45e322b of black magic probe. I compile it using cross gcc of arduino IDE.
# gmake PROBE_HOST=stlink \
CC=${HOME}/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc \
OBJCOPY=${HOME}/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy \
AR=${HOME}/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-ar

Code: Select all

diff --git a/src/command.c b/src/command.c
index be53dad..1b0cbaa 100644
--- a/src/command.c
+++ b/src/command.c
@@ -121,7 +121,8 @@ int command_process(target *t, char *cmd)
 
 bool cmd_version(void)
 {
-	gdb_outf("Black Magic Probe (Firmware " FIRMWARE_VERSION ") (Hardware Version %d)\n", platform_hwversion());
+	gdb_outf(BOARD_IDENT);
+	gdb_outf("\n");
 	gdb_out("Copyright (C) 2015  Black Sphere Technologies Ltd.\n");
 	gdb_out("License GPLv3+: GNU GPL version 3 or later "
 		"<http://gnu.org/licenses/gpl.html>\n\n");
diff --git a/src/platforms/stlink/dfu_upgrade.c b/src/platforms/stlink/dfu_upgrade.c
index f5fc503..1a10946 100644
--- a/src/platforms/stlink/dfu_upgrade.c
+++ b/src/platforms/stlink/dfu_upgrade.c
@@ -26,9 +26,7 @@
 #include "usbdfu.h"
 uint32_t app_address = 0x08000000;
 
-static uint8_t rev;
-static uint16_t led_idle_run;
-static uint32_t led2_state = 0;
+static uint16_t led_idle_run = GPIO9;
 
 void dfu_detach(void)
 {
@@ -50,38 +48,13 @@ void dfu_detach(void)
 	scb_reset_core();
 }
 
-void stlink_set_rev(void)
-{
-	int i;
-
-	/* First, get Board revision by pulling PC13/14 up. Read
-	 *  11 for ST-Link V1, e.g. on VL Discovery, tag as rev 0
-	 *  10 for ST-Link V2, e.g. on F4 Discovery, tag as rev 1
-	 */
-	rcc_periph_clock_enable(RCC_GPIOC);
-	gpio_set_mode(GPIOC, GPIO_MODE_INPUT,
-			GPIO_CNF_INPUT_PULL_UPDOWN, GPIO14 | GPIO13);
-	gpio_set(GPIOC, GPIO14 | GPIO13);
-	for (i = 0; i < 100; i++)
-		rev = (~(gpio_get(GPIOC, GPIO14 | GPIO13)) >> 13) & 3;
-
-	switch (rev) {
-	case 0:
-		led_idle_run = GPIO8;
-		break;
-	default:
-		led_idle_run = GPIO9;
-	}
-	gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
-			GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
-}
-
 int main(void)
 {
 
 	rcc_clock_setup_in_hse_8mhz_out_72mhz();
 
-	stlink_set_rev();
+	gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
+			GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
 
 	systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
 	systick_set_reload(900000);
@@ -113,17 +86,5 @@ void dfu_event(void)
 
 void sys_tick_handler(void)
 {
-	if (rev == 0) {
 		gpio_toggle(GPIOA, led_idle_run);
-	} else {
-		if (led2_state & 1) {
-			gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
-				GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
-			gpio_set(GPIOA, led_idle_run);
-		} else {
-			gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
-				GPIO_CNF_INPUT_ANALOG, led_idle_run);
-		}
-		led2_state++;
-	}
 }
diff --git a/src/platforms/stlink/platform.c b/src/platforms/stlink/platform.c
index 33f231c..aad50c3 100644
--- a/src/platforms/stlink/platform.c
+++ b/src/platforms/stlink/platform.c
@@ -36,32 +36,7 @@
 uint8_t running_status;
 volatile uint32_t timeout_counter;
 
-uint16_t led_idle_run;
-/* Pins PC[14:13] are used to detect hardware revision. Read
- * 11 for STLink V1 e.g. on VL Discovery, tag as hwversion 0
- * 10 for STLink V2 e.g. on F4 Discovery, tag as hwversion 1
- */
-int platform_hwversion(void)
-{
-	static int hwversion = -1;
-	int i;
-	if (hwversion == -1) {
-		gpio_set_mode(GPIOC, GPIO_MODE_INPUT,
-		              GPIO_CNF_INPUT_PULL_UPDOWN, GPIO14 | GPIO13);
-		gpio_set(GPIOC, GPIO14 | GPIO13);
-		for (i = 0; i<10; i++)
-			hwversion = ~(gpio_get(GPIOC, GPIO14 | GPIO13) >> 13) & 3;
-		switch (hwversion)
-		{
-		case 0:
-			led_idle_run = GPIO8;
-			break;
-		default:
-			led_idle_run = GPIO9;
-		}
-	}
-	return hwversion;
-}
+uint16_t led_idle_run = GPIO9;
 
 void platform_init(void)
 {
@@ -78,13 +53,10 @@ void platform_init(void)
 	/* On Rev 1 unconditionally activate MCO on PORTA8 with HSE
 	 * platform_hwversion() also needed to initialize led_idle_run!
 	 */
-	if (platform_hwversion() == 1)
-	{
-		RCC_CFGR &= ~(0xf << 24);
-		RCC_CFGR |= (RCC_CFGR_MCO_HSECLK << 24);
-		gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
-		GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO8);
-	}
+//		RCC_CFGR &= ~(0xf << 24);
+//		RCC_CFGR |= (RCC_CFGR_MCO_HSECLK << 24);
+//		gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
+//		GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO8);
 	/* Setup GPIO ports */
 	gpio_set_mode(TMS_PORT, GPIO_MODE_OUTPUT_50_MHZ,
 	              GPIO_CNF_OUTPUT_PUSHPULL, TMS_PIN);
@@ -92,11 +64,9 @@ void platform_init(void)
 	              GPIO_CNF_OUTPUT_PUSHPULL, TCK_PIN);
 	gpio_set_mode(TDI_PORT, GPIO_MODE_OUTPUT_50_MHZ,
 	              GPIO_CNF_OUTPUT_PUSHPULL, TDI_PIN);
-	uint16_t srst_pin = platform_hwversion() == 0 ?
-	                    SRST_PIN_V1 : SRST_PIN_V2;
-	gpio_set(SRST_PORT, srst_pin);
+	platform_srst_set_val(false);
 	gpio_set_mode(SRST_PORT, GPIO_MODE_OUTPUT_50_MHZ,
-	              GPIO_CNF_OUTPUT_OPENDRAIN, srst_pin);
+	              GPIO_CNF_OUTPUT_OPENDRAIN, SRST_PIN_V2);
 
 	gpio_set_mode(LED_PORT, GPIO_MODE_OUTPUT_2_MHZ,
 	              GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
@@ -110,19 +80,15 @@ void platform_init(void)
 
 void platform_srst_set_val(bool assert)
 {
-	uint16_t pin;
-	pin = platform_hwversion() == 0 ? SRST_PIN_V1 : SRST_PIN_V2;
-	if (assert)
-		gpio_clear(SRST_PORT, pin);
-	else
-		gpio_set(SRST_PORT, pin);
+	gpio_set_val(SRST_PORT, SRST_PIN_V2, !assert);
+	if (assert) {
+		for(int i = 0; i < 10000; i++) asm("nop");
+	}
 }
 
 bool platform_srst_get_val()
 {
-	uint16_t pin;
-	pin = platform_hwversion() == 0 ? SRST_PIN_V1 : SRST_PIN_V2;
-	return gpio_get(SRST_PORT, pin) == 0;
+	return gpio_get(SRST_PORT, SRST_PIN_V2) == 0;
 }
 
 const char *platform_target_voltage(void)
diff --git a/src/platforms/stlink/platform.h b/src/platforms/stlink/platform.h
index e10aa86..d2cf55a 100644
--- a/src/platforms/stlink/platform.h
+++ b/src/platforms/stlink/platform.h
@@ -34,52 +34,33 @@
 #include <libopencm3/usb/usbd.h>
 
 #define BOARD_IDENT       "Black Magic Probe (STLINK), (Firmware " FIRMWARE_VERSION ")"
-#define BOARD_IDENT_DFU   "Black Magic (Upgrade) for STLink/Discovery, (Firmware " FIRMWARE_VERSION ")"
-#define BOARD_IDENT_UPD   "Black Magic (DFU Upgrade) for STLink/Discovery, (Firmware " FIRMWARE_VERSION ")"
+#define BOARD_IDENT_DFU   "Black Magic (Upgrade) for STLink, (Firmware " FIRMWARE_VERSION ")"
+#define BOARD_IDENT_UPD   "Black Magic (DFU Upgrade) for STLink, (Firmware " FIRMWARE_VERSION ")"
 #define DFU_IDENT         "Black Magic Firmware Upgrade (STLINK)"
 #define DFU_IFACE_STRING  "@Internal Flash   /0x08000000/8*001Ka,56*001Kg"
 #define UPD_IFACE_STRING  "@Internal Flash   /0x08000000/8*001Kg"
 
-/* Important pin mappings for STM32 implementation:
- *
- * LED0 = 	PB2	(Yellow LED : Running)
- * LED1 = 	PB10	(Yellow LED : Idle)
- * LED2 = 	PB11	(Red LED    : Error)
- *
- * TPWR = 	RB0 (input) -- analogue on mini design ADC1, ch8
- * nTRST = 	PB1
- * SRST_OUT = 	PA2
- * TDI = 	PA3
- * TMS = 	PA4 (input for SWDP)
- * TCK = 	PA5
- * TDO = 	PA6 (input)
- * nSRST = 	PA7 (input)
- *
- * USB cable pull-up: PA8
- * USB VBUS detect:  PB13 -- New on mini design.
- *                           Enable pull up for compatibility.
- * Force DFU mode button: PB12
- */
-
 /* Hardware definitions... */
-#define TDI_PORT	GPIOA
-#define TMS_PORT	GPIOB
+// JRST PB0
+#define SRST_PORT	GPIOB
+#define SRST_PIN_V2	GPIO0
+// JTCK/SWCLK PA5
 #define TCK_PORT	GPIOA
-#define TDO_PORT	GPIOA
-#define TDI_PIN		GPIO7
-#define TMS_PIN		GPIO14
 #define TCK_PIN		GPIO5
-#define TDO_PIN		GPIO6
-
-#define SWDIO_PORT 	TMS_PORT
-#define SWCLK_PORT 	TCK_PORT
-#define SWDIO_PIN	TMS_PIN
+#define SWCLK_PORT	TCK_PORT
 #define SWCLK_PIN	TCK_PIN
-
-#define SRST_PORT	GPIOB
-#define SRST_PIN_V1	GPIO1
-#define SRST_PIN_V2	GPIO0
-
+// JTMS/SWDIO PB14 (+100ohm PB12)
+#define TMS_PORT	GPIOB
+#define TMS_PIN		GPIO14
+#define SWDIO_PORT	TMS_PORT
+#define SWDIO_PIN	TMS_PIN
+// JTDO PA6
+#define TDO_PORT	GPIOA
+#define TDO_PIN		GPIO6
+// JTDI PA7
+#define TDI_PORT	GPIOA
+#define TDI_PIN		GPIO7
+// Led PA9
 #define LED_PORT	GPIOA
 /* Use PC14 for a "dummy" uart led. So we can observere at least with scope*/
 #define LED_PORT_UART	GPIOC
@@ -95,15 +76,17 @@
 	gpio_set_mode(SWDIO_PORT, GPIO_MODE_OUTPUT_50_MHZ, \
 	              GPIO_CNF_OUTPUT_PUSHPULL, SWDIO_PIN);
 
-#define UART_PIN_SETUP() \
+#define UART_PIN_SETUP() do { \
+	AFIO_MAPR |= AFIO_MAPR_USART1_REMAP; \
 	gpio_set_mode(USBUSART_PORT, GPIO_MODE_OUTPUT_2_MHZ, \
-	              GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, USBUSART_TX_PIN);
+	              GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, USBUSART_TX_PIN); \
+} while (0)
 
 #define USB_DRIVER      stm32f103_usb_driver
 #define USB_IRQ	        NVIC_USB_LP_CAN_RX0_IRQ
 #define USB_ISR	        usb_lp_can_rx0_isr
 /* Interrupt priorities.  Low numbers are high priority.
- * For now USART2 preempts USB which may spin while buffer is drained.
+ * For now USART1 preempts USB which may spin while buffer is drained.
  * TIM3 is used for traceswo capture and must be highest priority.
  */
 #define IRQ_PRI_USB		(2 << 4)
@@ -111,14 +94,16 @@
 #define IRQ_PRI_USBUSART_TIM	(3 << 4)
 #define IRQ_PRI_USB_VBUS	(14 << 4)
 #define IRQ_PRI_TIM3		(0 << 4)
-
-#define USBUSART USART2
-#define USBUSART_CR1 USART2_CR1
-#define USBUSART_IRQ NVIC_USART2_IRQ
-#define USBUSART_CLK RCC_USART2
-#define USBUSART_PORT GPIOA
-#define USBUSART_TX_PIN GPIO2
-#define USBUSART_ISR usart2_isr
+// USART1
+// RX PB7 (SWIM)
+// TX PB6 (SWIM_RST)
+#define USBUSART USART1
+#define USBUSART_CR1 USART1_CR1
+#define USBUSART_IRQ NVIC_USART1_IRQ
+#define USBUSART_CLK RCC_USART1
+#define USBUSART_PORT GPIOB
+#define USBUSART_TX_PIN GPIO6
+#define USBUSART_ISR usart1_isr
 #define USBUSART_TIM TIM4
 #define USBUSART_TIM_CLK_EN() rcc_periph_clock_enable(RCC_TIM4)
 #define USBUSART_TIM_IRQ NVIC_TIM4_IRQ
diff --git a/src/platforms/stlink/usbdfu.c b/src/platforms/stlink/usbdfu.c
index f5c30a9..3908b46 100644
--- a/src/platforms/stlink/usbdfu.c
+++ b/src/platforms/stlink/usbdfu.c
@@ -25,9 +25,7 @@
 
 #include "usbdfu.h"
 
-static uint8_t rev;
-static uint16_t led_idle_run;
-static uint32_t led2_state = 0;
+static uint16_t led_idle_run = GPIO9;
 
 uint32_t app_address = 0x08002000;
 
@@ -35,7 +33,7 @@ static int stlink_test_nrst(void)
 {
 	/* Test if JRST/NRST is pulled down*/
 	uint16_t nrst;
-	uint16_t pin;
+	uint16_t pin = GPIO0;;
 	uint32_t systick_value;
 
 	systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
@@ -43,26 +41,6 @@ static int stlink_test_nrst(void)
 	systick_counter_enable();
 	/* systick ist now running with 1 MHz, systick counts down */
 
-	/* First, get Board revision by pulling PC13/14 up. Read
-	 *  11 for ST-Link V1, e.g. on VL Discovery, tag as rev 0
-	 *  10 for ST-Link V2, e.g. on F4 Discovery, tag as rev 1
-	 */
-	rcc_periph_clock_enable(RCC_GPIOC);
-	gpio_set_mode(GPIOC, GPIO_MODE_INPUT,
-				  GPIO_CNF_INPUT_PULL_UPDOWN, GPIO14 | GPIO13);
-	gpio_set(GPIOC, GPIO14 | GPIO13);
-	systick_value = systick_get_value();
-	while (systick_get_value() > (systick_value - 1000)); /* Wait 1 msec*/
-	rev = (~(gpio_get(GPIOC, GPIO14 | GPIO13)) >> 13) & 3;
-	switch (rev) {
-	case 0:
-		pin = GPIO1;
-		led_idle_run = GPIO8;
-		break;
-	default:
-		pin = GPIO0;
-		led_idle_run = GPIO9;
-	}
 	gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
 			GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
 	rcc_periph_clock_enable(RCC_GPIOB);
@@ -137,17 +115,6 @@ void dfu_event(void)
 
 void sys_tick_handler(void)
 {
-	if (rev == 0) {
 		gpio_toggle(GPIOA, led_idle_run);
-	} else {
-		if (led2_state & 1) {
-			gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_2_MHZ,
-				GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);
-		} else {
-			gpio_set_mode(GPIOA, GPIO_MODE_INPUT,
-				GPIO_CNF_INPUT_ANALOG, led_idle_run);
-		}
-		led2_state++;
-	}
 }
 

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Tue Sep 27, 2016 11:34 pm

@denis

Thanks for that.

I'm running a custom version of the BMP with fixes for nRF51, and support for GD32 and Maple mini as well as the STM32F103C8

So I'll clone the official BMP repo (at the commit you referenced) and apply your diff's then compare with my custom version, to the patched official version to see what needs to change.

I presume you just changed the UART and the pins for the SWD and LED (and also had to allow for the STLink connecting 2 pins in parallel for the SWD terminals (which the BMP doesn't do ( at least not in my version))

Cheers

Roger

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Wed Sep 28, 2016 6:12 am

@denis

I've double checked the pins on this device and the pinout is as you listed except that some pins are connected together on the PCB via some low value resistors e.g. 220R or 680R (which is normal for a STLink dongle)

Code: Select all

1.	T_JRST				PB0
2.	3V3
3.	5V
4.	T-JTCK/T_SWCLK		PA5 & PB13
5.	SWIM				PB7,PB8,PB9,PB10,PB11
6.	T_JTMS/T_SWDIO		PB12 & PB14
7.	GND
8.	T_JTDO				PA6
9.	SWIM_RST				PB5 & PB6
10.	T_JTDI				PA7
I'm now trying to change my existing code to use PB13 and PB14 for SWCLK and SWDIO and once thats working to move the USART pins and use AF REMAP

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Thu Sep 29, 2016 12:03 am

Denis

I couldn't seem to get it to work using PB13 and pb14, so I used the same pins as you in the end.

The UART remapping works - Thankyou .

My version of the BMP doesn't have any code that uses the reset pin, it must be a branch thats too old. So I'll probably manually merge the more recent code when I get time and confirm it all still works OK.

But at least the version I now have works fine on my STM32F103C8 board

nobodyman
Posts: 5
Joined: Thu Nov 24, 2016 9:15 pm

Re: ST-link clone by baite

Post by nobodyman » Thu Nov 24, 2016 9:19 pm

Dear Roger,
could you please explain which connections are used to flash the BAITE ST-LINK?
Thanks!

User avatar
RogerClark
Posts: 6413
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: ST-link clone by baite

Post by RogerClark » Thu Nov 24, 2016 10:00 pm

The pins inside the stlink, on the back of the board were listed by @denis in his first post i.e.

gnd,5V,boot0,TX,RX

@denis reflashed using usb to serial on the TX and RX pins by pulling boot0 high during power.

Note don't use the 5V to pull boot0 high, use the 3.3V output from your usb to serial converter

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest