GithubHelp home page GithubHelp logo

Comments (6)

hkpeprah avatar hkpeprah commented on June 17, 2024

It should happen automatically if you've specified the device correctly. There are unlock methods, but I've only implemented the unlock sequence for the Kinetis chip family.

from pylink.

Moral-ecomo avatar Moral-ecomo commented on June 17, 2024

Hi:
I just fix this problem, the remove need two steps:
1、modify the pylink source code
2、

def unsecure_device_hook(title, msg, flags):
    return pylink.enums.JLinkFlags.DLG_BUTTON_YES

...
jlink = pylink.JLink(unsecure_hook=unsecure_device_hook)
...

from pylink.

hkpeprah avatar hkpeprah commented on June 17, 2024

Whoops, you are correct, we by default specify NO to unlock automatically.

from pylink.

qtvbab avatar qtvbab commented on June 17, 2024

Hi,
I successfully cleared the read protection with @Moral-ecomo method. However, a new problem has arisen. During continuous programming, Once in every two programming, jlink.reset() does not work, but no exception is thrown. Why this problem occurs,and how can I solve it

from pylink.

hkpeprah avatar hkpeprah commented on June 17, 2024

Which exception is thrown? If you run with logging enabled, you should see more helpful messages:

import logging

logging.basicConfig(level=logging.DEBUG)

from pylink.

qtvbab avatar qtvbab commented on June 17, 2024

Oh. I found the reason:
If the read protection is set while the debugger is still connected through JTAG/SWD, apply a
POR (power-on reset) instead of a system reset (without debugger connection).
So after the second programming, the chip cannot start after reset().

from pylink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.