-
Notifications
You must be signed in to change notification settings - Fork 128
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
Can support C-JTAG #190
Comments
I'm not sure. Have you tried to connect and use it with your target? What is the output? |
In my chip that supports both C-JTAG and JTAG protocols, in pylink enum type, i can't find corresponding C-JTAG type, so i just use set_tif(pylink.enums.JLinkInterfaces.JTAG) function? i will try |
I would try that. |
I ran the above code and found that it can connect to J-Link, but the target cannot be connected. I'm not sure what the reason is |
Maybe something naive, but could you try passing a different target interface from here for the target interfaces? |
i try it, but when i use C2, it will print "RISC-V is not supported via C2", and i then try other option, all trigger error |
Are you sure your target is supported via C2? This seems to suggest that C2 is proprietary to Silicon Labs MCUs: https://community.silabs.com/s/article/jtag-and-c2-debug-interfaces?language=en_US, which to my understanding are ARM-based. |
Maybe you need to perform your own connect sequence for cJTAG, and use that instead of C2: https://wiki.segger.com/J-Link_cJTAG_specifics |
Ok, i will try that |
Hello, sorry to bother you again. I tried to use the DLL file provided by SEGGER to access CJTAG devices. However, when using JLINKARM_TIF_Select, I was unsure about the specific enum type and just filled in one randomly. It seems like I was still able to access the device, but I'm not clear on what happened in the middle. The specific code is as follows:
|
Do you happen to know what error you saw? |
I found the macro for CJTAG in SEGGER, and by using version 7.9.4 of the DLL, calling my_dll.JLINKARM_TIF_Select(7) can successfully connect to CJTAG. Will this parameter be considered for inclusion in PyLink in the future? |
Feel free to make a PR to add the enum value, and we can get it in 🙏 |
Segger support c-jtag,can pylink implement it?
The text was updated successfully, but these errors were encountered: