Ford Peprah
Ford Peprah
Can you provide logs from your attempt? ``` import logging logging.basicConfig(level=logging.DEBUG) ```
Can you run with verbose logging enabled, and provide that output? ``` import logging logging.basicConfig(level=logging.DEBUG) ```
Is it possible that your target is debug locked, and you need to perform a debug unlock sequence? I believe someone else ran into this same issue, though I'm not...
The Exe will automatically perform a chip-specific debug unlocking procedure when you run it. PyLink does not automatically do this. While I don't have experience with it personally, the NRF52840...
You can do something like this: ``` jl = pylink.JLink() emulators = jl.connected_emulators() serial_nos = [emu.SerialNumber for emu in emulators]
PyLink does not support the scripts. The scripts are essentially commands / function calls. You will need to translate your scripts into the appropriate function calls.
My mistake. Thanks for the correct @gtowers-dukosi. From reading over that link, it seems like if you put the script in the same folder as the DLL as `Default.JLinkScript`, then...
By default, we copy the library file to a separate temporary folder (unless you specify otherwise). So we should be able to write the `Default` script into that folder, and...
Nice! That is much simpler. If you want to submit a patch for the new function, I can accept it. Something like `set_script()`?
This is now available via `set_script_file()` in `v1.3.0` thanks to @gtowers-dukosi!