New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device list different from Jlink.exe #32
Comments
Hm, the number should be same if the Window pops up. What do you mean by cannot pass in Are you sure that's the correct chip name? Doing a Google search leads me to few results, one being this Kinetis document, and this thread, which points to this page: https://wiki.segger.com/IMX_Series_Devices |
At the image I posted you can see what happens when I use chip_name="MCIMX7U5_M4". The Target Device Settings selection menu opens, as it not recognize MCIMX7U5_M4 as a valid chip name. The same occurs when I leave chip_name with the default value (
|
Have you tried passing in |
Not work too. IMX7ULP is not recognized as valid chip_name. |
I would take a look at this issue, as it could be a 32-bit vs 64-bit issue. I'm not entirely sure what's going on here. |
I am struggling with a similar issue on Linux. I have added entries for an ARM MCU to My understanding is that the JLink library reads supported devices from a
pylink loads libjlinkarm from Even after replacing each
which JLinkExe works fine with, in pylink, So where in the world is libjlinkarm getting its device list from? Does pylink have its own list, or is it built in to libjlinkarm? Any suggestions are appreciated. |
Hm, from a cursory examination, it seems to be baked into the |
I ran into a similar issue recently. My RSL10 device was failing to download a .hex file to flash memory using |
@djgood Ah, that's interesting. If you copy the XML file alongside the DLL, does it work? If so, we might be able to add support for copying the XML file / directory, then methods for adding new devices programmatically. |
I just tried it, and yes, it works if I copy the XML and directory to my temp folder. |
By the way, another solution seems to be calling
With this solution, you can even provide your own device-list, without having to change the one from the original installation. |
I'm seeing this issue on my end too. Having to pass a path makes writing cross platform code difficult. Any idea why the installed JLinkDevices.xml isn't being honored? |
I also faced this issue before I discovered this thread. In my case, I found a workaround by modifying the tempdir. Pylink creates the dll in a temporary folder. So, if you just set tempfile.tempdir to your JLink installation path, it works because the temporary dll created by Pylink will be in the same directory of the JLinkDevices.xml. This is probably not the cleanest workaround, especially because you will need permission to write on the JLink installation directory but it may be useful for some people. |
Could someone please post the solution here in terms of how to change the temp location to fixed location in Library.load() function? I tried but didn't quite correctly work for me. Now I can see my device in the list but after connecting to that device, it gives 7676 and when I query jlink.target_connected(), it gives false. So, not sure what is wrong |
I had the same issue, that the chip name was not accepted as a valid device. For me the solution was to set the the target interface to SWD after opening the jlink. |
This works for me! |
Hello:
I'm working with NXP's MCIMX7U5_M4 processor. Using Jlink Commander 6.32a, I can connect to JTAG port and debug. If I do not pass the "-device MCIMX7U5_M4" paramenter on command line, the SEGGER J-link Target Device Settings selection menu opens and I can find the correct device name.
In python, when connecting using pylink, the MCIMX7U5_M4 is not accepted as a valid device.
jlink.connect(verbose=True, chip_name="MCIMX7U5_M4")
When I cannot pass
chip_name=
in the connect method, the device selection menu opens, but the MCIMX7U5_M4 is not present in the device list. The number of devices in the pylink connection is lower than the number in Jlink Commander.I'using WIN10.
Jlink version 6.32a
Python 3.6 (pycharm 2018.1.2)
pylink 0.1.0
I debugged the DLL loading and it is copying it from correct path:
C:\Program Files (x86)\SEGGER\JLink_V632a\JLinkARM.dll
.Thanks
The text was updated successfully, but these errors were encountered: