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:
Any hints if I did something obviously wrong?
Thanks,
Markus
[solved] pyboard and ST-Link from Discovery board
- Markus Gritsch
- Posts: 41
- Joined: Fri May 16, 2014 9:04 pm
[solved] pyboard and ST-Link from Discovery board
Last edited by Markus Gritsch on Sat May 17, 2014 8:54 pm, edited 1 time in total.
- Markus Gritsch
- Posts: 41
- Joined: Fri May 16, 2014 9:04 pm
Re: pyboard and ST-Link from Discovery board
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
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
- Markus Gritsch
- Posts: 41
- Joined: Fri May 16, 2014 9:04 pm
Re: pyboard and ST-Link from Discovery board
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?
Now the 'STM32 ST-LINK Utility' says 'Connected via SWD.' unfortunately immediately followed by 'Cannot connect to the MCU device!'.
Any suggestions why?
- Markus Gritsch
- Posts: 41
- Joined: Fri May 16, 2014 9:04 pm
Re: pyboard and ST-Link from Discovery board
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
[1] https://my.st.com/public/STe2ecommuniti ... views=4834
Re: pyboard and ST-Link from Discovery board
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.Markus Gritsch wrote: ↑Sat May 17, 2014 7:55 pmThe 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