square / pylink

Python Library for device debugging/programming via J-Link
https://pylink.readthedocs.io/en/latest/
Other
351 stars 128 forks source link

How can I handle jlink scriptfile with pylink? #143

Closed LKDbigpig214 closed 1 year ago

LKDbigpig214 commented 2 years ago

My Jlink command: jlink -jlnikscriptfile my.jlinkscript

How can I implement it with pylink?

hkpeprah commented 2 years ago

You can't. You have to translate your commands to the appropriate Python calls.

lrademacher commented 1 year ago

I think you mix up J-Link sommand files (containing commands) with script files (containing custom action definitions in a c-style syntax). See: https://wiki.segger.com/J-Link_Commander#Using_J-Link_Command_Files