Page 1 of 1

[solved] pyboard and ST-Link from Discovery board

Posted: Fri May 16, 2014 9:24 pm
by Markus Gritsch
Hi,

I try to connect to the pyboard with the ST-LINK debugger/programmer from the DISCOVERY board, but the 'STM32 ST-LINK Utility' only reports 'No target conneced'.

I made the following connections:
IMG_3495_1024x768_75.jpg
IMG_3495_1024x768_75.jpg (116.39 KiB) Viewed 8778 times
IMG_3496_1024x768_75.jpg
IMG_3496_1024x768_75.jpg (149.35 KiB) Viewed 8778 times
Any hints if I did something obviously wrong?

Thanks,
Markus

Re: pyboard and ST-Link from Discovery board

Posted: Sat May 17, 2014 7:55 pm
by Markus Gritsch
The pins on the SWD connector of the DISCOVERY Board read
1 VDD_TARGET
2 SWCLK
3 GND
4 SWDIO
5 NRST

So I connected 5, 3, and 1 to the RST, GND, and 3V3 pins on the pyboard, and 2 to the pin shared with the green LED and 4 to the pin shared with the red LED.

Is it maybe problematic that the SWCLK and SWDIO pins must also drive the LEDs on the pyboard? Has anyone got this working already?

Thanks,
Markus

Re: pyboard and ST-Link from Discovery board

Posted: Sat May 17, 2014 8:29 pm
by Markus Gritsch
I am one step further: The schematic of the DISCOVERY board says that R2 is (for whatever reason) not fitted. So I powered the pyboard via its micro USB connector and only connected pins 2-5 of the SWD connector.

Now the 'STM32 ST-LINK Utility' says 'Connected via SWD.' unfortunately immediately followed by 'Cannot connect to the MCU device!'.

Any suggestions why?

Re: pyboard and ST-Link from Discovery board

Posted: Sat May 17, 2014 8:51 pm
by Markus Gritsch
Solved! I googled for the error message and found some hints [1] that it has todo with the silicon revision. My version (2.2) of ST-LINK Utility did only support revision A. After updating to verison 3.3 I can now successfully connect to the pyboard which has revision Z :)

[1] https://my.st.com/public/STe2ecommuniti ... views=4834

Re: pyboard and ST-Link from Discovery board

Posted: Sun May 20, 2018 4:11 pm
by rashid_s
Markus Gritsch wrote:
Sat May 17, 2014 7:55 pm
The pins on the SWD connector of the DISCOVERY Board read
1 VDD_TARGET
2 SWCLK
3 GND
4 SWDIO
5 NRST

So I connected 5, 3, and 1 to the RST, GND, and 3V3 pins on the pyboard, and 2 to the pin shared with the green LED and 4 to the pin shared with the red LED.

Is it maybe problematic that the SWCLK and SWDIO pins must also drive the LEDs on the pyboard? Has anyone got this working already?

Thanks,
Markus
Hello Markus. Did you wire connect pins 2 and 4 of the connector's SWD to Micropython? Or still kakto on durgomu it is possible? I'm just new to this business. I want to try using Microtophone as a usual debug board with a microcontroller STM32.