cancel
Showing results for 
Search instead for 
Did you mean: 

Debug more than one application on the same Debug session?

Carlos Diaz
Associate II
Posted on June 03, 2018 at 18:28

Hi,

I need to debug a circuit with 2 microcontrollers (both are STM32F103 and are connected with an STLink to my development pc), i know it's possible to do it on the same Debug session. Acording to this post [1] i should be able to do it knowing the GDB Server running on each STLink, but i haven't been able to find this information.

Here's what i tried first:

- On both of the debug configurations i choose to use the specific STLink Serial Number, here's the capture of one of the configurations.

0690X0000060L5EQAU.png

- I setup the elf file to use on the second debug configuration and choose another STLink to debug it.

0690X0000060L5JQAU.png

- I get the following error when trying to launch the second app, i presume it's because both Debug configurations use the port 64123.

0690X0000060L5OQAU.png

- I see both apps as threads on the Debug session, so i guess the only thing i'm missing is configure properly the GDB server port.

0690X0000060L5TQAU.png

So does anybody knows how to know the GDB server on each STLink?

Do all the STLinks work on the same GDB server?

Is there any other way to debug two applications on the same Debug session?

Kind regards,

Carlos

[1]

https://mcuoneclipse.com/2016/01/23/debug-multiple-boards-with-gdb-at-the-same-time/

 
2 REPLIES 2
Posted on June 03, 2018 at 18:49

Definitely less of a circus in Keil, you start a second instance of the application and select the ST-LINK via serial number.

What happens if you auto-start with different port numbers? Any tutorials, examples or videos for Atollic?

https://www.youtube.com/watch?v=XUBi1FOTnSE

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 04, 2018 at 06:30

Hi Clive,

I think using different port numbers is the answer, i just used 61234 for one application and 61235 for the second applications, it seems to be working, much less complicated than i first thought.

- first application debug configuration:

0690X0000060L5dQAE.png

- second application debug configuration:

0690X0000060L5YQAU.png

- What appears to be a working debug session wth two apps

:)

:0690X0000060L5iQAE.png

Tomorrow i will test it with the ''real'' application.

Thanks for the help,

Carlos