[solved] pyboard and ST-Link from Discovery board

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
User avatar
Markus Gritsch
Posts: 41
Joined: Fri May 16, 2014 9:04 pm

[solved] pyboard and ST-Link from Discovery board

Post by Markus Gritsch » Fri May 16, 2014 9:24 pm

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 7898 times
IMG_3496_1024x768_75.jpg
IMG_3496_1024x768_75.jpg (149.35 KiB) Viewed 7898 times
Any hints if I did something obviously wrong?

Thanks,
Markus
Last edited by Markus Gritsch on Sat May 17, 2014 8:54 pm, edited 1 time in total.

User avatar
Markus Gritsch
Posts: 41
Joined: Fri May 16, 2014 9:04 pm

Re: pyboard and ST-Link from Discovery board

Post by Markus Gritsch » 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

User avatar
Markus Gritsch
Posts: 41
Joined: Fri May 16, 2014 9:04 pm

Re: pyboard and ST-Link from Discovery board

Post by Markus Gritsch » Sat May 17, 2014 8:29 pm

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?

User avatar
Markus Gritsch
Posts: 41
Joined: Fri May 16, 2014 9:04 pm

Re: pyboard and ST-Link from Discovery board

Post by Markus Gritsch » Sat May 17, 2014 8:51 pm

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

rashid_s
Posts: 3
Joined: Sat Jul 01, 2017 10:06 am

Re: pyboard and ST-Link from Discovery board

Post by rashid_s » Sun May 20, 2018 4:11 pm

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.

Post Reply