In “Debug Multiple Boards with GDB at the Same Time” I have used the Segger J-Link to debug multiple boards, from the same IDE, at the same time. The remaining question in that article was: how to do the same the P&E Multilink/OpenSDA?
Debugging multiple boards, maybe even with the same firmware is a very useful thing. Think about two system communicating with each other: it would be very good to have them under debug the same time.
I’m using the Kinetis Design Studio v3.2.0 with the P&E Debugger. What was already possible with the Segger J-Link (see ) is now possible with the P&E Multilink or OpenSDA implementation.
As with the J-Link, the key is to use different ports for each debug session. In the first project I specify the USB port plus the default P&E GDB server port (7224):
For the second debug session I select the other USB port, plus a different Server Port Number (7324 in this case):
💡 P&E is using 6 consecutive port numbers with an offset of 2. With specifing 7224, the ports 7224, 7226, 7228, 7230, 7232 and 7234 are used.
The above works for different projects and .elf files. But it works as well debugging the same project and .elf file on multiple boards too 🙂 :
The only thing is that the break points in above screenshot are ‘shared’ for the same file(s). With clicking on the ‘threads’ in the debug view I can switch the board/application context easily.
Summary
It is now possible to debug multiple boards with the P&E debug connection (e.g. using the P&E Multilink or OpenSDA implementation). It requires setting non-default port number to make this happen. This is very useful to debug multiple boards which are communicating with each other.
Happy Debugging 🙂
Hi Erich ,
I’m trying to debug two different projects at once with KDS V3.20 . One was a CPU MKE04 with P&E CycloneMAX connected via ethernet to the Server Port Number 7224 , and the other with a cpu MKE02 and a P&E Multilink-FX (USB ) with the Port Number 7324 Server .
Booting the first program and it works. But when I try to start the second I get the error “Failed to launch services in sequence .”
Where can the problem be ?
Greetings and thank you .
LikeLike
Hi Josep,
does it work for the CycloneMax and Multilink project if you run them not in parallel? Just to make sure they can run without the other?
Erich
LikeLike
Hi erich,
Yes, the two projects work well separately.
Josep
LikeLike
Hi Josep,
I don’t have a Cyclone Max, so I cannot verify this. I just would double check the port numbers. Otherwise this might be something for P&E?
Erich
LikeLike
Thanks Erich,
It may be the fault of drivers of P&E?
How do I know if I installed the latest?
Josep
LikeLike
Hi Josep,
Check Help > Install new software with the following update site:
http://www.pemicro.com/eclipse/updates
LikeLike
Thank you Erich,
I updated the drivers and it works fine.
Josep.
LikeLike