2018-06-03 09:28 AM
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.
- I setup the elf file to use on the second debug configuration and choose another STLink to debug it.
- I get the following error when trying to launch the second app, i presume it's because both Debug configurations use the port 64123.
- 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.
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/
2018-06-03 09:49 AM
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
2018-06-03 11:30 PM
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:
- second application debug configuration:
- What appears to be a working debug session wth two apps
:)
:Tomorrow i will test it with the ''real'' application.
Thanks for the help,
Carlos