cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, I can't connect to STM32F030R8T6 using ST-LINK V2 and STM32CubeIDE on Ubuntu 18.04.5 LTS.

Adam_K
Associate II

I use STM32F030R8T6 and an interface card that plugs into a breadboard for direct prototyping, ST-Link v2 STM32 and STM8 Programmer, both from Newbiehack.com.

Connected as on photo: SWDIO to pin 46 (PA13), SWCLK to pin 49 (PA14), GND to pin 62, 3.3V to pin 64. When I trying to launch I have got'Failed to start GDB server.

I changed setup in Debug Configuration from 'Autostart local GDB server'to 'Connect to remote GDB server'. After launch I got message 'Error in final launch sequence, Failed to execute MI command, connection timeout (przekroczony czas oczekiwania na połączenie).

When I used Nucleo-F767ZI with on-board ST-LINK debugger/programmer and STM32CubeIDE there was no any problem.

Is the hardware fault or software problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Adam_K
Associate II

Hi,

finally solved the problem with red messages like

'Info : default port : 7184

Info : Remote address: 127.0.0.1

Error: bind failed. Error = 98, exit'

ST-Link-Server must be installed https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-performance-and-debuggers/st-link-server.license=1597223818543.product=ST-LINK-SERVER.version=1.3.0.html

Now everything working fine, thanks.

View solution in original post

6 REPLIES 6
KnarfB
Principal III

did you connect all VDD VDDA and GND pins? Did you pull BOOT0 low? See AN4325 Getting started with STM32F030xx and STM32F070xx series hardware development.

Adam_K
Associate II

I checked again all connection, VDD connected to pins 1, 32, 64, GND connected to pins 31and 63, VDDA is not connected because I don't using it now, BOOT0 connected by 510 ohm resistor to GND

KnarfB
Principal III

You need to connect VDDA too, see remarks in data sheet.

Adam_K
Associate II

0693W000003OyouQAC.jpg0693W000003OyopQAC.jpg0693W000003OyokQAC.jpgI connected VDDA Pin 13 to to 3.3V and VSSA Pin 12 to GND, unfortunately same problem remained.

Adam_K
Associate II

Hi, finally I tick the option 'Shared ST-LINK' in Debug Configuration and launch is successful, LED flashing as expected, only red message' Info : default port : 7184

Info : Remote address: 127.0.0.1

Error: bind failed. Error = 98, exit' , I not understand it,

thank you so much for help, Adam0693W000003P0H9QAK.png

Adam_K
Associate II

Hi,

finally solved the problem with red messages like

'Info : default port : 7184

Info : Remote address: 127.0.0.1

Error: bind failed. Error = 98, exit'

ST-Link-Server must be installed https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-performance-and-debuggers/st-link-server.license=1597223818543.product=ST-LINK-SERVER.version=1.3.0.html

Now everything working fine, thanks.