2 months ago
Linux VM - Using external interface on multiple devices
Posted bydavid_ratayczak80 points 2 replies(SmartSnippets Studio: V2.0.16.1760,
SDK: WiRa 10.440.8.6,
SEGGER J-Link 6.40,
VMware Workstation 15.5 Pro,
Ubuntu 20.10 /20.04)
Hi,
i already set up windows to work with the dialogs and everything works as it should. Now i am trying to set up a linux vm (ubuntu 20.10 and Ubuntu 20.04) to work with the dialogs as well.
The problem i am facing is, that i cant connect two devices with an external interface such as a python script (dte_iq_data_analyser.py). Under windows i can run the script two times and each time have a opportunity to select which device it should connect to (see picture attached down below).
Now under linux this is no longer the case. To work with linux i had to change a few lines in the pyjlink.py in the pymon folder (attached below). I had to remove the import of winreg (line 13) and changed the installPath to the Segger JLink_6.40 installation (line 126-129). I also changed the dll variable, so that the corresponding linux file (libjlinkarm.so, lines 137, 144, 148) is chosen and set the currentVersion variable (line 140) to 61800 so that the path is correct.
With the changes i made, connecting to one device is no problem (although i cant choose which one). But when i want to connect to a second device i cant choose again and i get connected to the same device again. Both script would now get data from the same device.
Can somebody help me to connect both devices to a external script?
Thanks,
David
Attachment | 大小 |
---|---|
device_selection.png | 25.44 KB |
pyjlink.py as a text file, cause you cant upload a py file | 13.51 KB |
2 months ago
Fixed it!
Installed the newest version (6.96) of SEGGER JLink manually and changed the Path in the pyjlink.py to the new version. I can select the device now!