square / pylink

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

Why does an error occur when executing perform_software_poi? #211

Open SuperLady5 opened 1 week ago

SuperLady5 commented 1 week ago

python version 3.11 jlink version 7.66 pylink version 1.3.0

When my jlink burner version is V11, I get an error (pylink.errors.JLinkWriteException: Unspecified error.) when I execute perform_software_poi; image

When my jlink burner version is V9, there will be no error when executing perform_software_poi

here is the perform_software_poi code image

hkpeprah commented 1 week ago

I'm not sure what that function is doing, but in order to write to device RAM, you must connect to the target, and halt it. If you enable logging, it should give you more details, such as saying Cannot write to memory while target is running:

import logging

logging.basicConfig(level=logging.DEBUG)