Closed PontusO closed 8 years ago
Hey,
pynrfjprog is intended to be strictly a wrapper around the nrfjprog DLL (which wraps the JLink ARM dll). What's your use case for this as opposed to just using pyOCD?
I've done a similar thing here: https://github.com/NordicSemiconductor/pynrfjprog/blob/040d5b92074a36f913832bcae8fb2259946487f9/tests/ci_tests.py#L34
where you can pass in a dummy path when initializing just to get api = API.API('NRF52') to succeed. but what's your reason for needing this?
Hi, We're building an environment were we are using nrfjprog which fails when JLink is not installed. This solves the problem. If I read you right this should be solved in nrfjprog instead !?
Hey,
Yes, it should be fixed in nrfjprog: https://github.com/NordicSemiconductor/nrfjprog. However, I recently just added pyOCD support for this - still in development but planning on making a release on GitHub in a few days. If this is the case please create and issue or PR in the nrfjprog repo. I need more info on your specific use case (using pyOCD) or anther transport?
Great, I'll do that and close this.
This pull request allows applications to use the library to work without having to have the SEGGER libraries installed. I.e. if you are only using CMSIS-DAP.