Hi,
I see the latest feature in DS5 v5.27 concerning the possibility to open a debug server.
I successfully connect to one CPU core on my SOC remotly, by ethernet, but how to open multiple servers, on distinct CPUs?
I try to use different port numbers but I have an error message saying only one connection is possible.
regards
claudio
Hi Claudio,
If your SoC has multiple cores of the same type, for example, a cluster of Cortex-A cores in SMP mode, then the single DS-5 remote connection can control all the cores. Just issue the 'core' command to switch between the cores. If the cores are of different types or the cores are not in SMP mode then this wont work and there is not a simple way to achieve what you are trying to do. However it can be done if you are connecting to a real h/w target via a DSTREAM family connection.
What you need to do is to create multiple debug configurations - one for each type of core you are trying to connect to. What is most important is that all configuration use the same .rcf file (the file that describes the target configuration to DSTREAM). You can then start multiple command line debug servers with each specifying the particular debug configuration for the core you wish to control and specify different server ports using the --server 1234 command line option (in this case to use port 1234). So each debug server must use a different debug configuration and use a different server port number. You should then be able to achieve what you are trying to do.
Hope this helps, Tony.
Thanks Tony,
In fact I used the server without the configuration file using the cdb data
set DS5_CONFIG_M40="NXP::i.MX8QMAX::Bare Metal Debug::Bare Metal Debug::Cortex-M4_AP1::DSTREAM"
call debugger --cdb-root %~dp0..\configdb_extension --cdb-entry %DS5_CONFIG_M40% --cdb-entry-param "Connection=TCP:%DS5_ADDR%" --server xx.yyy.ttt.uuu
So now I know how to deal with that,
claude
Also note it would help if this limitation is documented somewhere in the debugger user guide.